Package com.softuni.raxus.listeners

Examples of com.softuni.raxus.listeners.BackButtonListener


    PromptSupport.setFocusBehavior(FocusBehavior.SHOW_PROMPT, nameSecondPlayer);
    nameSecondPlayer.setEditable(true);

    // Button that lets the user navigate back to the calling frame.
    JButton backButton = new JButton(Constants.BACK_BUTTON);
    backButton.addActionListener(new BackButtonListener(this,
        new MenuScreen()));

    // The text that the user entered.
    // Button that lets the user continue to the PlayScreen.
    JButton startButton = new JButton(Constants.START_BUTTON);
View Full Code Here


   * @return backButton that navigates to the previous frame.
   */
  private JButton addBackButton() {
    JButton backButton = new JButton(Constants.BACK_BUTTON);
    // Pass the AboutScreen frame so it can be disposed.
    backButton.addActionListener(new BackButtonListener(this,
        new MenuScreen()));
    return backButton;
  }
View Full Code Here

TOP

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

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.