swingx
  1. swingx
  2. SWINGX-1513

JRendererCheckBox: setting opacity to false has no effect

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.6.4
    • Fix Version/s: 1.6.5-1
    • Component/s: Renderer
    • Labels:
      None

      Description

      setting its opacity to false has no effect, as the isOpaque is overridden by

          @Override
          public boolean isOpaque() {
              // JW: fix for #897, not sure of any side-effects
              // contentAreaFilled and opaque might be inconsistent
              return painter == null;
              // this is better, needs to be checked for side-effects
              // suggested fix to this issue
      //        if (painter != null) {
      //            return false;
      //        }
      //        return super.isOpaque();
          }
      
      

      The use-case to support is to allow client code to configure the hierarchy to completedly transparent (f.i. for showing a background image under the table)

      Further analysis reveals that uncommenting the latter leads to a partial regression of Issue 879 (in Windows and Motif, still fine for Nimbus and Metal) Added visual test in RendererIssues.

        Issue Links

          Activity

          Hide
          kleopatra added a comment -

          completely revised the painting tricksery ... hopefully not breaking anything

          Show
          kleopatra added a comment - completely revised the painting tricksery ... hopefully not breaking anything
          Hide
          kleopatra added a comment -

          committed as of revision #4229

          Show
          kleopatra added a comment - committed as of revision #4229
          Hide
          kleopatra added a comment -

          the change introduced a regression (to core Nimbus mis-behaviour), see forum:

          http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swinglabs/jxtable-v165-alternate-row-colors

          Show
          kleopatra added a comment - the change introduced a regression (to core Nimbus mis-behaviour), see forum: http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swinglabs/jxtable-v165-alternate-row-colors
          Hide
          Spinnifex added a comment -

          Ah - Problem solved !
          You pointed me to the solution -> I downloaded the actual found 1.6.4-jars and now the error pane works, the date picker too.

          Show
          Spinnifex added a comment - Ah - Problem solved ! You pointed me to the solution -> I downloaded the actual found 1.6.4-jars and now the error pane works, the date picker too.
          Hide
          kleopatra added a comment -

          as the related regression was fixed without reverting to the 1.6.4 logic (instead set opacity to true), this is still fixed.

          Show
          kleopatra added a comment - as the related regression was fixed without reverting to the 1.6.4 logic (instead set opacity to true), this is still fixed.

            People

            • Assignee:
              kleopatra
              Reporter:
              kleopatra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: