Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #107.55K
~93 People Reached
Favorite Forums
Favorite Tags
java x 1

1 Posted Topic

Member Avatar for rpjanaka

let me ....... the best way to do that would be..like this public class MyClass { //-----first create 3 buttons----- JButton myButton1 = new JButton(); myButton1.addActionListener(new listener1()); JButton yourButton=new JButton(); yourButton.addActionListener(new listener2()); JButton otherButton=new JButton(); otherrbutton.addActionlistener(new listener3()); class listener1 implements ActionListener { public void actionPerformed(ActionEvent e) { //---things to be …

Member Avatar for stephen84s
0
93

The End.