FileDocCategorySizeDatePackage
KeyboardLightTest.javaAPI DocExample2424Mon Jan 09 11:02:00 GMT 2006None

KeyboardLightTest

public class KeyboardLightTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        // create the spinner
        final SpinnerThread spinner = new SpinnerThread();

        //create a frame and button
        JFrame frame = new JFrame();
        JButton button = new JButton("Stop");
        frame.getContentPane().add(button);
        frame.pack();
        // hook up an action to stop the spinner and quit
        button.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                spinner.quit();
            }
        });

        // start'er up!
        spinner.start();
        frame.show();