Package de.sciss.gui

Examples of de.sciss.gui.NumberField


      double      d1;
      Class      c;

      final List        collTypes  = Main.getReceiverTypes();
      final JPanel      msgPane    = new JPanel( new SpringLayout() );
      final NumberField    ggNum    = new NumberField( NumberSpace.createIntSpace( 1, 0x10000 ));
      final JComboBox      ggType    = new JComboBox();

      for( int i = 0; i < collTypes.size(); i++ ) {
        ggType.addItem( collTypes.get( i ));
      }
     
      ggNum.setNumber( num );
      if( type != null ) ggType.setSelectedItem( type );

      msgPane.add( ggNum );
      msgPane.add( ggType );
      GUIUtil.makeCompactSpringGrid( msgPane, 1, 2, 4, 2, 4, 2 )// #row #col initx inity padx pady
//      HelpGlassPane.setHelp( msgPane, getValue( NAME ).toString() );  // EEE
   
      result = JOptionPane.showOptionDialog( null, msgPane,
        AbstractApplication.getApplication().getResourceString( "inputDlgNewReceivers" ),
        JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,
        null, queryOptions, queryOptions[ 1 ]);
       
      if( result != 1 ) return;

      num    = ggNum.getNumber();
      type  = (StringItem) ggType.getSelectedItem();
      numi  = num.intValue();
     
      try {
        doc.bird.waitExclusive( Session.DOOR_RCV | Session.DOOR_GRP );
View Full Code Here


    }

    private void prepareNumberField()
    {
      if( ggNumberField == null ) {
        ggNumberField = new NumberField( NumberSpace.genericDoubleSpace );
        ggNumberField.addListener( this );
//        GUIUtil.setDeepFont( ggNumberField, GraphicsUtil.smallGUIFont );
        AbstractWindowHandler.setDeepFont( ggNumberField );
      }
    }
View Full Code Here

TOP

Related Classes of de.sciss.gui.NumberField

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.