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

Allow alignment of graphic in TabPane tabs

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE REQUEST :
      We need to align the graphic for the Label for tabs in TabPane to the right. TabPaneSkin does not allow us to modify/affect the ContentDisplay property of the created Label. We could almost achieve the desired outcome by forgoing the Text/Label altogether by setting our own custom Graphic (incorporating the text) and nulling out the text property, but unfortunately the TabControlButtons (added when number of tabs exceeds available space) relies on the text being set to construct its menu.

      JUSTIFICATION :
      Currently limited to left aligned graphics in Tabs.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Would like to set an arbitrary ContentDisplay property for the labels created for Tabs.
      ACTUAL -
      Currently no way (AFAICT) to achieve desired outcome without breaking behaviour of TabControlButtons (which you can't turn off)

      CUSTOMER SUBMITTED WORKAROUND :
      Currently no way (AFAICT) to achieve desired outcome without breaking behaviour of TabControlButtons (which you can't turn off)

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: