• 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

Frame minimize and maximize buttons

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

In the project I have a frame which has only the close button and not the minimize and maximize button.

I am not able to find out why those buttons are not visible.

Please help.

 
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
Hi Neh,
Welcome to the Ranch.

Are you sure it is a JFrame and not a JDialog? You can find this out by looking at the source code.

Usually, dialogs are displayed without the maximize/minimize buttons. So if you want these buttons you will have to subclass JFrame and then use it.
 
Neh Agarwal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for the reply,

Is there any way I can have minimize and maximize buttons in JDialog or I have to subclass JFrame and use that only.

Thanks
 
Maneesh Godbole
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
Do you want a "modal" behavior; use JDialog/JOptionPane.
If modal behavior is not required go for JFrame.
 
Neh Agarwal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I was actually using JDialog instead of Frame, so after replacing it with Frame, I got those buttons!

Thanks again for the help!
 
Neh Agarwal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Neh,
I have edited your post.
Please read http://faq.javaranch.com/java/UseOneThreadPerQuestion and http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
 
reply
    Bookmark Topic Watch Topic
  • New Topic