Code example for Choice

Methods: add

0
      _valueText       = new TextField("" ) ;
      _valueText.setBackground( Color.blue ) ;
      _valueText.setForeground( Color.yellow ) ;
      _messageText     = new TextField("") ;
      _messageText.setForeground(Color.red);
      _typeChoice      = new Choice() ;
      _typeChoice.add( "TimeTicks" ) ;
      _typeChoice.add( "OctetString" ) ;
      _typeChoice.add( "Integer" ) ;
      _typeChoice.add( "IpNumber" ) ;
      _typeChoice.add( "OID" ) ;
      _outputText    = new TextArea( 15 , 100 ) ;
      _outputText.setFont( new Font("Monospaced" , Font.BOLD , 12 ) ) ;
      _nextButton    = new Button( "Next" ) ;
      _getButton     = new Button( "Get" ) ;
      _clearButton    = new Button( "Clear" ) ;
      _walkButton     = new Button( "Walk" ) ;
      _stopButton     = new Button( "Stop" ) ;
      _resetButton     = new Button( "Reset OID" ) ;
      _systemButton     = new Button( "System" ) ;
Contextual code suggestions in your IDE  Get Codota for Java