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

WinLAF: JButtons on XP have text with wrong color / missing shadow using certain 3rd party themes

XMLWordPrintable

    • b84
    • x86
    • windows_xp

      The text on JButtons when running the Windows XP Look and Feel are not drawn correctly with certain themes. These include themes which use a non-default color for the text, change the color of the text when the button is pressed, or which have drop shadowed text. The button text drawing code is not respecting any of the colors from the theme and are dropping back to the standard system colors.

      Additionally, buttons on the standard XP theme draw the buttons shifted a pixel down and to the right when the user clicks on them. This is classic behavior but not with the XP Standard theme. XP uses rollovers and color change to indicate when a button has been pressed rather than shifting the text.

      The attached images show the difference between a Swing button and a native one.

            jmarinacsunw Joshua Marinacci (Inactive)
            jmarinacsunw Joshua Marinacci (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: