Examples of addMouseListener()


Examples of javax.swing.table.JTableHeader.addMouseListener()

                }
                tableView.getTableHeader().repaint();
             }
         };
        JTableHeader th = tableView.getTableHeader();
        th.addMouseListener(listMouseListener);
        th.setDefaultRenderer(createDefaultRenderer());
    }

    protected TableCellRenderer createDefaultRenderer() {
        DefaultTableCellRenderer label =
View Full Code Here

Examples of javax.swing.text.JTextComponent.addMouseListener()

        };

        JTextComponent editor =
            (JTextComponent) listEditor.getEditor().getEditorComponent();

        editor.addMouseListener(
            new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    if (listEditor.isDisplayable()) {
                        listEditor.setPopupVisible(true);
                    }
View Full Code Here

Examples of jmt.framework.gui.graph.DistributionDensityGraph.addMouseListener()

          popupFrame.setTitle(windowName);
          popupFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
          int width = 640, height = 480;
          Dimension scrDim = Toolkit.getDefaultToolkit().getScreenSize();
          popupFrame.setBounds((scrDim.width - width) / 2, (scrDim.height - height) / 2, width, height);
          popupGraph.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
              popupGraph.mouseClicked(e);

            }
View Full Code Here

Examples of mage.cards.MageCard.addMouseListener()

    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, gameId);
    cardImg.setBounds(rectangle);
    cardArea.add(cardImg);
    cardArea.moveToFront(cardImg);
    cardImg.update(card);
    cardImg.addMouseListener(this);
    cardImg.setCardBounds(rectangle.x, rectangle.y, Config.dimensions.frameWidth, Config.dimensions.frameHeight);
  }

  private void loadCardsMany(CardsView showCards, BigCard bigCard, CardDimensions dimension, UUID gameId) {
    int columns = 1;
View Full Code Here

Examples of mage.client.components.HoverButton.addMouseListener()

        }
        Rectangle rect = new Rectangle(36, 36);
        HoverButton button = new HoverButton("", ImageManagerImpl.getInstance().getPhaseImage(name), rect);
        button.setToolTipText(name.replaceAll("_", " "));
        button.setPreferredSize(new Dimension(36, 36));
        button.addMouseListener(mouseAdapter);
        hoverButtons.put(name, button);
    }

    public String getGameLog() {
        return gameChatPanel.getText();
View Full Code Here

Examples of mdes.slick.sui.Container.addMouseListener()

          Container m_surface = new Container();
          m_surface.setWidth(Integer.parseInt(details[1]));
          m_surface.setHeight(Integer.parseInt(details[2]));
          m_surface.setX(Integer.parseInt(details[3]) * 8);
          m_surface.setY(Integer.parseInt(details[4]) * 8);
          m_surface.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseReleased(MouseEvent e) {
              super.mouseReleased(e);
            }
View Full Code Here

Examples of mdes.slick.sui.Label.addMouseListener()

        final int j = i;
        tempLabel.setSize(100, 15);
        tempLabel.setFont(GameClient.getFontSmall());
        tempLabel.setForeground(Color.white);
        tempLabel.setLocation(0, y);
        tempLabel.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseReleased(MouseEvent e) {
            super.mouseReleased(e);
            processItemUse(m_use, m_item, j, m_isBattle);
          }
View Full Code Here

Examples of net.cakenet.jsaton.ui.tools.ScreenSelectionOverlay.addMouseListener()

            // JFormDesigner - End of action initialization  //GEN-END:initComponents
        }

        public void actionPerformed(ActionEvent e) {
            ScreenSelectionOverlay overlay = new ScreenSelectionOverlay(MainWindow.this, true, ScreenSelectionOverlay.CloseMethod.CloseOnClick);
            overlay.addMouseListener(new MouseAdapter() {
                public void mouseClicked(final MouseEvent e) {
                    new Thread() {
                        public void run() {
                            try {
                                Thread.sleep(100); // Delay so the window can hide in time...
View Full Code Here

Examples of net.datacrow.console.components.lists.DcFieldList.addMouseListener()

    }
   
    private void createTabPanel(String tab) {
        DcFieldList listRight = new DcFieldList();
        listRight.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        listRight.addMouseListener(new ListMouseListener(ListMouseListener._LEFT));
        listsRight.put(tab, listRight);
       
        JScrollPane scrollerRight = new JScrollPane(listRight);
        scrollerRight.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        scrollerRight.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
View Full Code Here

Examples of nu.fw.jeti.plugins.buddyspacemaps.editor.BSJIDLabel.addMouseListener()

                int y = Math.round(i.getLatFloat()*newScale + newOffsetY - h/2);
                //mainPanel.add(jidLabel, new AbsoluteConstraints(x, y, w, h));
                //mainPanel.add(jidLabel, JLayeredPane.DEFAULT_LAYER, layerNum);
                mainPanel.add(jidLabel, new Integer(layerNum));
                jidLabel.setBounds(x + insets.left, y + insets.top, w, h);
                jidLabel.addMouseListener(this);
                registerJIDLabel(jidLabel);
            }
            // else if it's cluster
            else if (o instanceof ClusterTag) {
                ClusterTag c = (ClusterTag) o;
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.