2013-02-15 35 views

回答

2

也許,但我不會一直這樣下去,我會用JProgressBar創建一個酒吧,因爲它甚至支持在畫一個字符串。有關更多詳細信息,請參閱this question

簡而言之:

// Do this when initializing: 
yourProgressBar.setStringPainted(true); 

// When you want to update it: 
yourProgressBar.setValue(theCurrentValueAsInt); 
yourProgressbar.setString(theCurrentValueAsString); // That can be any string. 
+0

+1進度是要走的路 – 2013-02-15 15:57:02