Examples of Cursor


Examples of java.awt.Cursor

    if (SwingTools.showConfirmDialog((JComponent)parentView,
            this, this.dialogTitle, this.nameTextField) == JOptionPane.OK_OPTION) {
      if (this.controller.getBackFaceShown() != null
          && this.controller.getBackFaceShown()) {
        JRootPane rootPane = SwingUtilities.getRootPane((JComponent)parentView);
        Cursor defaultCursor = rootPane.getCursor();
        try {
          rootPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
          this.controller.setModel(ImportFurnitureTaskPanel.copyToTemporaryOBJContent(
              this.iconComponent.getModel(), this.controller.getModel()));
        } catch (IOException e) {
View Full Code Here

Examples of java.awt.Cursor

 
  public void processMouseMotionEvent(MouseEvent me)
  {
    if (!isAlertListEmpty && textlinkArray[currentLink].mouseWithin(me.getPoint()))
    {
      this.setCursor(new Cursor(Cursor.HAND_CURSOR));
      this.showStatus(textlinkArray[currentLink].getToolTip());
    }else if (!isAlertListEmpty && dismissText.mouseWithin(me.getPoint())){
      this.setCursor(new Cursor(Cursor.HAND_CURSOR));
      this.showStatus(dismissText.getToolTip());
    }else{
      this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
      this.showStatus("");
    }
  }    // end processMouseMotionEvent(MouseEvent) method
View Full Code Here

Examples of java.awt.Cursor

    createGui();
  }

  private void createGui () {
    setUndecorated(true);
    setCursor(new Cursor(Cursor.WAIT_CURSOR));

    JPanel panel = (JPanel) getContentPane();
    panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

    panel.setLayout(new FormLayout("3dlu, pref, 3dlu", "3dlu, pref, 3dlu, pref, 3dlu"));
View Full Code Here

Examples of java.awt.Cursor

    createGUI(parent, messageType);
  }

  private void createGUI(Window parent, byte messageType) {
    setUndecorated(true);
    setCursor(new Cursor(Cursor.WAIT_CURSOR));
   
    JPanel panel = (JPanel) getContentPane();
    panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));

    panel.setLayout(new FormLayout("3dlu, pref, 3dlu", "3dlu, pref, 3dlu, pref, 3dlu"));
View Full Code Here

Examples of java.awt.Cursor

    public void onMouseOut(BasicPanel panel, Box box) {
    }

    public void onMouseOver(BasicPanel panel, Box box) {
        Cursor c = box.getStyle().getCursor();

        if (!panel.getCursor().equals(c)) {
            panel.setCursor(c);
        }
    }
View Full Code Here

Examples of java.awt.Cursor

    }
   
    public void setActionsAllowed(boolean b) {
        this.actionsAllowed = b;
       
        Cursor cursor = b ? new Cursor(Cursor.DEFAULT_CURSOR) : new Cursor(Cursor.WAIT_CURSOR);
        vc.setCursor(cursor);
       
        if (b) {
            for (MouseListener ml : vc.getMouseListeners()) {
                if (ml == vml)
View Full Code Here

Examples of java.awt.Cursor

    public void eomgChanged(EOMGEvent event) {
        if (Debug.debugging("drawingtooldetail")) {
            Debug.output("OMDrawingTool.eomgChanged()");
        }

        Cursor cursor = event.getCursor();
        if (cursor != null) {
            setCursor(cursor);
        }

        // We might have used the InformationDelgator to put the
View Full Code Here

Examples of java.awt.Cursor

    public final static Cursor GRAB = Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR);

    public EOMGCursors() {};

    public static Cursor create(String resource, Point hotspot, String name) {
        Cursor cursor = DEFAULT;
        try {

            URL url = (new EOMGCursors()).getClass().getResource(resource);
            ImageIcon image = new ImageIcon(url);
            cursor = Toolkit.getDefaultToolkit()
View Full Code Here

Examples of java.awt.Cursor

                Toolkit tk = Toolkit.getDefaultToolkit();
                ImageIcon pointer = new ImageIcon(getClass().getResource("pan.gif"));
                Dimension bestSize = tk.getBestCursorSize(pointer.getIconWidth(), pointer.getIconHeight());
                Image pointerImage = ImageScaler.getOptimalScalingImage(pointer.getImage(),(int) bestSize.getWidth(),
                                                                          (int) bestSize.getHeight());
                Cursor cursor = tk.createCustomCursor(pointerImage, new Point(0, 0), "PP");
                setModeCursor(cursor);
                return;
            } catch (Exception e) {
                // Problem finding image probably, just move on.
            }
View Full Code Here

Examples of java.awt.Cursor

  public void setCursorPosition(int x, int y) {
    AWTUtil.setCursorPosition(canvas, robot, x, y);
  }

  public void setNativeCursor(Object handle) throws LWJGLException {
    Cursor awt_cursor = (Cursor)handle;
    if (frame != null)
      frame.setCursor(awt_cursor);
  }
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.