List of usage examples for javax.swing JProgressBar setOrientation
@BeanProperty(preferred = true, visualUpdate = true, description = "Set the progress bar's orientation.") public void setOrientation(int newOrientation)
newOrientation
, which must be SwingConstants.VERTICAL or SwingConstants.HORIZONTAL . From source file:Main.java
public static void main(String[] argv) throws Exception { int minimum = 0; int maximum = 100; JProgressBar progress = new JProgressBar(minimum, maximum); progress.setOrientation(SwingConstants.HORIZONTAL); int newValue = 33; progress.setValue(newValue);/*from w w w.j av a 2 s . com*/ }
From source file:Main.java
public static void main(String[] argv) throws Exception { int minimum = 0; int maximum = 100; JProgressBar progress = new JProgressBar(minimum, maximum); progress.setOrientation(SwingConstants.HORIZONTAL); int newValue = 33; progress.setValue(newValue);/* w w w .j ava 2s . co m*/ progress.setString("value"); System.out.println(progress.getString()); }
From source file:Main.java
public static void main(String[] argv) throws Exception { int minimum = 0; int maximum = 100; JProgressBar progress = new JProgressBar(minimum, maximum); progress.setOrientation(SwingConstants.HORIZONTAL); int newValue = 33; progress.setValue(newValue);/*from w ww .j av a 2 s . c o m*/ System.out.println(progress.isStringPainted()); }