Package javax.swing

Examples of javax.swing.Popup$HeavyWeightWindow


    StyleUtil.fillBackground(style, g, 0, 0, menu.getWidth(), menu.getHeight());
  }
 
  @Override
  public Popup getPopup(JPopupMenu menu, int x, int y) {
    Popup popup = super.getPopup(menu, x, y);
    /*
     * The menu should now have a parent, which is probably a JPanel, In
     * which case its borders need to be deleted.
     */
    Container parent = menu.getParent();
View Full Code Here


                : (owner.isShowing()
                   ? owner.getLocationOnScreen() : owner.getLocation());
        final Window parent = owner != null
            ? SwingUtilities.getWindowAncestor(owner) : null;
        origin.translate(x, y);
        return new Popup() {
            private BubbleWindow w;
            public void show() {
                w = new BubbleWindow(parent, content);
                w.pack();
                Point where = new Point(origin);
View Full Code Here

    final Integer timerDuration =
      duration != null ? duration : 10000;
    origin.translate(x, y);
    vpos = VPOS_BELOW;
    hpos = HPOS_LEFT;
    return new Popup () {
      private BalloonTip bt = null;
      final ComponentEar componentEar = new ComponentEar();
      final MouseEar mouseEar = new MouseEar();
      final FocusEar focusEar = new FocusEar();
     
View Full Code Here

     * @return the value obtained from the first UI, which is
     * the UI obtained from the default <code>LookAndFeel</code>
     * @since 1.4
     */
    public Popup getPopup(JPopupMenu a, int b, int c) {
        Popup returnValue =
            ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
        }
        return returnValue;
View Full Code Here

    canvas.addMouseListener(this);
    canvas.addMouseMotionListener(this);
  }
 
  public void hideCurrentPopup() {
    Popup cur = curPopup;
    if (cur != null) {
      curPopup = null;
      dragStart = null;
      cur.hide();
    }
  }
View Full Code Here

    Dimension ownerDim = owner.getSize();
    Dimension layoutDim = layout.getPreferredSize();
    int x = ownerLoc.x + Math.max(0, ownerDim.width - layoutDim.width - 5);
    int y = ownerLoc.y + Math.max(0, ownerDim.height - layoutDim.height - 5);
    PopupFactory factory = PopupFactory.getSharedInstance();
    Popup popup = factory.getPopup(canvasPane.getViewport(), layout, x, y);
    popup.show();
    curPopup = popup;
    curPopupTime = System.currentTimeMillis();
  }
View Full Code Here

        super (app, type, parent, width, height, decorated, pixelScale, name);
        this.hud = hud;
    }

    public Popup getPopup(final Component component, final int x, final int y) {
        return new Popup() {
            private HUDComponent hc;

            @Override
            public void show() {
                SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

        final WindowSwing popup = winPopup;

        winPopup.setPixelOffset(x, y);

        return new Popup() {

            @Override
            public void show() {
                App2D.invokeLater(new Runnable() {
                    public void run () {
View Full Code Here

     * @return the value obtained from the first UI, which is
     * the UI obtained from the default <code>LookAndFeel</code>
     * @since 1.4
     */
    public Popup getPopup(JPopupMenu a, int b, int c) {
        Popup returnValue =
            ((PopupMenuUI) (uis.elementAt(0))).getPopup(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((PopupMenuUI) (uis.elementAt(i))).getPopup(a,b,c);
        }
        return returnValue;
View Full Code Here

        canvas.addMouseListener(this);
        canvas.addMouseMotionListener(this);
    }

    public void hideCurrentPopup() {
        Popup cur = curPopup;
        if (cur != null) {
            curPopup = null;
            dragStart = null;
            cur.hide();
        }
    }
View Full Code Here

TOP

Related Classes of javax.swing.Popup$HeavyWeightWindow

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.