• Post Reply Bookmark Topic Watch Topic
  • New Topic

Metal Look and Feel of JFrame on Windows XP

 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having this :

I get a Windows XP Frame with a Metal Button in it.
How can I get a Metal Frame?
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your frame is already as metal as it gets. You don't have any control over the title bar.

Well, you can hide it, by calling setUndecorated(true). But then you have to create your own title bar, with minimize, maximize / restore and close button, title, and icon with context menu.
 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Your frame is already as metal as it gets. You don't have any control over the title bar.

But I saw images of "metal frames" and internal frames including their title bars are loking "metallic" too, so I wonder why my frame still looks like Windows XP.
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you see these images?
 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Where did you see these images?

http://nadeausoftware.com/node/91
 
guenter krannich
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Rob,
I was lucky, I found a solution!
Just insert

and you see a "metallic" frame including title bar!
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I didn't know that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!