int result = JOptionPane.showConfirmDialog(AppleJuiceDialog. getApp(), bestaetigung, "appleJuice Client", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); if (result == JOptionPane.YES_OPTION) { ApplejuiceFassade.getInstance().exitCore(); }
OptionsDialog od = new OptionsDialog(_this); Dimension appDimension = od.getSize(); Dimension screenSize = _this.getSize(); od.setLocation( (screenSize.width - appDimension.width) / 4, (screenSize.height - appDimension.height) / 4); od.show();
                public void actionPerformed(ActionEvent e) {                    int result = JOptionPane.showConfirmDialog(AppleJuiceDialog.                        getApp(), bestaetigung,                        "appleJuice Client", JOptionPane.YES_NO_OPTION,                        JOptionPane.WARNING_MESSAGE);                    if (result == JOptionPane.YES_OPTION) {                        ApplejuiceFassade.getInstance().exitCore();                    }                }