Hi,
I'm using a JTextArea in a JApplet, and having difficulty trying to align the JTextArea on the x, y axis... I've tries setBounds, setAlignmentX & setLocation... Neither seem to work. Plz help!
This is what I have:
public class Testing () {
JTextArea TxtArea;
Container Panel;
LayoutManager Layout;
public Testing() extends JApplet {
TxtArea = new JTextArea ();
Layout = new FlowLayout ();
Panel = getContentPane ();
TxtArea.setBounds(240, 48, 402, 184);
TxtArea.setEditable (false);
TxtArea.setBackground (Color.white);
TxtArea.setLineWrap (true);
Panel.setLayout (Layout);
Panel.add (TxtArea);
}
public void paint(Graphics g) {
TxtArea.setText("HELLO!! :...><><>>>>>><");
}