Last active
May 26, 2016 14:39
-
-
Save anymaniax/1239158e4db1a4c39c71304273fac90b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CouleurAction implements ActionListener{ | |
private JLabel lblCouleur ; | |
public CouleurAction(JLabel lblCouleur){ | |
this.lblCouleur=lblCouleur ; | |
} | |
@Override | |
public void actionPerformed(ActionEvent e) { | |
JButton btnSource=(JButton)e.getSource(); <≠≠(⇤) | |
lblCouleur.setText ( btnSource.getText () ) ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment