This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

more internal frame problems  RSS feed

 
sorcha kripshaw
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an JDesktopPane application: the main internal frame is set to maximum to take up the entire space of the JFrame and several smaller internal frames open when needed. there seem to be two major problems with this situation, however, and i was wondering if anyone could help:
1. The smaller internal frames 'disappear' behind the large (main) internal frame when minimized (which occurs when minimized or when any other internal frame is in focus). the user has to know that they are behind the large frame and minimize it in order to restore the other frames. is there any way to see the iconified internal frames ABOVE the large internal frame?
2. the main internal frame (set to maximum) cannot be restored after its iconified. it was constructed with all modes as true (iconifiable, maximizable, closable etc.), however when iconified and then clicked on to restore it just disappears - doesn't restore!!
this happens also in its open state - when the maximize / restore icons in the upper right cornere are clicked on. it just disappears.
help please...
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as for your first question did you try the method moveToFront() ?
for the second question , you have to set a size for the internalFrame so it knows what to be restored to. just add a setSize(100,100) method for example to the internal frame and it wont disappear.
 
sorcha kripshaw
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks - the solution will work for my second question.
the first, however, remains: i cannot move the frames to front when iconified - but rather i would like to know how to show them all in front of the first internal pane in their iconified state.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!