Author Topic:   Very Silly Question on TextComponent..
psethura
ranch hand
posted April 08, 2000 04:47 PM         
Hello Java Geeks!!

When I try to create a TextArea or TextField say like
TextField tf = new TextField(30);
Frame f = new Frame("69 Style");
f.setSize(300 , 200);
f.add(tf);
f.setVisible(true);

In above code, it is not creating a text area of length 30 it is taking my frame size!!!.. WHY? It is same in case of TextArea ...


maha anna
bartender
posted April 08, 2000 05:09 PM             
Who else is controlling the component?
The component ? container ? LayoutManager? Please think. The clue is given here.
regds
maha anna

|