File tree 2 files changed +5
-11
lines changed 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class Sorting extends Main {
21
21
// Progress Bar
22
22
JProgressBar jb1 ;
23
23
24
- JSlider slider = new JSlider (0 , 200 , 0 );
24
+ JSlider slider = new JSlider (0 , 100 , 2 );
25
25
26
26
public Sorting (){
27
27
// Panel for options (bubble sort, insertion sort...)
@@ -43,9 +43,9 @@ public Sorting(){
43
43
jbtStart .setBackground (Color .GRAY );
44
44
45
45
// Slider
46
- slider .setPreferredSize (new Dimension (150 , 30 ));
47
- slider .setMajorTickSpacing (50 );
48
- slider .setPaintTicks (false );
46
+ // slider.setPreferredSize(new Dimension(150, 30));
47
+ // slider.setMajorTickSpacing(50);
48
+ // slider.setPaintTicks(false);
49
49
50
50
// Adding elements to pPanel1
51
51
pPanel1 .add (jbtRandomize );
@@ -112,12 +112,6 @@ else if (e.getSource() == jbtSelection) {
112
112
else if (e .getSource () == jbtStart ) {
113
113
System .out .println ("jbtStart button clicked" );
114
114
}
115
- // else if(e.getSource() ==){
116
-
117
- // }else{
118
- // S
119
- // }
120
- // setVisible(false); // will close the previous window
121
115
}
122
116
} // ListenerClass
123
117
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public Void doInBackground() throws InterruptedException {
182
182
randow_index = new Random ().nextInt (getSIZE ());
183
183
swap (j , randow_index );
184
184
185
- Thread .sleep (10 );
185
+ Thread .sleep (20 );
186
186
repaint ();
187
187
}
188
188
return null ;
You can’t perform that action at this time.
0 commit comments