• Post Reply Bookmark Topic Watch Topic
  • New Topic

ToggleButton pressed  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know if the toggle button is pressed or not
i tried is selected but it is not giving me the right answer
i need to check if it is pressed or not ie on or off
any help
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isSelected() is the correct method.

post a small sample program that demonstrates the incorrect behaviour
(eg a frame with a panel with a togglebutton, and actionlistener code)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!