1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.URL;
import java.net.*;
import java.io.*;
import com.easysw.cups.*;
public class GLP implements ActionListener
{
private JTabbedPane mainPanel = null;
// Constructor
public GLP()
{
GLPvars.init();
GLPvars.mainGLPPanel = new JTabbedPane();
GLPvars.tabs = new GLPtabs();
GLPvars.mainGLPPanel = GLPvars.tabs.getPanel();
}
// Implementation of ActionListener interface.
public void actionPerformed(ActionEvent event)
{
// if ("comboBoxChanged".equals(event.getActionCommand()))
// {
// update the icon to display the new phase
// phaseIconLabel.setIcon(images[phaseChoices.getSelectedIndex()]);
// }
}
// main method
public static void main(String[] args)
{
// create a new instance of CupsApplet
GLP app = new GLP();
// Create a frame and container for the panels.
JFrame glpFrame = new JFrame("Java GLP");
// Set the look and feel.
try {
UIManager.setLookAndFeel(
UIManager.getCrossPlatformLookAndFeelClassName());
} catch(Exception e) {}
glpFrame.setContentPane(GLPvars.mainGLPPanel);
// Exit when the window is closed.
glpFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
glpFrame.setSize(600,400);
// Show the converter.
// glpFrame.pack();
glpFrame.setVisible(true);
}
}
|