|
The following
issue im having is very small but extremely annoying and i cant figure why
it
wont work. I Create a frame within another frame and would like the
smaller second frame to grab the focus (be selected) as soon as it is
created.
I use the method setSelected() in another one of my classes and it
works
perfectly, but here it does not...If anyone might be able to tell me what
might
be the problem, that would be great...
The code for
my
class is as follows: The problem is that openigFrame does not appear
selected when created, it must be clicked upon to get the focus....
[Rosenstrauch,
David]
The following should
work.
After you create openigFrame, do
this:
openigFrame.addComponentListener( new ComponentAdapter()
{ public void componentShown(ComponentEvent e)
{ openigFrame.requestFocus(); } } );
DR
==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help". |