Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalFrame maximise problem  RSS feed

 
sandeep kumar jangra
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi frenz ... my problem is I m making an application in which there are many JInternalFrames. I want to maximise or minimise them from Menu. code I m using is

if(!(frame.isMaximizable())){
frame.getDesktopPane().getDesktopManager().minimizeFrame(frame);
frame.setMaximizable(true);
JInternalFrame[] frames=desktop.getAllFrames();
for(int i=0;i<frames.length;i++)
frames[i].setLayer(i);
frame.setLayer(32767);
}
else{

frame.getDesktopPane().getDesktopManager().maximizeFrame(frame);
frame.setMaximizable(false);

}




but problem is that neither window does not maximise properly. it comes over another window.partially maximised partially below other frames. what could be the problem. plz answer. thanx in advance
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!