Fiz uma JDialog pra que seja singleton mas to com uma dúvida, o construtor e o getInstance estão assim:
private CommonProgressBar( JFrame jFrame ){
super( jFrame , true );
this.setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
this.setSize( 300 , 90 );
this.setLocationRelativeTo( null );
}
public static CommonProgressBar getInstance( JFrame jFrame ){
if( instance == null ){
instance = new CommonProgressBar( jFrame );
}else{
}
return instance;
}