Package de.sciss.gui

Examples of de.sciss.gui.ComboBoxEditorBorder


    ggParam.addSpace( ParamSpace.spcFreqHertz );
    ggCombo = new JComboBox();
    for( int i = 0; i < RATE_ITEMS.length; i++ ) {
      ggCombo.addItem( RATE_ITEMS[ i ]);
    }
    ggParam.setBorder( new ComboBoxEditorBorder() );
    ggCombo.setEditor( ggParam );
    ggCombo.setEditable( true );
    ggParam.setPreferences( prefs, key ); // important to be _afer_ setEditor because otherwise prefs get overwritten!
//    ggCombo.setSelectedIndex( 0 ); // DEFAULT_RATE
//ggParam.setPreferredSize( new Dimension( ggParam.getPreferredSize().width, Math.max( 24, ggParam.getPreferredSize().height )));
View Full Code Here


        for( int i = 0; i < items.length; i++ ) {
          ggRateCombo.addItem( items[ i ]);
        }
//        ggRate.setBackground( Color.white );
//final javax.swing.plaf.basic.BasicComboBoxRenderer bcbr = new javax.swing.plaf.basic.BasicComboBoxRenderer();
ggRate.setBorder( new ComboBoxEditorBorder() );
//ggRate.setMaximumSize( ggRate.getPreferredSize() );
        ggRateCombo.setEditor( ggRate );
        ggRateCombo.setEditable( true );
        ggRateCombo.setSelectedIndex( DEFAULT_RATE );
        if( prefs != null ) ggRate.setPreferences( prefs, KEY_RATE );
View Full Code Here

TOP

Related Classes of de.sciss.gui.ComboBoxEditorBorder

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.