Java Reference
In-Depth Information
L ISTING 6.6
6
OrderStatusApplet.java
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import com.sun.java.swing.*;
import java.net.*;
import java.io.*;
//import com.sun.java.swing.UIManager;
public class OrderStatusApplet extends JApplet {
boolean isStandalone = false;
JPanel jStatusPanel = new JPanel();
JPanel jActionPanel = new JPanel();
GridLayout gridLayout1 = new GridLayout(1, 2);
JButton jGetStatusButton = new JButton();
JTextField jOrderTextField = new JTextField();
JLabel jLabel1 = new JLabel();
JTextArea jStatusResultTextArea = new JTextArea();
//Get a parameter value
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
// Default Construct
public OrderStatusApplet() {
}
//Initialize the applet
public void init() {
try {
jbInit();
}
catch (Exception e) {
e.printStackTrace();
}
}
 
Search WWH ::




Custom Search