Examples of toFront()


Examples of javax.swing.JFrame.toFront()

              for (Home home : homeApplication.getHomes()) {
                JFrame applicationFrame = homeApplication.getHomeFrame(home);
                if (applicationFrame != frame
                    && applicationFrame.getState() != JFrame.ICONIFIED) {
                  applicationFrame.setFocusableWindowState(false);
                  applicationFrame.toFront();
                  applicationFrame.setFocusableWindowState(true);
                }
              }
              frame.setAlwaysOnTop(false);
            }
View Full Code Here

Examples of javax.swing.JFrame.toFront()

          for (Home home : homeApplication.getHomes()) {
            final JFrame applicationFrame = homeApplication.getHomeFrame(home);
            JCheckBoxMenuItem windowMenuItem = new JCheckBoxMenuItem(
                new AbstractAction(applicationFrame.getTitle()) {
                    public void actionPerformed(ActionEvent ev) {
                      applicationFrame.toFront();
                    }
                  });
             
            if (frame == applicationFrame) {
              windowMenuItem.setSelected(true);
View Full Code Here

Examples of javax.swing.JFrame.toFront()

   */
  private void showHomeFrame(Home home) {
    final JFrame homeFrame = getHomeFrame(home);
    homeFrame.setVisible(true);
    homeFrame.setState(JFrame.NORMAL);
    homeFrame.toFront();
  }

  /**
   * Sweet Home 3D entry point.
   * @param args may contain one .sh3d, .sh3f or .sh3p file to open or install,
View Full Code Here

Examples of javax.swing.JFrame.toFront()

      for (Home home : getHomes()) {
        if (home.isModified()) {
          String homeName = home.getName();
          if (homeName == null) {
            JFrame homeFrame = getHomeFrame(home);
            homeFrame.toFront();
            homeName = contentManager.showSaveDialog((View) homeFrame.getRootPane(), null,
                ContentManager.ContentType.SWEET_HOME_3D, null);
          }
          if (homeName != null) {
            try {
View Full Code Here

Examples of javax.swing.JFrame.toFront()

                    @Override
                    public void run() {
                        // f.dispose();
                        // f.setUndecorated(true);
                        // f.setBounds(0, 0, 1920, 1080);
                        f.toFront();
                        f.setVisible(true);
                    }
                });
            }
View Full Code Here

Examples of javax.swing.JInternalFrame.toFront()

      public void keyPressed(KeyEvent e) {
        if ((e.getKeyCode() == KeyEvent.VK_SPACE) || (e.getKeyCode() == KeyEvent.VK_ENTER)) {
          String internalFrameName = (String) itemList.getSelectedValue();
          JInternalFrame internalFrame = (JInternalFrame) internalFrameMap.get(internalFrameName);
          menuSelectionManager.clearSelectedPath();
          internalFrame.toFront();
        } else if (e.getKeyCode() == KeyEvent.VK_LEFT) {
          if (previousMenu != null) {
            menuSelectionManager.clearSelectedPath();
            previousMenu.doClick();
          }
View Full Code Here

Examples of javax.swing.JInternalFrame.toFront()

    itemList.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
        String internalFrameName = (String) itemList.getSelectedValue();
        JInternalFrame internalFrame = (JInternalFrame) internalFrameMap.get(internalFrameName);
        menuSelectionManager.clearSelectedPath();
        internalFrame.toFront();
        //internalFrame.requestFocus();
      }
    });
       
    setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
View Full Code Here

Examples of javax.swing.JInternalFrame.toFront()

    jtp.add(jif);
    jif.setVisible(true);
    clearAllSelected();
    WidgetAdapter.getWidgetAdapter(child).setSelected(true);
    getWidget().validate();
    jif.toFront();
  }

  @Override
  public Object getChildConstraints(Component child) {   
    return child.getBounds();
View Full Code Here

Examples of javax.swing.JInternalFrame.toFront()

  }

  @Override
  public void showChild(Component widget) {
    JInternalFrame jif = (JInternalFrame) widget;
    jif.toFront();
  }


  @Override
  protected Component newWidget() {
View Full Code Here

Examples of javax.swing.JInternalFrame.toFront()

        jtp.add(jif);
        drop.requestNewName();
        jif.setVisible(true);
        drop.setSelected(true);
        drop.setDirty(true);
        jif.toFront();       
      }
      adaptable.getWidget().validate();
      return true;
    } else {
      Toolkit.getDefaultToolkit().beep();
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.