Duplicate :
|
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