Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Sep 20, 2012 5:17 AM by zachary1234-851442
Question about JInternalFrame inside JDesktopPane.
Sep 14, 2012 3:08 AM
I know and understand that for full and correct control, when doing java 1.6.0 desktop gui programming
with swing and awt both involved,
I want to add my JInternalFrame object inside a JDesktopPane, for correct management and behaviour, first.
I find that I can't use setSelected, requestFocus, grabFocus at all,
even inside AncestorListener, SwingUtilities.invokeLater, JInternalFrameListener, implementing classes
to get one particular JInternalFrame, when added and setVisible(true), to display active by default,
as though it has been clicked to set active for default, without having done so manually.
I have even resorted to doing a mouseclick event hard coded on the greyed out, non active JInternalFrame
with no respose to said click either.
How may my program click active a JInternalFrame? Can someone give me some code which has been run and
has actually execution work, in say java 1.6.0?
Edited by: Zachary1234 on Sep 13, 2012 8:07 PM
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: Question about JInternalFrame inside JDesktopPane.
Sep 20, 2012 5:17 AM
in response to
How may I click select a particular JInternalFrame, from the code level, to start with?
I have tried a click MouseEvent, and various avaliables like requestFocus, selected etc.
and find that none of them execute as expected under java 1.6.
A solution, anyone?