Example #1
0
 public void setResponse(String res) {
   int msgType = JOptionPane.PLAIN_MESSAGE;
   if (res.startsWith("+OK")) msgType = JOptionPane.INFORMATION_MESSAGE;
   if (res.startsWith("-ERR")) msgType = JOptionPane.ERROR_MESSAGE;
   JOptionPane.showMessageDialog(
       QSAdminGUI.this, res.substring(res.indexOf(" ") + 1), "Response", msgType);
 }
Example #2
0
 private void about() {
   JOptionPane.showMessageDialog(
       this,
       "QSAdminGUI\n\n"
           + "GUI Client for QSAdminServer of QuickServer.\n"
           + "This is compliant with QuickServer v"
           + QSAdminMain.VERSION_OF_SERVER
           + " release.\n\n"
           + "Copyright (C) QuickServer.org\n"
           + "http://www.quickserver.org",
       "About QSAdminGUI",
       JOptionPane.INFORMATION_MESSAGE,
       logoAbout);
 }