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

Component needs static void setComponentOrientation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • x86
    • windows_xp

      For various reasons the default component orientation for components is UNKNOWN. applyComponentOrientation was added to make it easy to change the component orientation for a containment hierarchy. This works, but is extremely inconvenient for the following reasons:

      . Many Swing components have components are are not part of the containment hierarchy. For example, cell renderers aren't normally in the containment hierarchy; JComboBox's popup isn't part of the containment hierarchy.
      . It's very common to create components when needed. For example, dynamically adding to a tabbedpane. Every time components are added you need to invoke applyComponentOrientation.

      There should be a static method on Component that sets the default ComponentOrientation for all Components (app context specific). This way, a developer can set it once and have all subsequently created components honor it.

            ant Anton Tarasov (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: