Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4480348

Unable to select first item in editable JComboBox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta2
    • x86
    • windows_2000



      Name: ddT132432 Date: 07/16/2001


      C:\>java -version
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      Can't select first item in editable JComboBox.

      import javax.swing.*;
      import java.awt.event.*;

      public class ComboTest extends JDialog
      {
      public static void main( String[] args )
      {
      JComboBox combo = new JComboBox();
      combo.setEditable( true );
      combo.addItem( "Can't Select!" );

      JFrame frame = new JFrame();
      frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
      frame.getContentPane().add( combo );
      frame.pack();
      frame.show();
      }
      }

      Synopsys: Unable to select the first element in the JComboBox unless I add
      more than 1 element to the JComboBox AND I also have to select another
      element before I am able to select the first element.
      (Review ID: 128139)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            ddressersunw Daniel Dresser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: