Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomButton extends JButton {
- private String btnID;
- public CustomButton(String id, String label) {
- this.btnID = id;
- setText(label);
- setFocusable(false);
- }
- public String getBtnID() {
- return btnID;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement