• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

How to hide the minimize and maximize button of a frame?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends
i need to create dialog box without having any controls on the title bar of the frame. which function do i use for that.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are asking multiple questions which are a bit confusing.

Your title says hide maximize and minimize buttons in a frame.
Then you mention a dialog box without any controls.

Which one of it is it?
 
mani senthil
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:You are asking multiple questions which are a bit confusing.

Your title says hide maximize and minimize buttons in a frame.
Then you mention a dialog box without any controls.

Which one of it is it?



the first one is what i need.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mani,

In JFrame you can disable the Resize button as well as the Close button but can not override the minimize button.
We can not hide these 3 buttons also.

To disable the Resize Button and Close button , you have to write below code.


If you want to Hide the Minimize Button and Resize Button then in place of JFrame use JDialog, It will show only the close button.
and to Disable the Close Button use the above code...


If you want to hide all these 3 button present in Title bar then use Window Class



Regards
Binaya
 
Sheriff
Posts: 22809
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You mean JWindow of course

You can also use an undecorated (hint: look for that word in the API) JFrame.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic