Package java.awt.event

Examples of java.awt.event.MouseAdapter


            }
        });

        popupMenu.add(togglePinStateMenuItem);

        tabbedPane.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON3) {
                    enablePopupMenuAppropriately();
                    Point point = e.getPoint();
                    popupMenu.show(tabbedPane, point.x, e.getPoint().y);
View Full Code Here


  private class MyGlassPane extends JPanel {
    //ForegroundLabel infoLabel = new ForegroundLabel("Showing search");
    public MyGlassPane() {
      addKeyListener(new KeyAdapter() { });
      addMouseListener(new MouseAdapter() { });
      /*  infoLabel.setForeground(new Color(255, 100, 100, 124));

        setLayout(new BorderLayout());
        add(infoLabel, BorderLayout.CENTER);*/
      super.setCursor(
View Full Code Here

    setTransferHandler(new SourceTransferHandler());
    setDragEnabled(true);

    setCellRenderer(createRenderer());

    MouseListener ml = new MouseAdapter() {
      public void mousePressed(MouseEvent e) {
        JComponent c = (JComponent)e.getSource();
        if (c != SourceTree.this) return;
        TreePath path = getPathForLocation(e.getX(), e.getY());
        if ((e.getModifiers() & MouseEvent.BUTTON3_MASK) == MouseEvent.BUTTON3_MASK) {
View Full Code Here

      download_new_version_label.setText("Download new version");
      changelog_editor_panel.setEnabled(true);
      changelog_editor_panel.setFont(new Font("Courir", Font.PLAIN, 12));
      changelog_editor_panel.setText(jmule_updater.getChangeLog());
     
      download_new_version_label.addMouseListener(new MouseAdapter() {
         public void mouseClicked(MouseEvent event) {
           BrowserLauncher.openURL(JMConstants.JMULE_DOWNLOAD_PAGE);
         }
         public void mouseEntered(MouseEvent event) {
           download_new_version_label.setForeground(Color.BLUE);
View Full Code Here

            public void valueChanged(ListSelectionEvent e) {
                create.setEnabled(tlist.getSelectedValue() != null);
            }
        });

        tlist.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                displayTemplate( (Template)tlist.getSelectedValue() );
            }
        });
View Full Code Here

        }
    }

    public SourceTree(DataSourcePool pool) {
        super(pool);
        addMouseListener(new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) {
                    DiagramComponent d = JSynoptic.gui.getActiveComponent();
                    if (d != null) {
                        if (!d.getDiagramSelection().isEmpty()) {
View Full Code Here

                cmDelete.setEnabled(cmlist.getSelectedValue() != null);
                cmDuplicate.setEnabled(cmlist.getSelectedValue() != null);
                updateWarnings();
            }
        });
        cmlist.addMouseListener(new MouseAdapter() {
            public void mouseClicked(MouseEvent e) {
                if (e.getClickCount() == 2) {
                    int index = cmlist.locationToIndex(e.getPoint());
                    ((SvgMapper) SvgMapper.svgMappers.get(index)).editDialog(SvgShapePropertiesPanel.this.getOwner());
                }
View Full Code Here

    static_label.setFont(lable_font);
    down_label.setFont(lable_font);
    connected_to_label.setFont(lable_font);
    description_label.setFont(lable_font);
   
    ed2k_link_value.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent event) {
        clipboard.setContents(new Transferable() {
          public Object getTransferData(DataFlavor flavor)
              throws UnsupportedFlavorException,
              IOException {
View Full Code Here

        }
    }
   
    //final FileScanner file_scanner = new FileScanner();
   
    shared_folders_list.addMouseListener(new MouseAdapter() {
       public void mouseClicked(MouseEvent e) {
          if(scanner != null && scanner.isAlive()) {
            scanner.JMStop();
            scanner = null;
         
View Full Code Here

            cvs_build_label.setFont(new java.awt.Font("Dialog", 0, 12));
              cvs_build_label.setForeground(java.awt.Color.red);
              cvs_build_label.setText(str);
              cvs_build_label.setToolTipText(JMConstants.JMULE_FORUMS);
              cvs_build_label.setCursor(new Cursor(Cursor.HAND_CURSOR));
              cvs_build_label.addMouseListener(new MouseAdapter() {
                public void mouseClicked(MouseEvent event) {
                  BrowserLauncher.openURL(JMConstants.JMULE_FORUMS);
                }
              });
              add(cvs_build_label);
View Full Code Here

TOP

Related Classes of java.awt.event.MouseAdapter

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.