posted 18 years ago
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