Download presentation
Presentation is loading. Please wait.
Published byBrianne Riley Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.