Component needs static void setComponentOrientation

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: