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
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Swing / AWT / SWT
JFrame title bar height
S Dan
Greenhorn
Posts: 25
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Also, how do I change the height of JFrame title bar height?
Thanks.
-Dan
Michael Dunn
Ranch Hand
Posts: 4632
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
at best this would be a hack (and not a very good one)
import java.awt.*; import java.awt.event.*; import javax.swing.*; class Testing extends JFrame { public Testing() { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame(" "); frame.getLayeredPane().getComponent(1).setFont(new Font("Lucida",Font.PLAIN,48)); frame.setSize(300,100); frame.setLocation(400,200); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); } public static void main(String[] args){new Testing();} }
Stuart Gray
Ranch Hand
Posts: 410
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Otherwise, will the height be controlled by the current Look and Feel?
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JFrame title bar
How to change the height of the JFrame title bar and its color?
Windows height
and onto graphics
Adding Buttons to JFrame title bar
More...