Package javax.swing

Examples of javax.swing.JFrame


                playerpanel.addVisualComponent();
                redraw();

    TimeDisplayControl tdc = new TimeDisplayControl(player);
    Component c = tdc.getControlComponent();
    JFrame f = new JFrame("Time Display Control");
    f.getContentPane().add(c);
    f.pack();
    f.setVisible(true);

            }
        };
        SwingUtilities.invokeLater(r);
View Full Code Here


      new StateWaiter(players[i]).blockingPrefetch();
        }

        //  Show each Player's Visual Component
        for(int i = 0; i < players.length; i++) {
            frame = new JFrame();
            frame.getContentPane().setLayout( new BorderLayout() );

            Component vis =
                players[i].getVisualComponent();
View Full Code Here

        throws IOException, NoPlayerException
    {
        playerpanel =
            new PlayerPanel(locator);

        frame = new JFrame( locator.toString() );

        //  Allow window to close
        frame.addWindowListener(
            new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
View Full Code Here

    }

    public synchronized void updateCacheMonitor(CachingControl cache) {
        if( cacheMonitor == null ) {
            // Set up Caching cacheMonitor
            cacheMonitor = new JFrame("Caching Controls");
            JPanel mainPanel = new JPanel();
            mainPanel.setLayout( new BorderLayout(10,10) );

            progressBar = cache.getProgressBarComponent();
            progressControl = cache.getControlComponent();
View Full Code Here

                slave.addControllerListener(this);

                // Display the slave's visual component
                Component vis = slave.getVisualComponent();
                if( vis != null ) {
                    JFrame frame = new JFrame("Slave " + i);
                    frame.getContentPane().add(vis);
                    frame.pack();
                    frame.setVisible(true);
                }

                // Add the slave to the list
                slaves.addElement(slave);
            }
View Full Code Here

    public Dimension getPreferredSize() {
  return preferredSize;
    }

    public static void main(String [] args) {
  JFrame f = new JFrame("MiniME - Mini Media Editor");
  f.getContentPane().add(new MiniME(args));
  f.setSize(800, 420);
  f.addWindowListener( new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
    System.exit(0);
      }
  } );
  f.setVisible(true);
    }
View Full Code Here

  * at only first argument to determine how many tracks
  * mixer will have.
  */
    public static void main(String args[]) {
  int numberOfTracks = 4;
  JFrame f = new JFrame();

  try {
      UIManager.setLookAndFeel(
    UIManager.getCrossPlatformLookAndFeelClassName());
  } catch (Exception e) {
      e.printStackTrace();
        }

  // This registers the customized L&F for the slider
  // which represents a Player track.
  UIManager.put("TrackSliderUI", "ejmf.toolkit.multiplayer.TrackSliderUI");

  if (args.length == 1
      numberOfTracks = Integer.parseInt(args[0]);

  SimpleMixer mixer = new SimpleMixer(numberOfTracks);
  mixer.addContainerListener(
    new SimpleMixerListener(f));
  f.setJMenuBar(mixer.getMenuBar());
  f.getContentPane().add(mixer);
  f.setResizable(false);
  f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
       }
  });
  f.pack();
  f.setTitle("EJMF Mixer");
  f.setVisible(true);
    }
View Full Code Here

    public static void main(String args[]) {
  Player  player;
  // This is little trick simply to keep
  // the application running indefinitely.
  JFrame f = new JFrame();

        if( args.length != 1 ) {
            System.err.println("Usage:");
            System.err.println("java ejmf.examples.basics.JMFAudioOnly <Media>");
            return;
View Full Code Here

      
       String title =
           s_stringMgr.getString("SQLPanelAPI.unsavedchangestitle",
                                 ": "+_panel.getSession().getAlias().getName());
      
       JFrame f = getSession().getApplication().getMainFrame();
       int option =
           JOptionPane.showConfirmDialog(f,
                                         msg,
                                         title,
                                         JOptionPane.YES_NO_OPTION);
View Full Code Here

   */
  public static void main(String[] args) throws Exception
  {
    ApplicationArguments.initialize(new String[] {});
    String[] tables = new String[] { "table_a", "table_b", "table_c", "table_d", "table_e", };
    JFrame parent = new JFrame();
    GUIUtils.centerWithinScreen(parent);
    parent.setSize(new Dimension(200, 200));
    parent.setVisible(true);
    ProgressCallBack pcb = progressCallBackFactory.create(parent, "test", 5);

    pcb.setVisible(true);
    for (int i = 0; i < 5; i++)
    {
View Full Code Here

TOP

Related Classes of javax.swing.JFrame

Copyright © 2018 www.massapicom. 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.