Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Swing / AWT / SWT
Frame minimize and maximize buttons
Neh Agarwal
Greenhorn
Posts: 24
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Maneesh Godbole
Bartender
Posts: 11497
19
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
Neh Agarwal
Greenhorn
Posts: 24
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Do you want a "modal" behavior; use JDialog/JOptionPane.
If modal behavior is not required go for JFrame.
[
How to ask questions
] [
Donate a pint, save a life!
] [
Onff-turn it on!
]
Neh Agarwal
Greenhorn
Posts: 24
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Neh,
I have edited your post.
Please read
http://faq.javaranch.com/java/UseOneThreadPerQuestion
and
http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do you maximize on frame load?
Customize JFrame
Frame without M&M buttons
Adding Maximize and minimize buttons in Jdialog
JFrame problems.....
More...