M
Marco
It is possible?
Marco said:It is possible?
Marco said:It is possible?
documentation?
Take a look at the documentation here
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JFrame.html
Notice the setFocusable function. You need this functionality to add key
handlers to the frame - so it can be useful to know.
Marco said:Have you tried searching google for Java frame focus? Or just for JFrame
documentation?
Take a look at the documentation here
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JFrame.html
Notice the setFocusable function. You need this functionality to add key
handlers to the frame - so it can be useful to know.
I need it for java.awt.Frame, not for javax.swing.JFrame.
I search, and try any method [Frame.toFront()], but they don't work on my
Applet. I now think that my problem is not how do the focus to Frame
(setVisible(true) always do this), but a second Applet (without Frame) in
the same html page, that give the focus to itself, sending the Frame in the
back.
Excuse for my English.
in this case is the fist applet that alone gain the focus for html page.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.