This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!