Examples of JDialog


Examples of javax.swing.JDialog

    }
   
  }

  public void testPlaceDialog() {
    Dialog d = new JDialog();
    d.setSize(50, 50);
    Container c = new JWindow();
    c.setBounds(100, 200, 100, 50);
   
    Util.placeDialog(d, c);
    assertEquals(125, d.getX());
    assertEquals(200, d.getY());
   
    // Test upper left corner
    c.setBounds(0,0,100,100);
    d.setSize(200, 200);
   
    Util.placeDialog(d, c);
    assertEquals(0, d.getX());
    assertEquals(0, d.getY());
  }
View Full Code Here

Examples of javax.swing.JDialog

    s_log.info("showing progress dialog");
    GUIUtils.processOnSwingEventThread(new Runnable()
    {
      public void run()
      {
        currentDialog = new JDialog((Frame) null, title);
        currentMessage = new JLabel(msg);
        detailMessage = new JLabel("...");
        currentProgressBar = new JProgressBar(0, total - 1);
       
        JPanel panel = new JPanel(new BorderLayout());
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.