Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 1.6.2
    • Component/s: JXLabel
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      978

      Description

      Using setBackground has no effect on a JXLabel

      Example :
      JXLabel label = new JXLabel("Foo");
      label.setOpaque(true);
      label.setBackground(Color.CYAN);

      Olivier

        Issue Links

          Activity

          Hide
          Karl Schaefer added a comment -

          This is probably related to 964. Jan, do you agree?

          Karl

          Show
          Karl Schaefer added a comment - This is probably related to 964. Jan, do you agree? Karl
          Hide
          rah003 added a comment -

          Yes it is.
          I was about to try to solve it the way I described in the thread related to
          swingx-964 - make setting the background color shorthand to setting MattePainter
          with the background color as a background painter and see how it holds in
          reality to validate this approach. Any problem with it?

          Show
          rah003 added a comment - Yes it is. I was about to try to solve it the way I described in the thread related to swingx-964 - make setting the background color shorthand to setting MattePainter with the background color as a background painter and see how it holds in reality to validate this approach. Any problem with it?
          Hide
          Karl Schaefer added a comment -

          This is one of the tasks that needs to be completed to fix 964.

          I have started on 964. I have added further comments there (well right after I
          submit this).

          You can feel free to tackle the JXButton specific issue, if you'd like.

          Karl

          Show
          Karl Schaefer added a comment - This is one of the tasks that needs to be completed to fix 964. I have started on 964. I have added further comments there (well right after I submit this). You can feel free to tackle the JXButton specific issue, if you'd like. Karl
          Hide
          rah003 added a comment -

          Karl, should I still be fixing this now (since you made 964 post_1.0 only)?

          Show
          rah003 added a comment - Karl, should I still be fixing this now (since you made 964 post_1.0 only)?
          Hide
          Karl Schaefer added a comment -

          No we need to make this post 1.0 as well (which I've done).

          Karl

          Show
          Karl Schaefer added a comment - No we need to make this post 1.0 as well (which I've done). Karl
          Hide
          Karl Schaefer added a comment -

          Taking it.

          Show
          Karl Schaefer added a comment - Taking it.
          Hide
          Karl Schaefer added a comment -

          Issue 978: Allow background colors to be painted on JXLabel.

          src/java/org/jdesktop/swingx/JXLabel.java
          src/test/org/jdesktop/swingx/JXLabelVisualCheck.java

          Committed revision 3718.

          Show
          Karl Schaefer added a comment - Issue 978: Allow background colors to be painted on JXLabel. src/java/org/jdesktop/swingx/JXLabel.java src/test/org/jdesktop/swingx/JXLabelVisualCheck.java Committed revision 3718.

            People

            • Assignee:
              Karl Schaefer
              Reporter:
              odoremieux
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: