Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton pressed appearance  RSS feed

 
Manjula Rao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i press a JButton it sows a dark shaded background. i wnat it to just sow the icon i have set thru setPressedIcon() and not show the shaded background. i have set borderPainted(Flase) so that the button is visible only thru the icon and not as a convensional button.
thanx
Manjula
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manjula,
u need to use following function.
button.setContentAreaFilled(false);

regards
Deekasha
 
Manjula Rao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Deekasha
That solved my problem.
bye
Manjula
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!