This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Jinternal frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jinternal frame" Watch "Jinternal frame" New topic
Author

Jinternal frame

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
How I can I determine which frame is the active frame in my JInternalFrame
Jeremy Tartaglia
Ranch Hand

Joined: Mar 11, 2004
Posts: 62
Your JDesktopPane has a function called getSelectedFrame. That will do it, or return null if nothing is selected.
EDIT: I might've misunderstood what you meant. If you're trying to find an active component inside a JInternalFrame, it's a good idea to just keep a reference to all your component in the JInternalFrame and make a function to determine which is active by using hasFocus, derived from Component. I don't see a way to do it directly from the content pane or the JInternalFrame.
[ March 13, 2004: Message edited by: Jeremy Tartaglia ]
 
 
subject: Jinternal frame
 
Similar Threads
JInternalFrame Problems
Frames in HTML
accessing frame contents
How to show Modelless Frame
manipulating frames