Examples of show()


Examples of javafx.stage.Popup.show()

            });
            popup.setAutoHide(true);
            popup.getContent().add(frame);
            popup.setX(getScene().getWindow().getX() + getScene().getWindow().getWidth() / 2 - image.getWidth() / 2);
            popup.setY(getScene().getWindow().getY() + getScene().getWindow().getHeight() / 2 - image.getHeight() / 2);
            popup.show(getScene().getWindow());
          }
        });
        return zoomButton;
      }
      return null;
View Full Code Here

Examples of javafx.stage.Stage.show()

        });
        HBox buttonbox= new HBox();
        buttonbox.getChildren().add(button);
        borderPane.setBottom(buttonbox);
        stage.setScene(new Scene(borderPane));
        stage.show();
        stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
          @Override
          public void handle(WindowEvent event) {
            System.exit(0);
          }
View Full Code Here

Examples of javax.swing.JComponent.show()

        if (_component instanceof JComponent) {
            JComponent component = (JComponent) _component;
            component.setLocation(screenSize.width / 2 - w / 2, screenSize.height / 2 - h / 2);
            component.setSize(w, h);
            component.setOpaque(false);
            component.show();
        } else if (_component instanceof JFrame) {
            JFrame component = (JFrame) _component;
            component.setLocation(screenSize.width / 2 - w / 2, screenSize.height / 2 - h / 2);
            component.setSize(w, h);
            component.show();
View Full Code Here

Examples of javax.swing.JDialog.show()

        Element el=getElement(c);
        changeElement(c,el.previousMode);
      }
    });
    jd.pack();
    jd.show();
    return jd;
  }
 
  public void save(UserProperties up, String suffix){
    String propRoot=SplitTabPane.class.getName();
View Full Code Here

Examples of javax.swing.JFrame.show()

          new TestBinary(buffer,args[0]);
        }
      });

      f.pack();
      f.show();
    }
    else{
      JFrame f=new JFrame("Reading Binary Socket");
      LoggingBufferPanel lp=new LoggingBufferPanel(f,"test",null);
      f.getContentPane().add(lp);
View Full Code Here

Examples of javax.swing.JInternalFrame.show()

        internalFrames.put("" + c.hashCode(), jt);

        jt.pack();
        jt.setSize(new Dimension(w, h));
        jt.show();
    }

    public void removeFromDesktop(int component)
    {
        JInternalFrame f = (JInternalFrame) internalFrames.get("" + component);
View Full Code Here

Examples of javax.swing.JOptionPane.show()

        pane.setOptions( new String[]{"Yes", "No"} );

        JInternalFrame internalFrame = pane.createInternalFrame( contentPane,
                                                                 "xxx title" );
        internalFrame.setVisible( true );
        pane.show();
        internalFrame.addInternalFrameListener( new InternalFrameListener() {

            public void internalFrameOpened(InternalFrameEvent e) {
            }
View Full Code Here

Examples of javax.swing.JPopupMenu.show()

              }
            });

            menu.add(menuItem);

            menu.show(e.getComponent(), e.getX(), e.getY());
          }
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.Popup.show()

    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();
  }

  public void mouseClicked(MouseEvent e) { }
View Full Code Here

Examples of jcurses.util.Message.show()

    return false;
  }

  public static void showError(Exception e) {
    Message d = new Message("error", e.toString(), "ok");
    d.show();
  }

  public static boolean wasReturn(InputChar arg0) {
    return !arg0.isSpecialCode() && arg0.getCharacter() == '\n';
  }
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.