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

JProgressBar does not repaint correctly in indeterminate mode on Bluecurve

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 5.0
    • client-libs
    • None
    • beta
    • x86
    • linux

      When JProgressBar is used in application in indeterminate mode under GTL L&F it is not painted well. It does not clear one vertical line for every tick that moves the indicator. Also when the window is resized it does not repaint upper and bottom line well.

      Tested with JDK1.5.0b54 on Linux fedora core2 with a follwing test program:

      package javaapplication2;
      import javax.swing.JComponent;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.JProgressBar;

      public class Main {
          
          /** Creates a new instance of Main */
          public Main() {
          }
          
          public static void main(String[] args) {
              System.setProperty("swing.defaultlaf", "com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
              System.out.println("set GTK L&F");
              //Create and set up the window.
              JFrame frame = new JFrame("ProgressBarDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

              JComponent newContentPane = new JPanel();
              JProgressBar pb = new JProgressBar ();
              pb.setIndeterminate(true);
              pb.setVisible(true);
              newContentPane.add(pb);
              
              newContentPane.setOpaque(true); //content panes must be opaque
              frame.setContentPane(newContentPane);

              //Display the window.
              frame.pack();
              frame.setVisible(true);
          }
          
      }

      ###@###.### 2004-06-08
      ###@###.### 2004-06-08

      The problem is visible when Bluecurve theme is used (default for RedHat and fedora users). It works well with blueprint that is shipped with JDS.
      ###@###.### 2004-06-15

            joutwatesunw Joshua Outwater (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: