Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

maximizing a JInternalFrame  RSS feed

 
srijan sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am using a Jdesktoppane and i want when an action event is fired a JInternalFrame opens up on the top in such a way that the new frame(Jinternalframe) is maximized as soon as it comes up.Kindly help
regards
srijan
 
kyle amburn
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the setMaximum(boolean) method of JInternalFrame.
Kyle
 
srijan sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks kyle
But i have tried with this before and it gaves a null pointer exception and does not work.
regards
srijan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!