Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private JButton jBtnDrawCircle = new JButton("Circle");
- private JButton jBtnDrawSquare = new JButton("Square");
- private JButton jBtnDrawTriangle = new JButton("Triangle");
- private JButton jBtnSelection = new JButton("Selection");
- jBtnSelection.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- selectionButtonPressed();
- }
- } );
- jBtnDrawCircle.addActionListener( /*class that implements ActionListener*/ );
Add Comment
Please, Sign In to add comment