User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,604 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,649 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

Creating Hover Effect for JButton

Join Date: Apr 2008
Posts: 16
Reputation: K?! is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
K?! K?! is offline Offline
Newbie Poster

Re: Creating Hover Effect for JButton

  #10  
May 15th, 2008
Ok guys, found it .

In stead of trying to do this:
btnCard[evt.getComponent().getActionCommand()].setBackground(Color.GREEN);
I can do this:
evt.getComponent().setBackground(Color.GREEN);

Thanks for helping me out .
Greets K?!
Last edited by K?! : May 15th, 2008 at 8:41 am.
Reply With Quote  
All times are GMT -4. The time now is 11:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC