This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JInternalframe resizing  RSS feed

 
Ranch Hand
Posts: 222
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: 222
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: 222
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: 222
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!