Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [Edited by Freakman] Question about JFrame.setDef...
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
FileFantasy




PostPosted: Sat Mar 31, 2007 7:25 pm   Post subject: Question about JFrame.setDef...

I remember long time ago, when I dealt with looks of a JFrame that has buttons in it, the buttons have a blue-green, kinda aqua color, and it's kinda shaded, which looked really nice.

But now when I try setDefaultLookAndFeelDecorated(true); it only gives me the top bar (with the title, minimize, maximize and close), the buttons remain a flat gray.

Is there another command that I'm forgetting? I really want to use the one that gave nice button graphics again, and now that I think about it, I think that one didn't add a top bar either, which is good, because I like the windows top bar more.

Thanks in advance.

-----

Attention Freakman / rizzix: what did you edit?
Sponsor
Sponsor
Sponsor
sponsor
FileFantasy




PostPosted: Sun Apr 08, 2007 7:40 pm   Post subject: Re: Question about JFrame.setDef...

The following is what I'm talking about:

Before: (credits go to Carleton University)
Posted Image, might have been reduced in size. Click Image to view fullscreen.

After: (credits go to http://www.beginner-java-tutorial.com)
Posted Image, might have been reduced in size. Click Image to view fullscreen.

Note that in Before, setDeaultLookAndFeel(true) gave nicer button graphics than After, and I'm trying to find out why I can't get the Before buttons to show up anymore when I use setDeaultLookAndFeel(true).
FileFantasy




PostPosted: Mon Apr 09, 2007 4:27 pm   Post subject: RE:[Edited by Freakman] Question about JFrame.setDef...

Come to think of it, I think I was using NetBeans back then, and now I'm stuck with RTP because the school uses it.

Think that might be the reason?
HellblazerX




PostPosted: Mon Apr 09, 2007 7:38 pm   Post subject: RE:[Edited by Freakman] Question about JFrame.setDef...

When I tried running my programs at school, the buttons were of the nicer graphics, but when I run it at home, they don't. It's not because of RTP, because I used both JCreator and RTP. I think it might be the JDK version, as I'm only using 1.4.2.
FileFantasy




PostPosted: Sat Apr 14, 2007 12:56 am   Post subject: RE:[Edited by Freakman] Question about JFrame.setDef...

Well, I just updated to the newest version, and I still get bad buttons...

I think I was using XP Prof Ed back then, Home Ed right now, wonder if that makes a difference.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: