Package java.awt

Examples of java.awt.Frame.pack()


            if (!batch) {
                // Display AWT window => may run with older JVM
                final Frame f = new Frame("System Configuration Error");
                f.add(new Label("Java version 1.4 or later is required to run this program."), BorderLayout.NORTH);
                f.add(new Label("Please download it from http://java.sun.com/"), BorderLayout.SOUTH);
                f.pack();
                f.setVisible(true);
                f.addWindowListener(new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {
                        synchronized (f) {
                            f.notifyAll();
View Full Code Here


  //frame.setSize(512, 512);
  frame.setLayout( new FlowLayout() );
  frame.add(vcp = new VideoCutPanel(args, true));
  frame.setBackground(vcp.getBackground());
  frame.add(vcp = new VideoCutPanel(args, true));
  frame.pack();
  frame.setVisible(true);
    }
}
View Full Code Here

        if( player != null ) {
            new StateWaiter(player).blockingRealize();
            Frame f = new Frame();
            f.add( player.getVisualComponent() );
            f.pack();
            f.setVisible(true);
            player.start();
        }
    }
View Full Code Here

            top.dispose();
          }
        });

      top.add(mp);
      top.pack();
      top.setVisible(true);

    } catch (java.io.IOException e) {
    }
  }
View Full Code Here

          top.dispose();
        }
      });

    top.add(mp);
    top.pack();
    top.setVisible(true);
  }

  /**
   *  Pops up a window with the html source of a url.
View Full Code Here

            top.dispose();
          }
        });

      top.add(mp);
      top.pack();
      top.setVisible(true);

    } catch (java.io.IOException e) {
    }
  }
View Full Code Here

    tabs.add(Messages.getString("TabbedPanel.13"), p4); //$NON-NLS-1$

    tabs.setSelectedTab(1);

    frame.add(tabs, BorderLayout.CENTER);
    frame.pack();
    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent evt) {
        System.exit(0);
      }
View Full Code Here

        ScrollingImagePanel panel = new ScrollingImagePanel(image, 120, 120);

        Frame window = new Frame("JAI RandomOpImage Test");
        window.add(panel);
        window.pack();
        window.show();
    }
}
View Full Code Here

  BSXDisplay b;

  f = new Frame("BSXDisplay Test");
  b = new BSXDisplay();
  f.add(b);
  f.pack();
  f.setResizable(false);
  f.show();

  int[][] scene = new int[3][];
  scene[0] = new int[] { 0, 0,0, 255,0, 255,255, 0,255 };
View Full Code Here

            final java.awt.Frame frame = new Frame("Openoffice.org");
            bean.setOOoCallTimeOut(10000);

            try {
                frame.add(bean, BorderLayout.CENTER);
                frame.pack();
                frame.setSize(600,400);
                frame.show();
                bean.loadFromURL("private:factory/swriter", null);
                frame.validate();
                // #1
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.