This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JInternalframe resizing  RSS feed

 
Ranch Hand
Posts: 221
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
 
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: 221
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: 221
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.
 
Greenhorn
Posts: 3
 
David Garratt
Ranch Hand
Posts: 221
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
 
A timing clock, fuse wire, high explosives and a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!