This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Focus JInternalFrames .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Focus JInternalFrames .." Watch "Focus JInternalFrames .." New topic

Focus JInternalFrames ..

David Hittel

Joined: May 25, 2007
Posts: 11
Hi everybody,

i have a weird Problem with my application. I Have a JFrame with a DesktopPane and to this Pane i add JinternalFrames like this

BetriebListView BeLi = new BetriebListView();

But the problem is when one JinternalFrame is open and i open another JInternalFrame, the first JIF is always on top and the other JIF is hidden behind the first.

Somebody of you has any suggestions?

Thanks alot

David Hittel

Joined: May 25, 2007
Posts: 11
Hi i solved it myself, typical i tried to solve it for hours then you post you problem and then you find the solution. :-)

Here the code

RohstoffListe RoLi = new RohstoffListe(desktopPane);

Its very important that you call setVisible after you added it to the DesktopPane otherwise the Window will get no Focus.

jQuery in Action, 2nd edition
subject: Focus JInternalFrames ..
Similar Threads
Has anyone used JavaHelp?
adding listeners
MDI with a Windows menu
JInternalFrame JScrollPane JTextarea