Package javax.swing

Examples of javax.swing.JDesktopPane


  {
    setTitle("InternalFrameDemo");

    setJMenuBar(createMenuBar());

    desktop = new JDesktopPane();
    setContentPane(desktop);
  }
View Full Code Here


    frame.setClosable(false);
    frame.setVisible(true);
    frame.setContentPane(content);
    frame.pack();

    final JDesktopPane desktop = new JDesktopPane();
    desktop.setDoubleBuffered(false);
    desktop.add(frame);
    return desktop;
  }
View Full Code Here

    public MDIApp() {
  super("Java Media Player");

  // Add the desktop pane
  setLayout( new BorderLayout() );
  desktop = new JDesktopPane();
  desktop.setDoubleBuffered(true);
  add("Center", desktop);
  setMenuBar(createMenuBar());
  setSize(640, 480);
  setVisible(true);
View Full Code Here

        }
       
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JFrame window = new JFrame("Swing Video Player");
                JDesktopPane panel = new JDesktopPane();
                window.add(panel);
                for (int i = files.length - 1; i >= 0; --i) {
                    File file = files[i];
                    JInternalFrame frame = new JInternalFrame(file.getName());
                    frame.setResizable(true);
                    frame.setClosable(true);
                    frame.setIconifiable(true);
                    frame.setMaximizable(true);
                   
                    frame.setLocation(i * 100, i * 100);
                    final VideoPlayer player = new VideoPlayer(file);
                    player.setPreferredSize(new Dimension(640, 480));
                    player.setControlsVisible(true);
                    frame.add(player, BorderLayout.CENTER);
                    frame.pack();
                    panel.add(frame);
                    frame.setVisible(true);
                    javax.swing.Timer timer = new javax.swing.Timer(5000 * i, new ActionListener() {
                        public void actionPerformed(ActionEvent evt) {
                            player.getMediaPlayer().play();
                        }
View Full Code Here

        }
       
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JFrame window = new JFrame("Swing Video Player");
                JDesktopPane panel = new JDesktopPane();
                window.add(panel);
                for (int i = files.length - 1; i >= 0; --i) {
                    File file = files[i];
                    JInternalFrame frame = new JInternalFrame(file.getName());
                    panel.add(frame);
                    frame.setResizable(true);
                    frame.setClosable(true);
                    frame.setIconifiable(true);
                    frame.setMaximizable(true);
                   
View Full Code Here

   *
   * @return javax.swing.JDesktopPane
   */
  private JDesktopPane getMainDesktopPane() {
    if (mainDesktopPane == null) {
      mainDesktopPane = new JDesktopPane();
      mainDesktopPane.add(getScriptInternalFrame(), null);
      mainDesktopPane.add(getOperatorsInternalFrame(), null);
      mainDesktopPane.add(getFormulaExplorerInternalFrame(), null);
      mainDesktopPane.add(getTinaInternalFrame(), null);
      mainDesktopPane.add(getEDENInternalFrame(), null);
View Full Code Here

   *          will be used as the title of the created window.
   */
  @RunsInCurrentThread
  protected TestMdiWindow(Class<?> testClass) {
    super(testClass);
    desktop = new JDesktopPane();
    internalFrame = createInternalFrame();
    desktop.add(internalFrame);
    setContentPane(desktop);
    setPreferredSize(new Dimension(500, 300));
  }
View Full Code Here

    }

    private MyWindow() {
      super(JInternalFrameDriver_TestCase.class);
      MyInternalFrame.resetIndex();
      desktopPane = new JDesktopPane();
      internalFrame = new MyInternalFrame();
      addInternalFrames();
      setContentPane(desktopPane);
      setPreferredSize(new Dimension(400, 300));
    }
View Full Code Here

      });
    }

    private MyWindow() {
      super(Bug108_findShowingContainerOnly_Test.class);
      JDesktopPane desktop = new JDesktopPane();
      setContentPane(desktop);
      desktop.add(invisibleFrame);
      desktop.add(visibleFrame);
    }
View Full Code Here

    window.destroy();
  }

  @Test
  public void should_return_null_if_JDesktopIcon_in_JInternalFrame_is_null() {
    JDesktopPane desktopPane = setNullIconAndReturnDesktopPane(internalFrame);
    assertThat(desktopPane).isNull();
  }
View Full Code Here

TOP

Related Classes of javax.swing.JDesktopPane

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.