/**
  * Indicates wether the panel has been validated or not.
  *
  * @return Always true.
  */
 public boolean isValidated() {
   if (!isValid) {
     doSudoCmd();
   }
   if (!isValid) {
     JOptionPane.showInternalMessageDialog(
         this, "Password", "Password is not valid", JOptionPane.ERROR_MESSAGE);
   }
   return isValid;
 }
Esempio n. 2
0
 /**
  * Show an internal dialog about box near the specified component.
  *
  * @param component The component near which the about box should be displayed
  */
 protected void displayInternalNear(final Component component) {
   JOptionPane.showInternalMessageDialog(
       component, _message, _title, JOptionPane.INFORMATION_MESSAGE);
 }