// // delGUI.java // // 05-05-2002 Bikle // Simple class to prompt user for a last name which is then handed to delObj // Imports // ///////////////// import java.awt.*; import java.awt.event.*; import javax.swing.*; // //////////// class delGUI { // //////////// // Declarations // ///////////////// JFrame aJFrame = new JFrame("delGUI"); JPanel aJPanel = new JPanel(); JTextField aJTextField = new JTextField(10); JButton JButtonDelete = new JButton("Delete The Record"); // Supply a button to the user // Constructors // ///////////////// public delGUI() { // Add the button to JPanel1 aJPanel.add(JButtonDelete); aJPanel.add(aJTextField); aJFrame.getContentPane().add(aJPanel); aJFrame.addWindowListener(new WindowControlDispose()); aJFrame.setSize(200,200); aJFrame.show(); } // Methods // ///////////////// // no Methods here }