The file is attached.
Thanks...
Scott
> ...
>
[quoted text clipped - 17 lines]
> * http://www.1point1C.org/ 1.1C - Superluminal!
> * http://www.AThompson.info/andrew/ personal site
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class sltest extends JApplet
implements ActionListener
{
JLabel hdg = new JLabel("HEADING");
JLabel txt = new JLabel("Label");
JButton pb = new JButton("press");
public void init()
{
Container con = getContentPane();
con.setLayout(null);
con.add(hdg);
hdg.setBounds(10, 10, 100, 30);
con.add(txt);
txt.setBounds(20,20, 100, 30);
con.add(pb);
pb.setBounds(30, 30, 100, 30);
pb.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
Object source = e.getSource();
if (source == pb)
System.out.println("button pressed");
}
}
--
____________
http://reader.imagero.com the best java image reader.
> The file is attached.
>
[quoted text clipped - 23 lines]
> > * http://www.1point1C.org/ 1.1C - Superluminal!
> > * http://www.AThompson.info/andrew/ personal site
----------------------------------------------------------------------------
----
> import javax.swing.*;
> import java.awt.*;
[quoted text clipped - 26 lines]
> }
> }
Andrew Thompson - 04 Dec 2003 00:42 GMT
> import javax.swing.*;
<snip solution>
Good work ak.
Could I ask you though, to perhaps make more
use of the 'delete key', so you are not reposting
entire previous conversations?
That would be most excellent. :-)
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site