Java Reference
In-Depth Information
EventQueue.invokeAndWait(new Runnable() {
public void run() {
rootContainer.remove(WeatherXlet.this);
}
});
} catch (Exception e) {
System.out.println("Ouch - exception in invokeAndWait()");
e.printStackTrace();
exit();
}
}
public void destroyXlet(boolean b) throws XletStateChangeException {
System.out.println("HelloXet.destroylet() - goodbye");
}
public void exit(){
rootContainer.setVisible( false );
context.notifyDestroyed();
}
}
Listing 3-6 shows the SettingPanel class.
Listing 3-6. The SettingPanel Class
/*
* SettingPanel.java
*
* Created on November 24, 2007, 7:55 AM
*/
package com.apress.rischpater.weatherxlet;
/**
*
* @author Ray Rischpater
*/
public class SettingPanel extends javax.swing.JPanel {
/** Creates new form SettingPanel */
public SettingPanel() {
initComponents();
}
 
Search WWH ::




Custom Search