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
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Swing / AWT / SWT
disabling minimize icon in JFrame
Nirmal JeyaChandra
Greenhorn
Posts: 25
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please suggest me how to disable minimize icon in JFrame
Thanks in advance
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Use JWindow instead of JFrame
[My Blog]
All roads lead to JavaRanch
Nirmal JeyaChandra
Greenhorn
Posts: 25
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If I use JWindow instead of JFrame I am not able to view the whole title
I want only the minimizing and maximizing icons diabled not the closing icon disabled.
Please help. Thanks in advance.
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Calling setResizable(false) will gray out the minimize/maximize buttons
(maybe
)
[My Blog]
All roads lead to JavaRanch
Michael Dunn
Ranch Hand
Posts: 4632
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what about removing the min/max buttons?
import java.awt.*; import javax.swing.*; class Testing extends JFrame { public Testing() { setTitle("JFrame"); setSize(300,200); setLocation(350,200); setDefaultCloseOperation(EXIT_ON_CLOSE); setUndecorated(true); getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); getContentPane().add(new JPanel()); } public static void main(String[] args){new Testing().setVisible(true);} }
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to Auto Minimize a JFrame
how to disable resize button
how to disable minimize option in JFrame
icon changing
notification icon question
More...