Package javax.swing

Examples of javax.swing.JOptionPane.showMessageDialog()


                }
                else
                {
                  JOptionPane dialog = new JOptionPane();
                  String msg = "Only "+maxSelections+" selections allowed.";
                  dialog.showMessageDialog(FindNameDialog.this,msg,"Note!",JOptionPane.ERROR_MESSAGE);
                }
                //System.out.println("GGGGGGGGGGGGGGGGGGGGGGGGG3");
               
                for (int j=0;j<okListeners.size();j++)
                {
View Full Code Here


              {
                if ((onlyThisRepository != null) && (onlyThisRepository.equals(reposi)))
                {
                  JOptionPane dialog = new JOptionPane();
                  String msg = "Queries are being directed to the repository ''"+reposi+"'' but this repository is disabled.";
                  dialog.showMessageDialog(FindNameDialog.this,msg,"Check your preferences!",JOptionPane.ERROR_MESSAGE);
                     
                }
                else
                {
                  System.out.println("Skipping buffer name query for "+reposi);
View Full Code Here

              {
                if ((onlyThisRepository != null) && (onlyThisRepository.equals(reposi)))
                {
                  JOptionPane dialog = new JOptionPane();
                  String msg = "Queries are being directed to the repository ''"+reposi+"'' but this repository is disabled.";
                  dialog.showMessageDialog(FindNameDialog.this,msg,"Check your preferences!",JOptionPane.ERROR_MESSAGE);
                     
                }
                else
                {
                  //System.out.println("Skipping experiment name query for "+reposi);
View Full Code Here

            {
              public void actionPerformed(ActionEvent e)
                                        {
                JOptionPane dialog = new JOptionPane();
                String msg = "Separate preparations, even of the same buffer, constitute separate experiments.\nSubsampling occurs when a particular buffer preparation is assayed multiple times.";
                dialog.showMessageDialog(null,msg,"-- Note on pHtools Conventions --",JOptionPane.INFORMATION_MESSAGE);
               
               
                TitrationTablePanel newPanel = new TitrationTablePanel(Config,iconServer);
                newPanel.restrictToRepository(restrictedRepository);
                newPanel.setSSIDListener(new ssidListener());
View Full Code Here

            String other_ssid = panel_test.getSubsampleID();
            if (new_ssid.equalsIgnoreCase(other_ssid))
            {
              JOptionPane dialog = new JOptionPane();
              String msg = "A subsample with that label already exists.";
              dialog.showMessageDialog(null,msg,"Error",JOptionPane.ERROR_MESSAGE);   
              return;
            }
          }
        }
       
View Full Code Here

    JButton btnNewButton_1 = new JButton("Déconnexion");
    btnNewButton_1.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
        ClientHTTPLogout.deconnection(controller.getSession().getUuid());
        JOptionPane jop1 = new JOptionPane();
        jop1.showMessageDialog(null, "Déconnexion réussie, à bientôt", "Information", JOptionPane.INFORMATION_MESSAGE);
        FenetreConnexion fenetreConnexion = new FenetreConnexion(); //on ouvre une nouvelle fenêtre de connection
        fenetreConnexion.setVisible(true);
        setVisible(false); // on désactive l'affichage de la fenêtre d'acceuil et on libère ses ressources.
        dispose();
      }
View Full Code Here

    JButton btnDconnexion = new JButton("Déconnexion");
    btnDconnexion.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent arg0) {
        ClientHTTPLogout.deconnection(controller.getSession().getUuid());
        JOptionPane jop1 = new JOptionPane();
        jop1.showMessageDialog(null, "Déconnexion réussie, à bientôt", "Information", JOptionPane.INFORMATION_MESSAGE);
        FenetreConnexion fenetreConnexion = new FenetreConnexion(); //on ouvre une nouvelle fenêtre de connection
        fenetreConnexion.setVisible(true);
        setVisible(false); // on désactive l'affichage de la fenêtre d'acceuil et on libère ses ressources.
        dispose();
      }
View Full Code Here

      public void mouseClicked(MouseEvent arg0) { //Appui sur le bouton connexion
        String pass = new String(motdepasse.getPassword());
        String session = ClientHTTPAuth.connection(email.getText(), pass);
        if(session != null ){
          JOptionPane jop1 = new JOptionPane();
          jop1.showMessageDialog(null, "Connection réussie", "Information", JOptionPane.INFORMATION_MESSAGE);
         
          AccueilController AController = new AccueilController(session);
          FenetreAccueil fenetreAccueil = new FenetreAccueil(AController);
         
          fenetreAccueil.setVisible(true);
View Full Code Here

          dispose();
         
        }
        else {
          JOptionPane jop2 = new JOptionPane();
          jop2.showMessageDialog(null, "Echec de la connection", "Information", JOptionPane.ERROR_MESSAGE);
        }
      }
     
    });
   
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.