Examples of showMessageDialog()


Examples of buoy.widget.BStandardDialog.showMessageDialog()

        } catch ( Exception e ) {
            BStandardDialog dialog = new BStandardDialog(
                    "Cannot set LookAndFeel",
                    "Error in setting LookAndFeel: " + name + "\n" + e,
                    BStandardDialog.ERROR);
            dialog.showMessageDialog(caller);
        }
        SwingUtilities.updateComponentTreeUI(caller.getComponent());
    }

    public static String getSystemLookAndFeel() {
View Full Code Here

Examples of edu.umd.cs.findbugs.IGuiCallback.showMessageDialog()

        if (!cloud.availableForInitialization()) {
            return;
        }

        if (DEBUG) {
            callback.showMessageDialog("attempting to initialize " + cloud.getClass().getName());
        }

        if (!cloud.initialize()) {
            throw new IOException("Unable to connect to " + cloud.getCloudName());
        }
View Full Code Here

Examples of edu.umd.cs.findbugs.IGuiCallback.showMessageDialog()

        if (!cloud.initialize()) {
            throw new IOException("Unable to connect to " + cloud.getCloudName());
        }

        if (DEBUG) {
            callback.showMessageDialog("initialized " + cloud.getClass().getName());
        }
    }


    public static @Nonnull Cloud getPlainCloud(BugCollection bc) {
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

     * @param body    body text of dialog
     * @param title   title of dialog
     */
    public static void modalError(Component parent, String body, String title) {
        JOptionPane errorDialog = new JOptionPane();
        errorDialog.showMessageDialog(parent, body, title, JOptionPane.ERROR_MESSAGE);
    }
   
    /**
     * Creates a simple modal error dialog.
     *
 
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

        modalError(parent, body, title);
    }
   
    public static void nonModalError(String body, String title, Exception e) {
        JOptionPane errorDialog = new JOptionPane();
        errorDialog.showMessageDialog(null, body, title, JOptionPane.ERROR_MESSAGE);
    }
   
    /**
     * Dumps a list of active threads in the current thread's ThreadGroup.
     */
 
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

    else
    {
      if (stepMode)
      {
        JOptionPane optionPane = new JOptionPane();
        optionPane.showMessageDialog(this, msg, "TestTool Notification", JOptionPane.INFORMATION_MESSAGE);
      }
      else
      {
        Object[] options = { "OK", "Go back to step mode" };
        if (1 == JOptionPane.showOptionDialog(this, msg, "TestTool Notification",
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

    }
    catch(NoPathFoundException e)
    {
      if (warnUser)
      {
        msg.showMessageDialog(this, "Je suis désolé, mais vous n'avez plus suffisamment de vie pour continuer.\nVous allez mourir ici...", "Mauvaise nouvelle", JOptionPane.WARNING_MESSAGE);
        int ans = msg.showOptionDialog(this, "Voulez-vous recommencer ?", "Redémarrer le niveau", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null);
        switch(ans)
        {
        case 0:
          throw(new RestartLevelException());
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

        case 0:
          throw(new RestartLevelException());
        case 1:
          throw(new AbortGameException());
        case 2:
          msg.showMessageDialog(this, "Vous voulez donc continuer, soit.\nMais vous allez mourir sans voir la sortie...");
          warnUser = false;
        default:
          break;
        }
      }
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

    // Clic sur le bouton "Ajouter acteur"
    if(event.getActionCommand() == AJOUTER_ACTEUR){
     
      if(_pnl.get_txtAjoutActeur().getText().equals("")){
       
        info.showMessageDialog(_pnl, "L'acteur doit avoir un prenom et/ou un nom !", ".:: Ajout d'un acteur ::.", info.ERROR_MESSAGE);
      }
      else if (acteurDejaAjoute(_pnl.get_txtAjoutActeur().getText())){
       
        info.showMessageDialog(_pnl, "Attention, vous avez deja� ajoute cet acteur !", ".:: Ajout d'un acteur ::.", info.ERROR_MESSAGE);
      }
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

       
        info.showMessageDialog(_pnl, "L'acteur doit avoir un prenom et/ou un nom !", ".:: Ajout d'un acteur ::.", info.ERROR_MESSAGE);
      }
      else if (acteurDejaAjoute(_pnl.get_txtAjoutActeur().getText())){
       
        info.showMessageDialog(_pnl, "Attention, vous avez deja� ajoute cet acteur !", ".:: Ajout d'un acteur ::.", info.ERROR_MESSAGE);
      }
      else {
        // Au clic sur ajouter acteur, on ajoute l'item dans la liste.
        _pnl.get_lstActeurs().add(_pnl.get_txtAjoutActeur().getText());
        _pnl.get_txtAjoutActeur().setText("")
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.