]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/java/example/GLP.java
3 import java
.awt
.event
.*;
8 import com
.easysw
.cups
.*;
10 public class GLP
implements ActionListener
12 private JTabbedPane mainPanel
= null;
19 GLPvars
.mainGLPPanel
= new JTabbedPane();
20 GLPvars
.tabs
= new GLPtabs();
21 GLPvars
.mainGLPPanel
= GLPvars
.tabs
.getPanel();
24 // Implementation of ActionListener interface.
25 public void actionPerformed(ActionEvent event
)
27 // if ("comboBoxChanged".equals(event.getActionCommand()))
29 // update the icon to display the new phase
30 // phaseIconLabel.setIcon(images[phaseChoices.getSelectedIndex()]);
35 public static void main(String
[] args
)
37 // create a new instance of CupsApplet
40 // Create a frame and container for the panels.
41 JFrame glpFrame
= new JFrame("Java GLP");
43 // Set the look and feel.
45 UIManager
.setLookAndFeel(
46 UIManager
.getCrossPlatformLookAndFeelClassName());
47 } catch(Exception e
) {}
49 glpFrame
.setContentPane(GLPvars
.mainGLPPanel
);
51 // Exit when the window is closed.
52 glpFrame
.setDefaultCloseOperation(JFrame
.EXIT_ON_CLOSE
);
53 glpFrame
.setSize(600,400);
55 // Show the converter.
57 glpFrame
.setVisible(true);