Package tvbrowser.ui.waiting.dlgs

Examples of tvbrowser.ui.waiting.dlgs.SettingsWaitingDialog


  private void waitForLoadedChannels() {
    final Thread t = ChannelList.getChannelLoadThread();

    if (t != null && t.isAlive()) {
      Window parent = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
      final SettingsWaitingDialog dialog = new SettingsWaitingDialog(parent);

      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          if (t.isAlive()) {
            UiUtilities.centerAndShow(dialog);
          }
        }
      });

      try {
        t.join(10000);
      } catch (Exception e) {
        e.printStackTrace();
      }
      dialog.setVisible(false);
      dialog.dispose();
    }
  }
View Full Code Here

TOP

Related Classes of tvbrowser.ui.waiting.dlgs.SettingsWaitingDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.