public Login_BLogic() {

    Splash t = new Splash();
    t.showSplash(10000);

    databaseClass = new LoginDatabaseClass();

    loginUserInterface = new LoginUI(this);
  }
Exemple #2
0
  /** lays out the GUI components in their right places */
  protected void layoutComponents() {

    log.debug("Laying out GUI components");

    setIconImage(r.getImage("icons/16x16/sockso.png"));
    setLayout(new BorderLayout());
    add(getMainPane(), BorderLayout.CENTER);
    add(getBottomPane(), BorderLayout.SOUTH);

    addWindowListener(
        new WindowAdapter() {
          @Override
          public void windowClosing(final WindowEvent evt) {
            if (tray.isActive()) toggleVisibility();
            else exit();
          }
        });
    setSize(new Dimension(700, 500));
    setLocationRelativeTo(null);

    p.addPropertiesListener(this);

    // done with splash now
    Splash.close();
  }
Exemple #3
0
  /** Main method. Create the panel and show it. */
  public static void main(String[] args) {
    Splash splash = new Splash(new ImageIcon(Main.class.getResource("/splash.gif")));

    // load skin LF
    try {
      SkinLookAndFeel.setSkin(SkinLookAndFeel.loadDefaultThemePack());
      UIManager.setLookAndFeel(new SkinLookAndFeel());
    } catch (Exception e) {
      e.printStackTrace();
    }

    // startup the program
    org.wordcorr.BeanCatalog.getInstance();
    MainFrame.getInstance().init();
    MainFrame.getInstance().setVisible(true);
    splash.delayedDispose(1);
  }
 @Override
 public void drawSelf(Graphics g) {
   if (sword != null) {
     sword.drawSelf(g);
   }
   super.drawSelf(g);
   splash.drawSelf(g);
 }
Exemple #5
0
  /** Close the main frame and all EntryEdit frames and then this frame, then exit. */
  protected void exit() {
    Splash.exitApp();
    //  for(int i=0 ; i<entry_edit_objects.size() ;++i)
    //    entryEditFinished(entry_edit_objects.elementAt(i));

    //  if(filemanager != null)
    //    filemanager.setVisible(false);

    //  setVisible(false);
    //  dispose();
    //  System.gc();
  }
Exemple #6
0
  /** checks for a newer version */
  public void latestVersionReceived(final LatestVersionEvent evt) {

    final String latestVersion = evt.getVersion();

    if (latestVersion != null && !latestVersion.equals(Sockso.VERSION)) {

      Splash.closeNow();

      final String message =
          locale.getString("misc.msg.updateAvailable", new String[] {latestVersion});

      JOptionPane.showMessageDialog(this, message, "Sockso", JOptionPane.INFORMATION_MESSAGE);
    }
  }