• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem while maximizing internal frame

 
Bhavani Prasad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a probelm with JInternalFrames. Here goes
my problem description: I have a main JFrame where I have added the desktop pane. And I have number of panels to be shown in different internal frames. The design what I am following is, I have extended JInternalFrame class to add the functinality to take and show any JPanel. In the constructor I need to do the following things:
(1) setSelected(true);
(2) setMaximum(true);
But when I call setMaximum(true) the result is:
the internal frame is shown maximized but all the
editable fields in that panel stop responding
to the user actions.
can any body tell me what could be the wrong?
thanks in adv.
regards
Bhavani
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just to make sure, if you comment out the setMaximum(true) line then everything works fine?
Also when you do this, check and see what happens when you manually maximize the frame. Does it behave the same?
[ February 21, 2003: Message edited by: Chris Shepherd ]
 
Bhavani Prasad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thanks for looking in to this problem. Here I am
adding on points.
when not comemnted:
(1) all editable fields are not responding on
launching the internal frame.
(2) if you minimize the entire application and
then maximize then it starts responding.
(3) if you open any other dialog from the internal
frame then also it starts working.
When commented out the line:
then everything works fine.

regards
 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show me your construction code for your custom JInternalFrame? I'm not sure that I know anything that will help, but seeing code sometimes makes it easier.
 
Cy Bird
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had this exact same problem. We actually put an app into production that minimizes then maximized the JFrame (to mimic alt-tab) which gets around the problem. Our solution: switch to JDialog. We've had much success since.
 
Bhavani Prasad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thanks for your responses. Since my classes contains references of some other
classes in my module, I tried to remove them and make it a simple application
which can be easy for discussing furthur for this problem solvation. But to my
surprise the resultant client application is working simply fine and there is
no problem. So I think there is some problem with all the other stuff I am
using inside this class which may be causing some 'synchronization'related probelms.
As of now I am not sure but hope will be able to resolve once I refactor the code
thoroughly.
Many thannks for your support.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!