• Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalframe resizing  RSS feed

 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application which consists of a JFrame containing an internal menu in the form of a JInternalframe + JTree. When the form opens by default it fills the screen and the JInternalframe containing the menu occupies the left hand side of the screen. I would like to capture any events which result from the user re-sizing the main window so that the internal frame is resized to fit. Currently the bottom of the internal frame just disappears out of view if the user reduces the height of the main window.

Any examples or hints would be very helpful.

Dave
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David

Try the following code:
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks - that's given me the clue I needed.
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok you've sorted that for me. Is there something similar that I should do to handle the re-positioning of all my minimised jinternalframes once the containing jframe is resized. Currently they disappear out of sight if the frame is reduced.

I'm sure it's simply, just can't think of the right phase to search for examples.

Dave.
 
Mark Deneen
Greenhorn
Posts: 3
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm impressed, your a fountain of useful information.

Many thanks.

Problem solved (worked around)

Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!