• Post Reply Bookmark Topic Watch Topic
  • New Topic

weird JButtons going grey  RSS feed

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you are mixing Swing and AWT components?
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I still have not solved this. Can anyone give some more advice?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post a sample program, so that we can copy/paste/compile/run and see the
behavior you describe.
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!