[Edited by Freakman] Question about JFrame.setDef...
Author |
Message |
FileFantasy
|
Posted: 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
|
|
|
FileFantasy
|
Posted: 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)
After: (credits go to http://www.beginner-java-tutorial.com)
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
|
Posted: 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
|
Posted: 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
|
Posted: 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. |
|
|
|
|
|
|
|