progressbar = new JProgressBar();
progressbar.setValue(0);
progressbar.setBorderPainted(false);
progressbar.setBackground(Color.white);
progressbar.setBounds(4, 4, 60+this.duration, 10);
这样写,进度条的长度不会根据duration的值变化,为什么?应该怎么改?
progressbar.setValue(0);
progressbar.setBorderPainted(false);
progressbar.setBackground(Color.white);
progressbar.setBounds(4, 4, 60+this.duration, 10);
这样写,进度条的长度不会根据duration的值变化,为什么?应该怎么改?









