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

Swing component defaults should be re-initialized with UI switches

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • Cause Known
    • generic, x86
    • generic, solaris_10

      Ideally, when a component's UI is uninstalled, it should leave no permanent effect on the component class. That way, when a new UI is installed, it only need worry about the "default" state of a component.

      In reality, there are many cases when this is not the case, and multiple attempts to address this on a per-property level, by restoring individual properties.

      A solution to this problem needs to be developed. Perhaps a new method could be added to JComponent to be called from setUI that will reset all UI state of the component.

            Unassigned Unassigned
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: