Package java.awt

Examples of java.awt.Cursor$CursorDisposer


  public void actionPerformed(ActionEvent event) {
    if (event.getSource() == mCloseBtn) {
      close();
    } else if (event.getSource() == mDownloadBtn) {
      mDownloadBtn.setEnabled(false);
      Cursor cursor = getCursor();
      this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
      int successfullyDownloadedItems = 0;
      try {
        Object[] objects = mSoftwareUpdateItemList.getSelection();
        for (Object object : objects) {
View Full Code Here


          mSettingsWillBeOpened = true;

          // show busy cursor
          Window comp = UiUtilities.getLastModalChildOf(MainFrame.getInstance());
          ProgramTable programTable = MainFrame.getInstance().getProgramTableScrollPane().getProgramTable();
          Cursor oldWindowCursor = comp.getCursor();
          Cursor oldTableCursor = programTable.getCursor();
          comp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
          programTable.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));

          SettingsDialog dlg = new SettingsDialog(MainFrame.this, visibleTabId);
          dlg.centerAndShow();
View Full Code Here

    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

 
  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

    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

    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

    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

    }
   
    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

    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

    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

TOP

Related Classes of java.awt.Cursor$CursorDisposer

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.