@@ -53,7 +53,7 @@ public class SDKDownloader extends JDialog implements PropertyChangeListener {
53
53
final static private int BOX_BORDER = Toolkit .zoom (13 );
54
54
final static private int BAR_BORDER = Toolkit .zoom (10 );
55
55
final static private int BAR_WIDTH = Toolkit .zoom (300 );
56
- final static private int BAR_HEIGHT = Toolkit .zoom (15 );
56
+ final static private int BAR_HEIGHT = Toolkit .zoom (30 );
57
57
final static private int GAP = Toolkit .zoom (13 );
58
58
59
59
private static final int PLATFORM_TOOLS = 2 ;
@@ -501,16 +501,17 @@ private void createLayout() {
501
501
textarea .setAlignmentX (LEFT_ALIGNMENT );
502
502
vbox .add (textarea );
503
503
504
- JPanel progressPanel = new JPanel ();
504
+ // Needed to put the progressBar inside this panel so we can set its size
505
+ JPanel progressPanel = new JPanel ();
506
+ BoxLayout boxLayout = new BoxLayout (progressPanel , BoxLayout .Y_AXIS );
507
+ progressPanel .setLayout (boxLayout );
505
508
progressBar = new JProgressBar (0 , 100 );
506
- // progressBar.setPreferredSize(new Dimension(BAR_WIDTH, BAR_HEIGHT));
507
509
progressBar .setPreferredSize (new Dimension (BAR_WIDTH , BAR_HEIGHT ));
508
510
progressBar .setValue (0 );
509
511
progressBar .setStringPainted (true );
510
512
progressBar .setIndeterminate (true );
511
513
progressBar .setBorder (new EmptyBorder (BAR_BORDER , BAR_BORDER , BAR_BORDER , BAR_BORDER ));
512
514
progressPanel .add (progressBar );
513
- // vbox.add(progressBar);
514
515
vbox .add (progressPanel );
515
516
516
517
downloadedTextArea = new JLabel ("0 / 0 MB" );
0 commit comments