import java.util.Vector;\r
\r
import javax.swing.JButton;\r
-import javax.swing.JFrame;\r
import javax.swing.JLabel;\r
import javax.swing.JOptionPane;\r
import javax.swing.JPanel;\r
///\r
private static final long serialVersionUID = -8152099582923006900L;\r
\r
- static JFrame frame;\r
//\r
//Define class members\r
//\r
jTextFieldBaseName.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isUiNameType(jTextFieldBaseName.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Package Name does not match the UiNameType datatype.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Package Name does not match the UiNameType datatype.");\r
return;\r
}\r
if (jTextFieldBaseName.getText().equals(ffc.getFpdHdrPlatformName())) {\r
jTextFieldGuid.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isGuid(jTextFieldGuid.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Guid must be in registry (8-4-4-4-12) format.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Guid must be in registry (8-4-4-4-12) format.");\r
return;\r
}\r
if (jTextFieldGuid.getText().equals(ffc.getFpdHdrGuidValue())) {\r
jTextFieldVersion.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isVersion(jTextFieldVersion.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Version does not match the Version datatype.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Version does not match the Version datatype.");\r
return;\r
}\r
if (jTextFieldVersion.getText().equals(ffc.getFpdHdrVer())) {\r
jTextAreaLicense.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaLicense.getText().length() == 0) {\r
- JOptionPane.showMessageDialog(frame, "License must be entered!");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "License must be entered!");\r
return;\r
}\r
if (jTextAreaLicense.getText().equals(ffc.getFpdHdrLicense())) {\r
jTextAreaDescription.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (jTextAreaDescription.getText().length() == 0) {\r
- JOptionPane.showMessageDialog(frame, "Description must be entered.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Description must be entered.");\r
return;\r
}\r
if (jTextAreaDescription.getText().equals(ffc.getFpdHdrDescription())) {\r
jTextFieldAbstract.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isAbstract(jTextFieldAbstract.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Abstract must be entered.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Abstract must be entered.");\r
return;\r
}\r
if (jTextFieldAbstract.getText().equals(ffc.getFpdHdrAbs())) {\r
jCopyrightTextArea.addFocusListener(new FocusAdapter(){\r
public void focusLost(FocusEvent e) {\r
if (!DataValidation.isCopyright(jCopyrightTextArea.getText())) {\r
- JOptionPane.showMessageDialog(frame, "Copyright must be entered.");\r
+ JOptionPane.showMessageDialog(FpdHeader.this, "Copyright must be entered.");\r
return;\r
}\r
if (jCopyrightTextArea.getText().equals(ffc.getFpdHdrCopyright())) {\r