Java Reference
In-Depth Information
{
super("tempverter");
addWindowListener(new WindowAdapter()
{
@Override
public
void
windowClos-
ing(WindowEvent we)
{
System.out.println("window
closing");
dispose();
}
@Override
public
void
win-
dowClosed(WindowEvent we)
{
System.out.println("window
closed");
}
});
Panel pnlLayout = new Panel();
pnlLayout.setLayout(new GridLayout(3, 2));
pnlLayout.add(new Label("degrees"));
final TextField txtDegrees = new TextField(10);
pnlLayout.add(txtDegrees);
pnlLayout.add(new Label("result"));
final TextField txtResult = new TextField(30);
pnlLayout.add(txtResult);
ActionListener al;
al = new ActionListener()
{
@Override
public void actionPerformed(ActionEvent ae)
{
try
{
Search WWH ::




Custom Search