Package com.softuni.raxus.listeners

Examples of com.softuni.raxus.listeners.ExitButtonListener


    replayButton.addActionListener(new ReplayButtonListener(this, new PlayScreen()));
    replayButton.setFont(new Font("Tahoma", Font.CENTER_BASELINE, 18));
    replayButton.setMargin(new Insets(10, 62, 10, 62));
   
    JButton exitButton = new JButton(Constants.EXIT_BUTTON_LABEL);
    exitButton.addActionListener(new ExitButtonListener(this));
    exitButton.setFont(new Font("Tahoma", Font.CENTER_BASELINE, 18));
    exitButton.setMargin(new Insets(10, 62, 10, 62));
   
    panel.add(winner);
    panel.add(replayButton);
View Full Code Here


    exitButton.setAlignmentY(Component.CENTER_ALIGNMENT);
    exitButton.setFont(new Font("Tahoma", Font.CENTER_BASELINE, 18));
    exitButton.setMargin(new Insets(10, 62, 10, 62));
    // Set the click listener to the button and pass it the frame that it
    // needs to close.
    exitButton.addActionListener(new ExitButtonListener(this));
    return exitButton;
  }
View Full Code Here

TOP

Related Classes of com.softuni.raxus.listeners.ExitButtonListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.