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

JTextField.setEnabled(false) doesn't remove component from focus list

XMLWordPrintable

    • generic
    • generic



      Name: krT82822 Date: 04/14/99


      When you call setEnabled(false) on any component the focus
      manager should not allow you to tab to that component.

      Example:

      JTextField tf = new JTextField ("Test");
      tf.setEnabled (false);

      If tf is in a dialog with other Text Fields, then I can tab to
      all text fields includeing tf whether or not it is enabled.
      (Review ID: 56953)
      ======================================================================

      Name: vi73552 Date: 06/18/99


      In our project We programatically set some Jtextfields to be disabled
      with the purpose of avoiding entering of those values contained by them
      frequently, giving it a different color(yellow). But sometimes when we backspace (keylistener
      transfer's focus to previous component) we are allowed to enter to previous component which is disabled.
      Because we are allowed to enter disabled Jtextfield we are able to delete the values contained by these JTextfields.
      This is quite annoying to us and we had to programmatically consider the case of JTextfield getting focus when it is disabled.


      Our project is for TAB ltd which is multinational gambling company. The project is for Customers betting through phone.
      (Review ID: 84505)
      ======================================================================

            hgajewsksunw Hania Gajewska (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: