Package java.awt

Examples of java.awt.Cursor


                if (e instanceof SVGAElement) {
                    elt = (SVGAElement)e;
                    break;
                }
            }
            Cursor cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
            userAgent.setSVGCursor(cursor);
            if (elt != null) {
                String href = XLinkSupport.getXLinkHref(elt);
                userAgent.displayMessage(href);
            }
View Full Code Here


                if (e instanceof SVGAElement) {
                    elt = (SVGAElement)e;
                    break;
                }
            }
            Cursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
            userAgent.setSVGCursor(cursor);
            userAgent.displayMessage("");
            evt.stopPropagation();
        }
View Full Code Here

                x += iColWidth[i];
            }

            if (i >= 0) {
                if (!bDrag) {
                    setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));

                    bDrag    = true;
                    iXDrag   = xb - iColWidth[i];
                    iColDrag = i;
                }
View Full Code Here

     * @return
     */
    public boolean mouseExit(Event e, int x, int y) {

        if (bDrag) {
            setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

            bDrag = false;
        }

        return true;
View Full Code Here

  private class HyperlinkMouseHandler extends MouseAdapter
  {
    public void mouseEntered(final MouseEvent evt)
    {
      setForeground(Color.black);
      setCursor(new Cursor(Cursor.HAND_CURSOR));
    }
View Full Code Here

    }

    public void mouseExited(final MouseEvent evt)
    {
      setForeground(Color.blue);
      setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    }
View Full Code Here

     
        final Component glassPane = SwingUtilities.getRootPane(RepositoryPublishDialog.this).getGlassPane();
        try
        {
          glassPane.setVisible(true);
          glassPane.setCursor(new Cursor(Cursor.WAIT_CURSOR));
          final FileObject child = treeNode.resolveFile(newFolderDialog.getFolderName().replaceAll("\\%", "%25").replaceAll("\\!", "%21"));
          child.createFolder();
          if (child instanceof WebSolutionFileObject)
          {
            final WebSolutionFileObject webSolutionFileObject = (WebSolutionFileObject) child;
            webSolutionFileObject.setDescription(newFolderDialog.getDescription());
          }
          getTable().refresh();
        }
        catch (Exception e1)
        {
          UncaughtExceptionsModel.getInstance().addException(e1);
        }
        finally
        {
          glassPane.setVisible(false);
          glassPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
        }
      }
View Full Code Here

      {
        final Component glassPane = SwingUtilities.getRootPane(RepositoryTreeDialog.this).getGlassPane();
        try
        {
          glassPane.setVisible(true);
          glassPane.setCursor(new Cursor(Cursor.WAIT_CURSOR));
          final FileObject child = treeNode.resolveFile(newFolderDialog.getFolderName());
          if (child instanceof WebSolutionFileObject)
          {
            final WebSolutionFileObject webSolutionFileObject = (WebSolutionFileObject) child;
            webSolutionFileObject.setDescription(newFolderDialog.getDescription());
          }
          child.createFolder();
          repositoryTreeModel.fireTreeDataChanged();
          repositoryBrowser.setSelectionPath(selectionPath.getParentPath().pathByAddingChild(child));
          setDirty(true);
        }
        catch (Exception e1)
        {
          UncaughtExceptionsModel.getInstance().addException(e1);
        }
        finally
        {
          glassPane.setVisible(false);
          glassPane.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
        }
      }
    }
View Full Code Here

    if (jbtCapturaImagem == null) {
      jbtCapturaImagem = new JButton();
      jbtCapturaImagem.setBounds(new Rectangle(310, 500, 122, 36));
      jbtCapturaImagem.setText("Captura");
      jbtCapturaImagem.setToolTipText("Captura");
      jbtCapturaImagem.setCursor(new Cursor(Cursor.HAND_CURSOR));
     
      jbtCapturaImagem.setEnabled(false);
      jbtCapturaImagem
          .addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent e) {
View Full Code Here

      if (jbtComparar == null) {
        jbtComparar = new JButton();
        jbtComparar.setBounds(new Rectangle(400, 400, 122, 36));
        jbtComparar.setText("Comparar");
        jbtComparar.setToolTipText("Comparar");
        jbtComparar.setCursor(new Cursor(Cursor.HAND_CURSOR));
        jbtComparar.setEnabled(false);
        jbtComparar
            .addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent e) {
View Full Code Here

TOP

Related Classes of java.awt.Cursor

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.