Package java.awt

Examples of java.awt.Window$WindowBltBufferStrategy


   * @return true, if successful
   */
  private boolean showLoginDialog(CalendarExportSettings settings) {
    LoginDialog login;

    Window parent = CalendarExportPlugin.getInstance().getBestParentFrame();

    login = new LoginDialog(parent, settings.getExporterProperty(USERNAME),
        IOUtilities.xorDecode(settings.getExporterProperty(PASSWORD), 345903),
        settings.getExporterProperty(STORE_PASSWORD, false));

View Full Code Here


   *          Should the new dialog be modal?
   * @return A new JDialog.
   */
  public static JDialog createDialog(Component parent, final boolean modal) {
    final AtomicReference<JDialog> result = new AtomicReference<JDialog>();
    final Window parentWin = getBestDialogParent(parent);
    try {
      UIThreadRunner.invokeAndWait(new Runnable() {

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

    } else if (e.getSource().equals(mChConf)) {
      if ((mSource instanceof ChannelsSettingsTab)) {
        ((ChannelsSettingsTab) mSource).configChannels();
      } else {

        Window parent = UiUtilities.getBestDialogParent(mComponent);
        ChannelConfigDlg dialog = new ChannelConfigDlg(parent, mChannel);
        dialog.centerAndShow();

        // If from a ChannelLabel update it
        if (mSource instanceof ProgramTableChannelLabel) {
View Full Code Here

    return true;
  }

  @Override
  public void showSettingsDialog(CalendarExportSettings settings) {
    Window wnd = CalendarExportPlugin.getInstance().getBestParentFrame();
    AppleSettingsDialog settingsDialog = new AppleSettingsDialog(wnd, settings);
    settingsDialog.showDialog();
  }
View Full Code Here

    buttonPn.add(mCloseButton = new JButton(Localizer.getLocalization(Localizer.I18N_CLOSE)));
    mCloseButton.addActionListener(this);
    mDialog.getRootPane().setDefaultButton(mCloseButton);

    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Window vaterWindow = mDialog.getOwner();
    Point vaterLocation = vaterWindow.getLocation();
    Dimension vaterSize = vaterWindow.getSize();

    // Preferred
    Point hilfeLocation = new Point(vaterLocation.x + vaterSize.width, vaterLocation.y);
    Dimension hilfeSize = new Dimension(screenSize.width - hilfeLocation.x, vaterSize.height);

    // check if size is OK
    if (hilfeSize.width < MIN_HELP_DIALOG_SIZE.width) {
      hilfeSize.width = MIN_HELP_DIALOG_SIZE.width;
      hilfeLocation.x = screenSize.width - hilfeSize.width;

      // does not fit beside -> move parent window to the left
      vaterLocation.x = screenSize.width - MIN_HELP_DIALOG_SIZE.width - vaterSize.width;
      if (vaterLocation.x < 10) {
        vaterLocation.x = 10;
      }
      vaterWindow.setLocation(vaterLocation);
    }
    if (hilfeSize.width > MAX_HELP_DIALOG_SIZE.width) {
      hilfeSize.width = MAX_HELP_DIALOG_SIZE.width;
    }
    if (hilfeSize.height < MIN_HELP_DIALOG_SIZE.height) {
View Full Code Here

   
    handlePluginSelection();
   
    choose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {try{
        Window parent = UiUtilities.getLastModalChildOf(MainFrame
              .getInstance());
        PluginChooserDlg chooser = null;
        chooser = new PluginChooserDlg(parent, mClientPluginTargets, null,
              ReminderPluginProxy.getInstance());
       
View Full Code Here

   * Shows the Settings-Dialog for the Executable
   */
  private void showFileSettingsDialog() {
    ExecuteSettingsDialog execSettingsDialog;

    Window parent = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
    execSettingsDialog = new ExecuteSettingsDialog(parent, mExecFileStr,
        mExecParamStr);

    execSettingsDialog.setVisible(true);

View Full Code Here

    // Check whether we have to use a frame or dialog
    // Workaround: If there is a modal dialog open a frame is not usable. All
    //             user interaction will be ignored.
    //             -> If there is a modal dialog open, we show this reminder as
    //                dialog, otherwise as frame.
    final Window parent = UiUtilities.getLastModalChildOf(MainFrame
        .getInstance());
    String title = mLocalizer.msg("title", "Reminder");

    // if this is a favorite, change the title to the name of the favorite
    if (reminders.size() == 1) {
View Full Code Here

  {
    if (aboutFrame == null)
    {
      final String title = getDisplayName();
      // look where we have been added ...
      final Window w = SwingUtil.getWindowAncestor(reportPane);
      if (w instanceof Frame)
      {
        aboutFrame = new AboutDialog
            ((Frame) w, title, ClassicEngineInfo.getInstance());
      }
View Full Code Here

    if (className == null)
    {
      throw new NullPointerException("No classname given"); //$NON-NLS-1$
    }

    final Window proxy = getContext().getWindow();
    if (proxy instanceof Frame)
    {
      final ClassLoader classLoader = ObjectUtilities.getClassLoader(AbstractActionPlugin.class);
      try
      {
View Full Code Here

TOP

Related Classes of java.awt.Window$WindowBltBufferStrategy

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.