Presentation is loading. Please wait.

Presentation is loading. Please wait.

Timer in Java javax.swing.Timer – (getDelay, setDelay, setRepeats, isRepeats, start, stop, isRunning; ActionListner: actionPerformed) JProgressBar – (getMinimum,

Similar presentations


Presentation on theme: "Timer in Java javax.swing.Timer – (getDelay, setDelay, setRepeats, isRepeats, start, stop, isRunning; ActionListner: actionPerformed) JProgressBar – (getMinimum,"— Presentation transcript:

1 Timer in Java javax.swing.Timer – (getDelay, setDelay, setRepeats, isRepeats, start, stop, isRunning; ActionListner: actionPerformed) JProgressBar – (getMinimum, setMinimum, getMaximum, setMaximum, getValue, setValue, getOrientation, setOrientation)

2 Java Applet HTML/XHTML Web browsers with Java plug-in/Applet container –Load the class –Create an object –Call init, start, paint Applet Life-Cycle methods: init, start, stop, and destroy.

3 Applet vs. Application JApplet vs. JFrame/JPanel An applet can always be converted to an application An application can be converted to an applet if no applet security rules are violated.

4 Simple HTML Example One Minute Timer <applet code = "TestTimer.class" width = 270 height = 300>

5 An Example


Download ppt "Timer in Java javax.swing.Timer – (getDelay, setDelay, setRepeats, isRepeats, start, stop, isRunning; ActionListner: actionPerformed) JProgressBar – (getMinimum,"

Similar presentations


Ads by Google