Total members 11890 |It is currently Thu Apr 25, 2024 3:54 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

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;

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  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






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com