Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

JButtons implementing an Action

Fri Oct 24, 2008 5:29 pm

Is there a simple way of selecting or deselecting all JButtons
implementing the same Action?



Re: JButtons implementing an Action

Fri Oct 24, 2008 5:30 pm

if u mean that u have many buttons make one action or take the same
actions and u want to make one action to them ok it is easy;
u can coolect them in array of jbuttons
like this ;
Code:
jbuton name[]=new jbutton[];
and jbutton.addactionlistener()_;

at the end of annonymes class i think it the easy thng;
but if u mean aontheer
i hopen to send me more of notice or send me the code and say what u
want excatly;

Post a reply
  Related Posts  to : JButtons implementing an Action
 php SAX parser in action     -  
 php extends in action     -  
 is_numeric in action     -  
 Button action listener should implement abstract method     -  
 Two Listeners- Mutli- Action Listeners on Text Area     -  
 Implementing synchronization in C++ with threads     -  
 When to choose C++ for implementing your project and Why     -  
 Data missing when implementing 3DES using DES     -  
 Implementing fibonacci sequence problem using iterations     -  

Topic Tags

Java Swing