-Minor changes after testing

ktn10 [2001-04-26 05:43:37]
-Minor changes after testing
-"exit" button added to the frames.
Filename
AddJFrame.java
DBAccessApplet.java
DBAccessApplication.java
DeleteJFrame.java
oracleDB.html
diff --git a/AddJFrame.java b/AddJFrame.java
index 97498d9..c55dc6f 100644
--- a/AddJFrame.java
+++ b/AddJFrame.java
@@ -57,13 +57,22 @@ public class AddJFrame extends javax.swing.JFrame
 	getContentPane().add(addJButton1);
 	addJButton1.setBackground(new java.awt.Color(225,223,223));
 	addJButton1.setFont(new Font("Dialog", Font.BOLD, 15));
-	addJButton1.setBounds(192,120,84,24);
+	addJButton1.setBounds(285,140,84,24);
+
+	closeJButton1.setText("Close");
+	closeJButton1.setActionCommand("Close");
+	getContentPane().add(closeJButton1);
+	closeJButton1.setBackground(new java.awt.Color(225,223,223));
+	closeJButton1.setFont(new Font("Dialog", Font.BOLD, 15));
+	closeJButton1.setBounds(54,140,84,24);
+
 	messageJLabel.setAutoscrolls(true);
 	getContentPane().add(messageJLabel);
 	messageJLabel.setForeground(java.awt.Color.black);
 	messageJLabel.setBounds(24,168,360,24);
 	SymMouse aSymMouse = new SymMouse();
 	addJButton1.addMouseListener(aSymMouse);
+	closeJButton1.addMouseListener(aSymMouse);
     }

     public AddJFrame(String sTitle, String path)
@@ -109,14 +118,14 @@ public class AddJFrame extends javax.swing.JFrame
     static String moduleInfo = null;
     static String defaultModuleInfo = null;
     static String dbLoc = null;
-
+
     javax.swing.JLabel addJLabel = new javax.swing.JLabel();
     javax.swing.JLabel addJLabel1 = new javax.swing.JLabel();
     javax.swing.JLabel addJLabel2 = new javax.swing.JLabel();
     javax.swing.JTextField addJTextField1 = new javax.swing.JTextField();
     javax.swing.JButton addJButton1 = new javax.swing.JButton();
     static javax.swing.JLabel messageJLabel = new javax.swing.JLabel();
-
+    javax.swing.JButton closeJButton1 = new javax.swing.JButton();

     class SymMouse extends java.awt.event.MouseAdapter
     {
@@ -125,9 +134,17 @@ public class AddJFrame extends javax.swing.JFrame
 	    Object object = event.getSource();
 	    if (object == addJButton1)
 		addJButton1_mouseClicked(event);
+		else if (object == closeJButton1)
+		closeJButton1_mouseClicked(event);
 	}
     }

+    void closeJButton1_mouseClicked(java.awt.event.MouseEvent event)
+    {
+        dispose();
+        setVisible(false);
+	}
+
     void addJButton1_mouseClicked(java.awt.event.MouseEvent event)
     {
 	String msg = initialize();
@@ -638,7 +655,7 @@ public class AddJFrame extends javax.swing.JFrame
 	ErrorJDialog ed = new ErrorJDialog();
 	ed.setMessage(msg);
     }
-
+

 }

diff --git a/DBAccessApplet.java b/DBAccessApplet.java
index d63ca75..b28c9ce 100644
--- a/DBAccessApplet.java
+++ b/DBAccessApplet.java
@@ -67,11 +67,10 @@ public class DBAccessApplet extends JApplet
 				addJButton_mouseClicked(event);
 			else if (object == deleteJButton)
 				deleteJButton_mouseClicked(event);
-
 		}
 	}

-	void addJButton_mouseClicked(java.awt.event.MouseEvent event)
+   	void addJButton_mouseClicked(java.awt.event.MouseEvent event)
 	{
 		addJButton_mouseClicked_Interaction1(event);
 	}
diff --git a/DBAccessApplication.java b/DBAccessApplication.java
index 5eddb78..117e34a 100644
--- a/DBAccessApplication.java
+++ b/DBAccessApplication.java
@@ -22,7 +22,7 @@ public class DBAccessApplication
 		frame.getContentPane().setLayout(null);
 		frame.getContentPane().setBackground(new java.awt.Color(204,207,201));
 		frame.getContentPane().setFont(new Font("Dialog", Font.PLAIN, 20));
-		frame.setSize(360,213);
+		frame.setSize(360,252);
 		addJButton.setText("Add");
 		addJButton.setActionCommand("Add");
 		frame.getContentPane().add(addJButton);
@@ -34,7 +34,13 @@ public class DBAccessApplication
 		frame.getContentPane().add(deleteJButton);
 		deleteJButton.setBackground(new java.awt.Color(225,223,223));
 		deleteJButton.setFont(new Font("Dialog", Font.BOLD, 15));
-		deleteJButton.setBounds(216,120,84,24);
+		deleteJButton.setBounds(216,100,84,24);
+		exitJButton.setText("Exit");
+		exitJButton.setActionCommand("Exit");
+		frame.getContentPane().add(exitJButton);
+		exitJButton.setBackground(new java.awt.Color(225,223,223));
+		exitJButton.setFont(new Font("Dialog", Font.BOLD, 15));
+		exitJButton.setBounds(216,152,84,24);
 		titleJLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
 		titleJLabel1.setText("FleXML-Oracle");
 		frame.getContentPane().add(titleJLabel1);
@@ -50,12 +56,14 @@ public class DBAccessApplication
 		SymMouse aSymMouse = new SymMouse();
 		addJButton.addMouseListener(aSymMouse);
 		deleteJButton.addMouseListener(aSymMouse);
+		exitJButton.addMouseListener(aSymMouse);
 	}
     static String rootPath = null;
 	javax.swing.JButton addJButton = new javax.swing.JButton();
 	javax.swing.JButton deleteJButton = new javax.swing.JButton();
 	javax.swing.JLabel titleJLabel1 = new javax.swing.JLabel();
 	javax.swing.JLabel titleJLabel2 = new javax.swing.JLabel();
+    javax.swing.JButton exitJButton = new javax.swing.JButton();

 	class SymMouse extends java.awt.event.MouseAdapter
 	{
@@ -66,10 +74,17 @@ public class DBAccessApplication
 				addJButton_mouseClicked(event);
 			else if (object == deleteJButton)
 				deleteJButton_mouseClicked(event);
+		    else if (object == exitJButton)
+				exitJButton_mouseClicked(event);

 		}
 	}

+    void exitJButton_mouseClicked(java.awt.event.MouseEvent event)
+	{
+		System.exit(1);
+	}
+
 	void addJButton_mouseClicked(java.awt.event.MouseEvent event)
 	{
 		addJButton_mouseClicked_Interaction1(event);
diff --git a/DeleteJFrame.java b/DeleteJFrame.java
index c3eff18..c71b0c6 100644
--- a/DeleteJFrame.java
+++ b/DeleteJFrame.java
@@ -65,12 +65,20 @@ public class DeleteJFrame extends javax.swing.JFrame
 		getContentPane().add(deleteSubmitJButton);
 		deleteSubmitJButton.setBackground(new java.awt.Color(225,223,223));
 		deleteSubmitJButton.setFont(new Font("Dialog", Font.BOLD, 15));
-		deleteSubmitJButton.setBounds(144,192,84,24);
+		deleteSubmitJButton.setBounds(252,192,84,24);
 		deleteMessageLabel.setAutoscrolls(true);
+
+		closeJButton.setText("Close");
+		closeJButton.setActionCommand("Close");
+		getContentPane().add(closeJButton);
+		closeJButton.setBackground(new java.awt.Color(225,223,223));
+		closeJButton.setFont(new Font("Dialog", Font.BOLD, 15));
+		closeJButton.setBounds(56,192,84,24);
+
 		getContentPane().add(deleteMessageLabel);
 		SymMouse aSymMouse = new SymMouse();
 		deleteSubmitJButton.addMouseListener(aSymMouse);
-
+        closeJButton.addMouseListener(aSymMouse);
 	}

 	public DeleteJFrame(String sTitle, String path)
@@ -109,7 +117,7 @@ public class DeleteJFrame extends javax.swing.JFrame

 	// Used by addNotify
 	boolean frameSizeAdjusted = false;
-
+

 	javax.swing.JLabel deleteJLabel = new javax.swing.JLabel();
 	javax.swing.JLabel deleteJLabel1 = new javax.swing.JLabel();
@@ -119,7 +127,7 @@ public class DeleteJFrame extends javax.swing.JFrame
 	javax.swing.JTextField deleteJTextField2 = new javax.swing.JTextField();
 	javax.swing.JButton deleteSubmitJButton = new javax.swing.JButton();
 	javax.swing.JLabel deleteMessageLabel = new javax.swing.JLabel();
-
+    javax.swing.JButton closeJButton = new javax.swing.JButton();

     void shutdownDB()
    {
@@ -177,7 +185,7 @@ public class DeleteJFrame extends javax.swing.JFrame
 	return null;
     }

-
+
 	class SymMouse extends java.awt.event.MouseAdapter
 	{
 		public void mouseClicked(java.awt.event.MouseEvent event)
@@ -185,9 +193,17 @@ public class DeleteJFrame extends javax.swing.JFrame
 			Object object = event.getSource();
 			if (object == deleteSubmitJButton)
 				deleteSubmitJButton_mouseClicked(event);
+		    if (object == closeJButton)
+				closeJButton_mouseClicked(event);
 		}
 	}

+    void closeJButton_mouseClicked(java.awt.event.MouseEvent event)
+    {
+        dispose();
+        setVisible(false);
+	}
+
 	void deleteSubmitJButton_mouseClicked(java.awt.event.MouseEvent event)
 	{
 		String name = deleteJTextField1.getText();
diff --git a/oracleDB.html b/oracleDB.html
index b144875..27b2c18 100644
--- a/oracleDB.html
+++ b/oracleDB.html
@@ -3,6 +3,6 @@
 <TITLE>OracleDB HTML</TITLE>
 </HEAD>
 <BODY>
-<APPLET CODE="psl/oracle/DBAccessFrame.class" ARCHIVE="oracle.jar, xerces.jar" WIDTH=489 HEIGHT=236></APPLET>
+<APPLET CODE="psl/oracle/DBAccessApplet.class" ARCHIVE="oracle.jar, xerces.jar, hsql.jar" WIDTH=489 HEIGHT=236></APPLET>
 </BODY>
 </HTML>