// 1 - Whne editing module\r
//\r
private int intExitType = 0;\r
- \r
+\r
/**\r
Main class, used for test\r
\r
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r
this.setLocation((d.width - intWidth) / 2, (d.height - intHeight) / 2);\r
}\r
- \r
+\r
/**\r
- Start the window full of the screen\r
- \r
- **/\r
+ Start the window full of the screen\r
+ \r
+ **/\r
protected void maxWindow() {\r
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r
this.setLocation(0, 0);\r
this.dispose();\r
}\r
}\r
- \r
+\r
public int showSaveDialog() {\r
- return JOptionPane.showConfirmDialog(null, "Save all changed files?", "Save", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r
+ return JOptionPane.showConfirmDialog(null, "Save all changed files?", "Save", JOptionPane.YES_NO_CANCEL_OPTION,\r
+ JOptionPane.WARNING_MESSAGE);\r
}\r
- \r
+\r
/**\r
- Check the input data is empty or not\r
- \r
- @param strValue The input data which need be checked\r
- \r
- @retval true - The input data is empty\r
- @retval fals - The input data is not empty\r
- \r
- **/\r
- public boolean isEmpty(String strValue) {\r
- return Tools.isEmpty(strValue);\r
- }\r
- \r
- /**\r
- Display the dialog\r
- \r
- **/\r
- public void showDialog() {\r
- this.setVisible(true);\r
- }\r
-\r
-public void componentResized(ComponentEvent arg0) {\r
- // TODO Auto-generated method stub\r
- \r
-}\r
+ Check the input data is empty or not\r
+ \r
+ @param strValue The input data which need be checked\r
+ \r
+ @retval true - The input data is empty\r
+ @retval fals - The input data is not empty\r
+ \r
+ **/\r
+ public boolean isEmpty(String strValue) {\r
+ return Tools.isEmpty(strValue);\r
+ }\r
\r
-public void componentMoved(ComponentEvent arg0) {\r
- // TODO Auto-generated method stub\r
- \r
-}\r
+ /**\r
+ Display the dialog\r
+ \r
+ **/\r
+ public void showDialog() {\r
+ this.setVisible(true);\r
+ }\r
\r
-public void componentShown(ComponentEvent arg0) {\r
- // TODO Auto-generated method stub\r
- \r
-}\r
+ public void componentResized(ComponentEvent arg0) {\r
+ // TODO Auto-generated method stub\r
\r
-public void componentHidden(ComponentEvent arg0) {\r
- // TODO Auto-generated method stub\r
- \r
-}\r
+ }\r
+\r
+ public void componentMoved(ComponentEvent arg0) {\r
+ // TODO Auto-generated method stub\r
+\r
+ }\r
+\r
+ public void componentShown(ComponentEvent arg0) {\r
+ // TODO Auto-generated method stub\r
+\r
+ }\r
+\r
+ public void componentHidden(ComponentEvent arg0) {\r
+ // TODO Auto-generated method stub\r
+\r
+ }\r
}\r