home *** CD-ROM | disk | FTP | other *** search
- package sun.activator.panel;
-
- import com.sun.java.swing.JFrame;
- import com.sun.java.swing.UIManager;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Frame;
- import java.awt.Window;
- import java.awt.event.WindowEvent;
- import java.awt.event.WindowListener;
-
- public class ControlPanel extends JFrame implements WindowListener {
- static {
- String var0 = System.getProperty("os.name");
-
- try {
- String var1 = var0;
- if (var0.indexOf(32) != -1) {
- var1 = var0.substring(0, var0.indexOf(32));
- }
-
- String var2 = "sun.activator.panel." + var1 + "Platform";
- Class var3 = Class.forName(var2);
- if (var3 != null) {
- Object var4 = var3.newInstance();
- if (var4 instanceof PlatformDependentInterface) {
- PlatformDependentInterface var5 = (PlatformDependentInterface)var4;
- var5.init();
- }
- }
- } catch (Throwable var6) {
- }
-
- }
-
- public ControlPanel() {
- super("Project Java Activator Properties");
- ActivatorApp var1 = new ActivatorApp();
- ActivatorPanel var2 = new ActivatorPanel(var1, new ConfigurationInfo());
- ((JFrame)this).getContentPane().add(var2);
- ((Component)this).setSize(400, 300);
- ((Window)this).addWindowListener(this);
- ((Frame)this).setResizable(false);
- ((Container)this).validate();
- ((Window)this).show();
- }
-
- public static void main(String[] var0) {
- try {
- UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel");
- } catch (Throwable var2) {
- }
-
- new ControlPanel();
- }
-
- public void windowActivated(WindowEvent var1) {
- }
-
- public void windowClosed(WindowEvent var1) {
- }
-
- public void windowClosing(WindowEvent var1) {
- ((Frame)this).dispose();
- System.exit(0);
- }
-
- public void windowDeactivated(WindowEvent var1) {
- }
-
- public void windowDeiconified(WindowEvent var1) {
- }
-
- public void windowIconified(WindowEvent var1) {
- }
-
- public void windowOpened(WindowEvent var1) {
- }
- }
-