This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hey, Does JButton object recognise item events?, 'coz in my application I want to have a button which should display some results depending upon the state of the button(selected or deselected). I know I can use check box instead of button but ... could some one help me in clearing my fundas? ... thanks ..
hi! the jbutton has built-in functions for the same. eg. jbutton go = new JButton(); then you have methods to set the icon of the image according to the event: eg go.setSelectedIcon(Icon); go.setRolloverIcon(Icon); go.setPressedIcon(Icon); and so on... check the java documentation for a full list of methods... hope this helps... meera
Joined: Jun 18, 2002
Hey meera, When I say "display" some results , I mean to say that some other check boxes should change state according to the state of the button and not exactly *display * some icons or images.. Thanks ..
Joined: Dec 18, 2001
oops sorry..... got u wrong!!! anyways, wouldn't a click make the button selected???...just a thought... meera [ June 20, 2002: Message edited by: meera sood ]