my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes weird JButtons going grey Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "weird JButtons going grey " Watch "weird JButtons going grey " New topic
Author

weird JButtons going grey

Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

I have Frame with JButtons and sometimes when I run the program is has the nice defult look and feel. but for some reseason when I run it the buttons and background have the grey Windows defult colour instead of the nice blue Java color, This also happens to the framebackground also.

has anyone else encountered this, or have any idea what could cause this?


Jesus lives
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Perhaps you are mixing Swing and AWT components?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

I still have not solved this. Can anyone give some more advice?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
post a sample program, so that we can copy/paste/compile/run and see the
behavior you describe.
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

Em, it could take about 5 mins to do this.

Firstly you need to install ImageJ

Then you need to put my plugin in, found here image splitter
please follow the instructions in that page. THe screenshot is what it should look like



This is an embarrassing problem for me. It occurs say 1 out of 3 times

[ May 22, 2007: Message edited by: Nikos Katsikanis ]
[ May 22, 2007: Message edited by: Nikos Katsikanis ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weird JButtons going grey
 
Similar Threads
JButtons not buttons?
Can anyone help me with Drag and Drop in swing?
JButton dissapearing intermentially when PC comes out of sleep
JButtons border to be the same color as the JPanel
Ant Build Successful but neither jar file nor build folder created ?