General AWT related questions
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Saurav_Ganguly
Posted On:   Thursday, April 19, 2001 02:24 AM

1)How can I explicitly give focus to a
textfield?

2)I have designed a window using a Frame
containing a few labels and buttons,
for a screen resolution of 800x600. If
the resolution is changed, the
relative alignments of the components
are lost. How can I prevent this?

Re: General AWT related questions

Posted By:   nekkanti_sridhar  
Posted On:   Tuesday, May 15, 2001 01:57 AM

hi Saurav

If U want to give focus to a textfield explicitly there is method called
t.requestFocus();

where t is name of the textfield.

u can restrict changing the of alignment of the components by setting the frame layout to "null" and set the Bounds to the components.

Re: General AWT related questions

Posted By:   Vivek_Uniyal  
Posted On:   Thursday, April 19, 2001 02:55 AM

what is meaning of AWT in java
About | Sitemap | Contact