Package java.awt.event

Examples of java.awt.event.MouseListener


    tm.setUrl(urlFilter);
    tm.loadData(fields);

    table = new JTable(tm);

    table.addMouseListener(new MouseListener() {

      public void mouseReleased(MouseEvent e)
      {
        if(e.getClickCount() == 2)
        {
View Full Code Here


          ViewPanel viewPanel = (ViewPanel) viewComponent;

          table = viewPanel.getTable();
          tm = (ViewTableModel) table.getModel();

          table.addMouseListener(new MouseListener() {

            public void mouseReleased(MouseEvent e)
            {
              Object rawId = tm.getValueAt(table.getSelectedRow(), 0);
View Full Code Here

      columnPanel.setLayout(layout);


      JButton btnColumn = new JButton("Columns");

      btnColumn.addMouseListener(new MouseListener() {

        public void mouseReleased(MouseEvent e)
        {
        }
View Full Code Here

    trafficTable.getColumnModel().getColumn(0).setMaxWidth(60);
    trafficTable.getColumnModel().getColumn(1).setMinWidth(120);
    trafficTable.getColumnModel().getColumn(1).setMaxWidth(120);
    //trafficTable.getColumnModel().getColumn(2).setMinWidth(600);

    trafficTable.addMouseListener(new MouseListener() {

      public void mouseReleased(MouseEvent e)
      {
        TrafficItem item = trafficTm.getRow(trafficTable.getSelectedRow());
View Full Code Here

       
        arbolExperimentos.getSelectionModel().setSelectionMode
            (TreeSelectionModel.SINGLE_TREE_SELECTION);

        //Listen for when the selection changes.
        arbolExperimentos.addMouseListener(new MouseListener() {
            @Override
            public void mouseClicked(MouseEvent e) {
                //Obtenemos el nodo seleccionado
                TreePath ramaNodoSeleccionado =
                        arbolExperimentos.getSelectionPath();
View Full Code Here

                new EscuchadorExperimentos());
        controlador.addControllerPoblacionListener(
                new EscuchadorPoblaciones());
       
        //Listen for when the selection changes.
        arbolExperimentos.addMouseListener(new MouseListener() {
            @Override
            public void mouseClicked(MouseEvent e) {
                //Obtenemos el nodo seleccionado
                TreePath ramaNodoSeleccionado =
                        arbolExperimentos.getSelectionPath();
View Full Code Here

        jl.setCellRenderer(new DirCellRenderer());
        jl.setVisibleRowCount(Settings.visibleFileRows);


        // add this becaus we need to fetch only doubleclicks
        MouseListener mouseListener = new MouseAdapter()
        {
            public void mousePressed(MouseEvent e)
            {
                if(JFtp.uiBlocked)
                {
View Full Code Here

        jl.setCellRenderer(new DirCellRenderer());
        jl.setVisibleRowCount(Settings.visibleFileRows);
        jl.setDropTarget(JFtp.statusP.jftp.dropTarget);

        // add this becaus we need to fetch only doubleclicks
        MouseListener mouseListener = new MouseAdapter()
        {
            public void mousePressed(MouseEvent e)
            {
                if(JFtp.uiBlocked)
                {
View Full Code Here

    fileList = new JList(files);
    fileList.setSelectedIndex(0);
    fileList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    MouseListener dblClickListener = new MouseAdapter() {
        public void mouseClicked(MouseEvent e) {
          if (e.getClickCount() == 2) {
            int dblClickIndex = fileList.locationToIndex(e.getPoint());
            if (dblClickIndex >= 0 &&
                dblClickIndex < files.length &&
View Full Code Here

                    directoryModel.setCurrentDirectory(getFileChooser().getCurrentDirectory());
                }
            }
        });

        MouseListener showPopupListener = new MouseAdapter() {
            public void mousePressed(final MouseEvent e) {
                processPopupMenu(e);
            }

            public void mouseReleased(final MouseEvent e) {
View Full Code Here

TOP

Related Classes of java.awt.event.MouseListener

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.