Examples of BackButtonListener


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

Examples of com.softuni.raxus.listeners.BackButtonListener

   * @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
Copyright © 2018 www.massapi.com. 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.