• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 22783
131
Eclipse IDE Spring VI Editor 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic