Examples of showMessageDialog()


Examples of javax.swing.JOptionPane.showMessageDialog()

  public void showError(String msg)
  {  JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(500,200));
    dialog.showMessageDialog(this,jsp,"Error",JOptionPane.ERROR_MESSAGE);
  }
 
}
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

      String msg = this.stack2string(e);
      JOptionPane dialog = new JOptionPane();
      JTextArea area = new JTextArea(msg);
      JScrollPane jsp = new JScrollPane(area);
      jsp.setPreferredSize(new Dimension(500,200));
      dialog.showMessageDialog(findActiveFrame(),jsp,"Error",JOptionPane.ERROR_MESSAGE);
     
     
    }
   
    public void showMessage(String msg)
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

      //System.out.println("No we are showing message");
      JOptionPane dialog = new JOptionPane();
      JTextArea area = new JTextArea(msg);
      JScrollPane jsp = new JScrollPane(area);
      jsp.setPreferredSize(new Dimension(500,200));
      dialog.showMessageDialog(findActiveFrame(),jsp,"Important!",JOptionPane.ERROR_MESSAGE);
    }
   
    private Frame findActiveFrame()
    {
          Frame[] frames = JFrame.getFrames();
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

  public void showError(String msg)
  {  JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(500,200));
    dialog.showMessageDialog(this,jsp,"Error",JOptionPane.ERROR_MESSAGE);
  }
 
}
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

      if (NANSENCOUNTERED)
            {                            
                     JOptionPane dialog = new JOptionPane();                
                     String msg = new String("NaN's caused by missing or invalid values for observation "+(NANLINE+1)+" in subsample "+NANSUB+"of experiment "+NANEXP+".");
          
                     dialog.showMessageDialog(this,msg,"NaN's encounted while updating data.",JOptionPane.ERROR_MESSAGE);
            }
    }
   
    this.outSet.fireTableRowsInserted(0,row-1);
   
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

  {   
    JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(300,200));
    dialog.showMessageDialog(this,jsp,"Error",JOptionPane.ERROR_MESSAGE);
  }
 
 
 
   /**
 
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

              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);
               
                BufferCoefficientsDataPanel newPanel = new BufferCoefficientsDataPanel();
                newPanel.setSSIDListener(ssidListen);
                subsamplePane.add(newPanel);
                 
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

            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

Examples of javax.swing.JOptionPane.showMessageDialog()

  public void showError(String msg)
  {  JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(500,200));
    dialog.showMessageDialog(this,jsp,"Error",JOptionPane.ERROR_MESSAGE);
  }
 
}
View Full Code Here

Examples of javax.swing.JOptionPane.showMessageDialog()

  public void showMessage(String msg)
  {  JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(500,200));
    dialog.showMessageDialog(this,jsp,"Important!",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.