Custom JFrame Title Bar

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Custom JFrame Title Bar

Postby ceken » Wed Jul 08, 2009 10:17 pm

Hi All,
I want to customize the title bar of the JFrame as follows;
1.It has a gradient painted color
2.It has NO minimize, maximize and close button on upper right corner

Is it possible to realize this using JFrame.jvt or Is anyone there who can advise a way?


Regards
Cengiz EKEN
ceken
 
Posts: 5
Joined: Mon Feb 23, 2009 6:52 am

Re: Custom JFrame Title Bar

Postby Eric Clayberg » Thu Jul 09, 2009 7:47 am

You can set "undecorated" to true and then do anything you like in terms of adding back custom decorations.

You might also want to look at this...

http://www.coderanch.com/t/344113/Swing ... e-minimize
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest