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
This week's book giveaway is in the
Design and Architecture
forum.
We're giving away four copies of
Communication Patterns: A Guide for Developers and Architects
and have Jacqui Read on-line!
See
this thread
for details.
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
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
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Swing / AWT / SWT
window decorations
miguel lisboa
Ranch Hand
Posts: 1282
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i'm playing with my gui: i made buttons that switch L&F:
xp.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { txt.requestFocusInWindow(); try{ UIManager.setLookAndFeel( "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch(Exception cnfe){} SwingUtilities.updateComponentTreeUI(Gui.this); }});
and so on; i also discovered that if before Gui.setVisible() i use:
JFrame.setDefaultLookAndFeelDecorated(true);
i get the
java
look for title bar
so i used it, but then got puzzled because when i switch L&F title disapears...
My Q: is there a way to have it all? i mean, the l&f switch and the default L&Fdecorated?
TiA
java amateur
miguel lisboa
Ranch Hand
Posts: 1282
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
no one with any idea?
java amateur
They worship nothing. They say it's because nothing is worth fighting for. Like 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
Using Nimbus as cross-platform LaF
Ugly white space around ImageIcons placed on JInternalFrame Title Bar
weird mouse icon change
JCheckBox Border?
Look and Feel
More...