Files
swing-examples/Writerside2/topics/Progress-Bar.md
2024-06-12 13:10:10 +09:00

40 lines
1.1 KiB
Markdown

# 프로그래스 바
## JProgressBar
* `JProgressBar()` / `JProgressBar(int)` / `JProgressBar(int,int)` / `JProgressBar(int,int,int)` : HORIZONTAL | VERTICAL, 최소값, 최대값
* `getValue()` / `setValue(int)`
* `double getPercentComplete()`
* `getMinimum()` / `setMinimum(int)`
* `getMaximum()` / `setMaximum(int)`
* `getModel()` / `setModel(BoundedRangeModel)`
* `getIndeterminated(boolean)`
* `getOrientation()` / `setOrientation(int)` : HORIZONTAL | VERTICAL
* `isBorderPainted()` / `setBorderPainted(boolean)`
* `isStringPainted()` / `setStringPainted(boolean)`
* `getString()` / `setString(String)`
## ProgressMonitor
진행률을 대화상자로 표시합니다. 특이하게도, 'J'로 시작하지 않네요.
* `ProgressMonitor(Component,Object,String,int,int)` : 부모 컴포넌트, 메시지, 노트, 최소값, 최대값
* `getMinimum()` / `setMinimum(int)`
* `getMaximum()` / `setMaximum(int)`
* `setProgress(int)`
* `getNote()` / `setNote(String)`
* `getMillisToDecideToPopup()` / `setMillisToDecideToPopup(int)`
* `close()`
* `isCanceled()`
## ProgressMonitorInputStream
* `getProgressMonitor()`