Class sampleCode2.IteGUI
All Packages Class Hierarchy This Package Previous Next Index
Class sampleCode2.IteGUI
Object
|
+----Component
|
+----Container
|
+----Panel
|
+----Applet
|
+----JApplet
|
+----sampleCode2.IteGUI
- public class IteGUI
- extends JApplet
-
sampleCode2.IteGUI()
-
-
init()
-
-
main(String[])
- The main method allows you to run the applet in a JFrame.
-
newLabeledComponent(JLabel, JComponent)
-
Creates a panel with a label in the top part
and a JComponent in the bottom part
-
sort(String[])
- Sorts Strings in the array arr and returns it in a new array.
IteGUI
public IteGUI()
init
public void init()
- Overrides:
- init in class Applet
main
public static void main(String[] args)
- The main method allows you to run the applet in a JFrame.
However, unless you are running this (as an application)
on a server, you won't be able to connect to the urls,
though you will be able to see the url's in the window
provided.
For full functionality, run this class as an applet in
a browser by linking to IteGUI.html.
newLabeledComponent
public static com.sun.java.swing.JPanel newLabeledComponent(JLabel label,
JComponent component)
- Creates a panel with a label in the top part
and a JComponent in the bottom part
sort
public static java.lang.String[] sort(String[] arr)
- Sorts Strings in the array arr and returns it in a new array. The original
array remains unmodified.
Uses Insertion Sort algorithm -- efficient only for fairly small arrays
- Parameters:
- arr - String[]
All Packages Class Hierarchy This Package Previous Next Index