Package javax.swing

Examples of javax.swing.JDialog.toFront()


      public void popupMenuCanceled(PopupMenuEvent e) {}
    });
   
    popupParent.setVisible(true);
    popupParent.toFront();
   
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        menu.show(popupParent,p.x - popupParent.getLocation().x,p.y - popupParent.getLocation().y);
      };
View Full Code Here


    mTimer.stop(); // disable the update timer to avoid new update events
    if (log && downloadingThread != null && downloadingThread.isAlive()) {
      final JDialog info = new JDialog(UiUtilities.getLastModalChildOf(this));
      info.setModal(true);
      info.setUndecorated(true);
      info.toFront();

      JPanel main = new JPanel(new FormLayout("5dlu,pref,5dlu","5dlu,pref,5dlu"));
      main.setBorder(BorderFactory.createLineBorder(Color.black));
      main.add(new JLabel(mLocalizer.msg("downloadinfo","A data update is running. TV-Browser will be closed when the update is done.")), new CellConstraints().xy(2,2));
View Full Code Here

    centerOnScreen(dialog);
    dialog.setLocale(Locale.ENGLISH);
    dialog.setModal(true);
    dialog.setTitle(shortMessage);
    dialog.setVisible(true);
    dialog.toFront();
  }

  public static void showErrorMessage(final String shortMessage, final Throwable exception) {
    StringBuilder sb = new StringBuilder();
    Throwable e = exception;
View Full Code Here

            }
        });

        qv.setVisible(true);
        qv.pack();
        qv.toFront();

        return result;
    }

    /**
 
View Full Code Here

        cp.add(jsp);
        cp.add(messageFoot);
        cp.add(finish);
        qv.setVisible(true);
        qv.pack();
        qv.toFront();
    }
   
    public int getNPunkteByPercent(int percent){
        if(percent >= 96){
            return 15;
View Full Code Here

        });
        scale.setSelected(true);
        JOptionPane pane = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE);
        JDialog dlg = pane.createDialog(Main.parent, imageUrl.toString());
        dlg.setModal(false);
        dlg.toFront();
        dlg.setVisible(true);
    }

    private static Icon loadScaledImage(URL u, int maxSize) {
        Image img = new ImageIcon(u).getImage();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.