Package java.awt

Examples of java.awt.Window$AccessibleAWTWindow


                "software check failed."));
          } else if (mSoftwareUpdateItems != null && mSoftwareUpdateItems.length == 0 && !showOnlyUpdates) {
            JOptionPane.showMessageDialog(UiUtilities.getLastModalChildOf(MainFrame.getInstance()), mLocalizer.msg("error.2",
                "No new items available"));
          } else if(mSoftwareUpdateItems != null && mSoftwareUpdateItems.length > 0) {
            final Window parent = UiUtilities.getLastModalChildOf(MainFrame
                .getInstance());
            try {
              UIThreadRunner.invokeAndWait(new Runnable() {

                @Override
View Full Code Here


      newDir.mkdirs();
    }
   
    if(!currentDir.equals(newDir)) {
     
      Window parent = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
      mWaitingDlg = new CopyWaitingDlg(parent, CopyWaitingDlg.COPY_MSG);

      mShowWaiting = true;

      new Thread("Move TV data directory") {
View Full Code Here

          public void tvDataUpdateFinished() {
            if (mSettings.getProperty("showRemovedDialog","true").compareTo("true") == 0) {
              Program[] removedPrograms = mReminderList.updatePrograms();
              if (removedPrograms.length > 0) {
                Window parent = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
                RemovedProgramsDialog dlg = new RemovedProgramsDialog(parent,
                    removedPrograms);
                util.ui.UiUtilities.centerAndShow(dlg);
              }
            } else {
View Full Code Here

      action.setText(mLocalizer.msg("contextMenuText", "Remind me"));
      action.setSmallIcon(IconLoader.getInstance().getIconFromTheme("actions",
          "appointment-new", 16));
      action.setActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          final Window w = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
          try {
            UIThreadRunner.invokeAndWait(new Runnable() {

              @Override
              public void run() {
View Full Code Here

    mReminderList.removeExpiredItems();
    updateRootNode(false);
  }

  private void showManageRemindersDialog() {
    Window w = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
    ReminderListDialog dlg = new ReminderListDialog(w, mReminderList);

    int x = Integer.parseInt(mSettings.getProperty("dlgXPos","-1"));
    int y = Integer.parseInt(mSettings.getProperty("dlgYPos","-1"));
View Full Code Here

          ((JComboBox) editor).addActionListener(this);
          editor.addFocusListener(this);
        } else if (editor instanceof JInputComponent) {
          JInputComponent input = (JInputComponent) editor;
          MyDialog dlog;
          Window parent = AttrTable.this.parent;
          if (parent instanceof Frame) {
            dlog = new MyDialog((Frame) parent, input);
          } else {
            dlog = new MyDialog((Dialog) parent, input);
          }
View Full Code Here

      action.putValue(Action.SMALL_ICON, icon);
      actions.add(action);
    }
    AbstractAction action = new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        Window parent = UiUtilities.getLastModalChildOf(getParentFrame());
        new ProgramInfoPrintDialog(parent, program);
      }
    };
    action.putValue(Action.NAME, mLocalizer.msg("printProgramInfo","Print program info"));
    action.putValue(Action.SMALL_ICON, icon);
View Full Code Here

    JButton test = new JButton(mLocalizer.msg("check", "Check"));
   
    test.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent arg0) {
        Window bestparent = UiUtilities.getBestDialogParent(panel);
       
        ParamCheckDialog dialog;
        dialog = new ParamCheckDialog(bestparent, mUrl.getText());
        dialog.setVisible(true);
      }
     
    });
       
    panel.add(test, cc.xy(5, 3));

    JButton help = new JButton(Localizer.getLocalization(Localizer.I18N_HELP));
   
    help.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent arg0) {
        Window bestparent = UiUtilities.getBestDialogParent(panel);
       
        ParamHelpDialog dialog;
        dialog = new ParamHelpDialog(bestparent);
        dialog.setVisible(true);
      }
View Full Code Here

      }
    } else if (source == mInfoBtn) {
      TvBrowserDataServiceChannelGroup group = (TvBrowserDataServiceChannelGroup) mGroupList.getSelectedValue();

      if (group != null) {
        Window parent = UiUtilities.getBestDialogParent(this);
        ChannelGroupDialog dialog = new ChannelGroupDialog(parent, group);
        dialog.setVisible(true);
      }
    }
View Full Code Here

   * @throws ServiceException Problems with the google service
   */
  private boolean showCalendarSettings(CalendarExportSettings settings) throws IOException, ServiceException {
    GoogleSettingsDialog settingsDialog;

    Window wnd = CalendarExportPlugin.getInstance().getBestParentFrame();
    settingsDialog = new GoogleSettingsDialog(wnd, settings, mPassword);

    return settingsDialog.showDialog() == JOptionPane.OK_OPTION;

  }
View Full Code Here

TOP

Related Classes of java.awt.Window$AccessibleAWTWindow

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.