Package com.barrybecker4.ui.dialogs

Examples of com.barrybecker4.ui.dialogs.ImagePreviewDialog.showDialog()


     * game specific information.
     */
    @Override
    public void showWinnerDialog() {
        GalacticTallyDialog tallyDialog = new GalacticTallyDialog(parent_, (GalacticController)controller_);
        tallyDialog.showDialog();
    }

    /**
     * @return   the message to display at the completion of the game.
     */
 
View Full Code Here


        Point p = getParent().getLocationOnScreen();

        // offset the dlg so the Galaxy grid is visible as a reference
        ordersDialog.setLocation((int)(p.getX()+0.7*getParent().getWidth()), (int)(p.getY()+getParent().getHeight()/3.0));

        boolean canceled = ordersDialog.showDialog();
        if ( !canceled ) { // newGame a game with the newly defined options
            currentPlayer.setOrders( ordersDialog.getOrders() );
            gc.advanceToNextPlayer();
        }
    }
View Full Code Here

               pc.advanceToNextPlayer();
           }

           BettingDialog bettingDialog = new BettingDialog(pc, getParent());

           boolean canceled = bettingDialog.showDialog();
           if ( !canceled ) {
               PokerAction action = (PokerAction)currentPlayer.getAction(pc);
               applyPokerAction(action, currentPlayer);

               pc.advanceToNextPlayer();
View Full Code Here

        PasswordDialog pwDlg = new PasswordDialog(PASSWORD);
        boolean canceled = pwDlg.showDialog();
        if ( canceled ) return;

        StoryEditorDialog storyEditor = new StoryEditorDialog(story_);
        boolean editingCanceled = storyEditor.showDialog();
        if (!editingCanceled) {
            // show the edited version.
            story_.initializeFrom(storyEditor.getEditedStory());
            story_.resetToFirstScene();
            setStory(story_);
View Full Code Here

    public void actionPerformed( ActionEvent e )  {
        Object source = e.getSource();

        if ( source == showImageButton_ ) {
            ImagePreviewDialog imgPreviewDlg = new ImagePreviewDialog(scene_.getImage());
            imgPreviewDlg.showDialog();
        }
        else if ( source == playSoundButton_ ) {
            scene_.playSound();
        }
    }
View Full Code Here

     * Allow user to edit the current story if they know the password.
     */
    public void editStory() {
        // show password dialog.
        PasswordDialog pwDlg = new PasswordDialog(PASSWORD);
        boolean canceled = pwDlg.showDialog();
        if ( canceled ) return;

        StoryEditorDialog storyEditor = new StoryEditorDialog(story_);
        boolean editingCanceled = storyEditor.showDialog();
        if (!editingCanceled) {
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.