redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Friday 03 September 2010 04:36

Ask your IT question here

Is there a way to let java paint the JFrame too?



 
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum
View previous topic :: View next topic  
Author Message
Shirley Kidman
Enthusiastic Coder


Joined: 21 Jun 2006
Posts: 30
I'm developing an Application which has a JFrame (Window) Containing a JDesktopPane containing JInternalFrame's. When I now set the Look&Feel for my Application all the JInternalFrames are painted according to the L&F. However the JFrame (out-most window) still looks like every other native-windows application.
Is there a way to let java paint the JFrame too?
(it seems it get's painted by windows)

Reply with quote
 
Sasagua
New Programmer


Joined: 23 Jun 2006
Posts: 6
Shirley Kidman, is it the default LnF?
Reply with quote
 
Shirley Kidman
Enthusiastic Coder


Joined: 21 Jun 2006
Posts: 30
No, it's a "Skin Look & Feel" (found it somewhere in google)
But i could also try to set another one...

Reply with quote
 
Mupolan
Enthusiastic Coder


Joined: 30 May 2006
Posts: 101
Shirley Kidman did you try playing around with SwingSet2 (the supplied Swing demo) ?
Reply with quote
 
Shirley Kidman
Enthusiastic Coder


Joined: 21 Jun 2006
Posts: 30
Sasagua, metal L&F is the same...
Mupolan, not yet, where could I get it?

Reply with quote
 
Mupolan
Enthusiastic Coder


Joined: 30 May 2006
Posts: 101
It comes with SDK
Reply with quote
 
Shirley Kidman
Enthusiastic Coder


Joined: 21 Jun 2006
Posts: 30
Ok.....
Reply with quote
 
Sasagua
New Programmer


Joined: 23 Jun 2006
Posts: 6
Shirley Kidman you read this: http://java.sun.com/docs/books/tutorial/uiswing/misc/plaf.html ?
Reply with quote
 
Mupolan
Enthusiastic Coder


Joined: 30 May 2006
Posts: 101
Shirley Kidman , or just google " SwingSet2 java " (cant remember where it is put)
ah ! on my machine , the installer threw it at C:\Program Files\Java\jdk1.5.0_05\demo\jfc\SwingSet2
Also try http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.html#setDefaultLookAndFeelDecorated(boolean)

Reply with quote
 
Shirley Kidman
Enthusiastic Coder


Joined: 21 Jun 2006
Posts: 30
Mupolan,This is it...many thanks!!!!
Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Based on phpBB © 2001-2010 RedHo