fork download
  1. import javax.swing.JProgressBar;
  2. public class Main {
  3. public static void main(String[]
  4. argv) throws Exception {
  5. int minimum = 0;
  6. int maximum = 100;
  7. JProgressBar progress = new
  8. JProgressBar(minimum, maximum);
  9. // Overlay a string showing the
  10. percentage done
  11. progress.setStringPainted(true);
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: ';' expected
percentage done
               ^
1 error
stdout
Standard output is empty