Package javax.swing

Examples of javax.swing.JFrame.pack()


    if ((new Boolean(options.getProperty("Applet.detach.fullscreen"))
            .booleanValue()))
      frame.setSize(frame.getToolkit().getScreenSize());
    else
      frame.pack();

    frame.setVisible(true);

    if(debug > 0)
      System.err.println("host: '"+host+"', "+host.length());
View Full Code Here


          jf.dispose();
        }
      });
      jf.setLayout(new BorderLayout());
      jf.add(tabbedPane, BorderLayout.CENTER);
      jf.pack();
      jf.setSize(550, 400);
      jf.setVisible(true);
    }       
  }
 
View Full Code Here

    for(int i = 0 ; i < attr.length; i++) {
      if(attr[i] instanceof ServiceUIFactoryEntry) {
        try {
          ServiceUIFactory factory = ((ServiceUIFactoryEntry)attr[i]).factory;
          JFrame mon = (JFrame)factory.getServiceUI(si.service);
          mon.pack();
          mon.setVisible(true);
          //System.out.println("JAM UI LAUNCHER service ID: "
          //                   + si.serviceID);
          removeLookupCache();
        } catch(UINotAvailableException uinae) {
View Full Code Here

          for(int i = 0 ; i < attr.length; i++) {
            if(attr[i] instanceof ServiceUIFactoryEntry) {
              ServiceUIFactory factory = ((ServiceUIFactoryEntry)
                                          attr[i]).factory;
              JFrame mon = (JFrame)factory.getServiceUI(sm.items[h].service);
              mon.pack();
              mon.setVisible(true);
            }
          }
        }
      }
View Full Code Here

    invokeLater(new Runnable() {
      @Override
      public void run() {
        JFrame frame = new JFrame("Java Application");
        frame.setPreferredSize(new Dimension(200, 200));
        frame.pack();
        frame.setVisible(true);
      }
    });
  }
View Full Code Here

    public JFrame createAndShow() {
      return execute(new GuiQuery<JFrame>() {
        @Override
        protected JFrame executeInEDT() {
          JFrame frame = create();
          frame.pack();
          frame.setVisible(true);
          return frame;
        }
      });
    }
View Full Code Here

  {
    if (!c.isValid())
    {
      JFrame frame = new JFrame();
      frame.getContentPane().add(c);
      frame.pack();
    }
  }
  @Override
  public String getApprovalFilename(String base)
  {
View Full Code Here

   
    JFrame f = new JFrame("Region Visualizer");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setJMenuBar(createJMenuBar());
    f.add(this);
    f.pack();
    f.setVisible(true);
  }
 
  private Region createRegion() {
    _regionShape = new Dimension(25,25);
View Full Code Here

                  frame1.setLocationRelativeTo(Demo_Applet.this);

                  final JScrollPane scroll = new JScrollPane(ta_prefixes);

                  frame1.add(scroll);
                  frame1.pack();
                  frame1.setVisible(true);
                }
              } catch (final Throwable t) {
                this.dealWithThrowable(t, mode, evaluation instanceof SPARQLEvaluation);
              }
View Full Code Here

    dfa.NFA2DFA(TestNFA.getNFS());
    //Compiler 292 LRLA(1)
   
    DFAdrawer t = new DFAdrawer(dfa);
    f.getContentPane().add(t);
    f.pack();
    f.setVisible(true);
  }

}
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.