Joined
Last Seen
-1 Reputation Points
- 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
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: 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 … |
The End.