This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Minimize Button (Swing)  RSS feed

 
Juan Manuel Alberto de los Santos
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i put a custom minimize button ? instead of using the windows minimize default

i leave you a representation of what i want to do ...







Thanks in advance !!
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, CarefullyChooseOneForum. This clearly belongs in the Swing / AWT forum. Some other bartender will move this thread later.

You can minimize a frame using the setExtendedState method:

Using Frame.NORMAL you can restore it, and Frame.MAXIMIZED_BOTH can be used to maximize the frame.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!