Examples of requestFocusInWindow()


Examples of com.alee.laf.label.WebLabel.requestFocusInWindow()

        scrollComponent.addMouseListener ( new MouseAdapter ()
        {
            @Override
            public void mousePressed ( final MouseEvent e )
            {
                scrollComponent.requestFocusInWindow ();
            }
        } );

        final WebScrollPane sp = new WebScrollPane ( scrollComponent );
        sp.setPreferredSize ( new Dimension ( 1, 100 ) );
View Full Code Here

Examples of com.alee.laf.list.WebList.requestFocusInWindow()

                    listScroll.getWidth () + listScroll.getInsets ().right + bi.right, los.y + fileButton.getHeight () + 2 );
        }

        window.setVisible ( true );

        list.requestFocusInWindow ();
    }

    private void installTip ( final File file, final JComponent component, final boolean showFullName )
    {
        final WebPanel panel = new WebPanel ( new VerticalFlowLayout ( 4, 4 ) );
View Full Code Here

Examples of com.alee.laf.tabbedpane.WebTabbedPane.requestFocusInWindow()

                    {
                        pane.transferFocus ();
                    }
                    else
                    {
                        pane.requestFocusInWindow ();
                    }
                }
            }
        } );
    }
View Full Code Here

Examples of com.eteks.sweethome3d.swing.PlanComponent.requestFocusInWindow()

    // Show home plan frame
    showWindow(frame);
    JComponentTester tester = new JComponentTester();
    tester.waitForIdle();
    // Transfer focus to plan view
    planComponent.requestFocusInWindow();
    tester.waitForIdle();
   
    // Check plan view has focus
    assertTrue("Plan component doesn't have the focus", planComponent.isFocusOwner());
   
View Full Code Here

Examples of com.eteks.sweethome3d.swing.PlanComponent.requestFocusInWindow()

    // Show home plan frame
    showWindow(frame);
    JComponentTester tester = new JComponentTester();
    tester.waitForIdle();
    // Transfer focus to plan view
    planComponent.requestFocusInWindow();
    tester.waitForIdle();
   
    // Check plan view has focus
    assertTrue("Plan component doesn't have the focus", planComponent.isFocusOwner());
    // Check default camera is the top camera
View Full Code Here

Examples of de.sciss.gui.ParamField.requestFocusInWindow()

ggCurrent.addActionListener( new ActionListener() {
  public void actionPerformed( ActionEvent ae )
  {
    final long pos = transport.isRunning() ? transport.getCurrentFrame() : doc.timeline.getPosition();
    ggPosition.setValue( new Param( pos, ParamSpace.TIME | ParamSpace.SMPS ))// XXX sync
    ggPosition.requestFocusInWindow();
  }
});
//msgPane.add( b );
msgPane.add( ggCurrent );
      msgPane.add( ggPosition );
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4.OurSyntaxWidget.requestFocusInWindow()

            log.logRed("Search wrapped.");
        } else {
            log.clearError();
        }
        if (lastFindForward) t.moveCaret(i, i+lastFind.length()); else t.moveCaret(i+lastFind.length(), i);
        t.requestFocusInWindow();
        return null;
    }

    /** This method performs Edit->Goto. */
    private Runner doGoto() {
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4.OurTree.requestFocusInWindow()

         @Override public Object do_root() { return Browsable.this; }
      };
      tree.setBorder(new EmptyBorder(3,3,3,3));
      final JScrollPane scr = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
      scr.addFocusListener(new FocusListener() {
         public void focusGained(FocusEvent e) { tree.requestFocusInWindow(); }
         public void focusLost(FocusEvent e) { }
      });
      final JFrame x = new JFrame("Parse Tree");
      x.setLayout(new BorderLayout());
      x.add(scr, BorderLayout.CENTER);
View Full Code Here

Examples of java.awt.Canvas.requestFocusInWindow()

     */
    public static void ensureKeyFocusInMainWindow() {
        SwingUtilities.invokeLater(new Runnable () {
            public void run () {               
                Canvas canvas = JmeClientMain.getFrame().getCanvas();
                if (!canvas.requestFocusInWindow()) {
                    logger.info("Focus request for main canvas rejected.");
                }
            }
        });
    }
View Full Code Here

Examples of java.awt.Canvas.requestFocusInWindow()

            inputManager.addKeyMouseFocus(inputManager.getGlobalFocusEntity());

            // Make sure the main canvas gets keyboard focus
            updateKeyFocus(false);
            Canvas canvas = JmeClientMain.getFrame().getCanvas();
            if (!canvas.requestFocusInWindow()) {
                logger.info("Focus request for main canvas rejected.");
            }
        }
    }
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.