1 31 package org.objectweb.proactive.ic2d.gui.process; 32 33 public class ProcessControlFrame extends javax.swing.JFrame { 34 35 private static final int DEFAULT_WIDTH = 800; 36 private static final int DEFAULT_HEIGHT = 600; 37 38 42 public ProcessControlFrame() { 43 super("Remote Execution Control"); 44 this.setSize(new java.awt.Dimension (DEFAULT_WIDTH, DEFAULT_HEIGHT)); 45 46 java.awt.Container c = getContentPane(); 48 c.setLayout(new java.awt.BorderLayout ()); 49 c.add(new ProcessControlPanel(), java.awt.BorderLayout.CENTER); 50 } 51 52 53 57 public static void main(String [] args) { 58 ProcessControlFrame frame = new ProcessControlFrame(); 59 frame.addWindowListener(new java.awt.event.WindowAdapter () { 61 public void windowClosing(java.awt.event.WindowEvent e) { 62 System.exit(0); 63 } 64 }); 65 frame.setVisible(true); 66 } 67 68 72 73 74 } 75 | Popular Tags |