Package de.sciss.app

Examples of de.sciss.app.AncestorAdapter


      Action          a;

      spring      = new SpringPanel( 4, 2, 4, 2 );
      ggMarkName    = new JTextField( 24 );
//      GUIUtil.setInitialDialogFocus( ggMarkName );  // removes itself automatically
      ggMarkName.addAncestorListener( new AncestorAdapter() {
        public void ancestorAdded( AncestorEvent e ) {
          ggMarkName.requestFocusInWindow();
          ggMarkName.selectAll();
//          c.removeAncestorListener( this );
        }
View Full Code Here


   *
   *  @param  c  the component to make focussed once its parent container is shown
   */
  public static void setInitialDialogFocus( final JComponent c )
  {
    c.addAncestorListener( new AncestorAdapter() {
      public void ancestorAdded( AncestorEvent e ) {
        c.requestFocusInWindow();
        c.removeAncestorListener( this );
      }
    });
View Full Code Here

      Action          a;

      spring      = new SpringPanel( 4, 2, 4, 2 );
      ggMarkName    = new JTextField( 24 );
//      GUIUtil.setInitialDialogFocus( ggMarkName );  // removes itself automatically
      ggMarkName.addAncestorListener( new AncestorAdapter() {
        public void ancestorAdded( AncestorEvent e ) {
          ggMarkName.requestFocusInWindow();
          ggMarkName.selectAll();
//          c.removeAncestorListener( this );
        }
View Full Code Here

TOP

Related Classes of de.sciss.app.AncestorAdapter

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.