Examples of rowAtPoint()


Examples of javax.swing.JTable.rowAtPoint()

                params.put( "node", new ParameterHolder(null) );
            }
            // TF:23/9/07:We need to return the X and Y coordinates with respect to the cell, not the table. Also, we need
            // to change the child to the renderer or editor for that cell.
            Point loc = new Point(X, Y);
            int row = table.rowAtPoint(loc);
            int column = table.columnAtPoint(loc);
            // TF:27/9/07:Made the row and column 1-based indexes instead of 0-based
            params.put( "row", new ParameterHolder(row+1) );
            params.put( "column", new ParameterHolder(column+1) );
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

            // click should be handled by the editor and we shouldn't repost it here.
            boolean postEvent = true;
            if (e.getComponent() instanceof JTable) {
              JTable table = (JTable)e.getComponent();
              int column = table.columnAtPoint(e.getPoint());
              int row = table.rowAtPoint(e.getPoint());
              if (table.isCellEditable(row, column)) {
                postEvent = false;
              }
            }
            if (postEvent && (e.getComponent() instanceof Graphic || e.getComponent().isEnabled())) {
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

    /** Normally, a click in a table results in selection of a given cell. */
    protected Step createClick(Component target, int x, int y,
                               int mods, int count) {
        JTable table = (JTable)target;
        Point where = new Point(x, y);
        int row = table.rowAtPoint(where);
        int col = table.columnAtPoint(where);
        ComponentReference cr = getResolver().addComponent(target);
        String methodName = "actionSelectCell";
        ArrayList args = new ArrayList();
        args.add(cr.getID());
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

        csaAttackerPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
                mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
                mCol = csaAttackerPanel.getModel().convertEnabledColToRealCol(mCol);
                tableDoubleClicked();
            }
        });
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

        csaBlockerPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
                mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
                mCol = csaBlockerPanel.getModel().convertEnabledColToRealCol(mCol);
                tableDoubleClicked();
            }
        });
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

            csaCombatFormationPanel.setDoubleClickAction(new DoubleClickAction()
            {
                public void doIt()
                {
                    JTable table = (JTable) evt.getSource();
                    mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
                    mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
                    mCol = csaCombatFormationPanel.getModel().convertEnabledColToRealCol(mCol);
                    tableDoubleClicked();
                }
            });
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

                    if (locIndex >= 0) {
                        jList.setSelectedIndex(locIndex);
                    }
                } else if (e.getSource() instanceof JTable) {
                    JTable jTable = (JTable) e.getSource();
                    int rowIndex = jTable.rowAtPoint(e.getPoint());
                    if (rowIndex >= 0) {
                        jTable.addRowSelectionInterval(rowIndex, rowIndex);
                    }               
                }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

                    if (locIndex >= 0) {
                        jList.setSelectedIndex(locIndex);
                    }
                } else if (e.getSource() instanceof JTable) {
                    JTable jTable = (JTable) e.getSource();
                    int rowIndex = jTable.rowAtPoint(e.getPoint());
                    if (rowIndex >= 0) {
                        jTable.addRowSelectionInterval(rowIndex, rowIndex);
                    }               
                }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

                    if (locIndex >= 0) {
                        jList.setSelectedIndex(locIndex);
                    }
                } else if (e.getSource() instanceof JTable) {
                    JTable jTable = (JTable) e.getSource();
                    int rowIndex = jTable.rowAtPoint(e.getPoint());
                    if (rowIndex >= 0) {
                        jTable.addRowSelectionInterval(rowIndex, rowIndex);
                    }               
                }
View Full Code Here

Examples of javax.swing.JTable.rowAtPoint()

                    if (locIndex >= 0) {
                        jList.setSelectedIndex(locIndex);
                    }
                } else if (e.getSource() instanceof JTable) {
                    JTable jTable = (JTable) e.getSource();
                    int rowIndex = jTable.rowAtPoint(e.getPoint());
                    if (rowIndex >= 0) {
                        jTable.addRowSelectionInterval(rowIndex, rowIndex);
                    }               
                }
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.