• Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange JButton background behaviour  RSS feed

 
Nura Horne
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the mouse is pressed (Ie depressed but not released over a JButton the background changes colour to a dark grey. I want to change the colour that the background goes when the button is pressed... does anyone know how?
Changing the setBackground property of the JButton itself does not have any effect (it only affects the colours used to draw the border).
Someone please help as it must be possible! Rgds, A
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!