JDK-6605426 : Nimbus L&F: White vertical border is seen in JProgress when it is set to Right to Left orientation
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-09-17
  • Updated: 2011-02-16
  • Resolved: 2008-01-30
Related Reports
Duplicate :  
Description
I have a frame which contains a JProgress bar in vertical orientation , when i set the orientation to right to left , i can see a white border on the left side ( i have attached a screen shot ) this can be seen only in the pit build of 6u5_b04. This may be a regression of http://monaco.sfbay/detail.jsf?cr=6601399.  This is reproduced only in windows.

Source Begin
-------------
import javax.swing.JFrame;
import javax.swing.JProgressBar;

public class NimbusVerticalJProgressBarBug {
	private JFrame frame=null;
	private JProgressBar progressBar=null;

	NimbusVerticalJProgressBarBug(){
		frame = new JFrame();
		frame.setLayout(new java.awt.FlowLayout());
		frame.add(progressBar = new JProgressBar(javax.swing.SwingConstants.VERTICAL));
		//frame.add(progressBar = new JProgressBar(javax.swing.SwingConstants.HORIZONTAL));
		progressBar.setIndeterminate(true);
		progressBar.applyComponentOrientation(java.awt.ComponentOrientation.RIGHT_TO_LEFT);
		frame.pack();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	}

	public static void main(String []args){
		javax.swing.SwingUtilities.invokeLater(new Runnable(){
			public void run(){
				new NimbusVerticalJProgressBarBug();
			}
		});
	}
}
--------------
Source End