Package javax.swing

Examples of javax.swing.JTable.requestFocusInWindow()


            if (aph != null){
                JTable table = (JTable)aph.getObject();
                // TF:27/9/07:Row and columns will be 1-based, and we need them to be 0-based
                int row = ((ParameterHolder)ev.getParameter("row")).getInt()-1
                int col = ((ParameterHolder)ev.getParameter("column")).getInt()-1
                table.requestFocusInWindow();
                if (table.getCellEditor()!= null)
                    table.getCellEditor().cancelCellEditing();
                table.changeSelection(row, col,  false, false);
                //FormattedCellEditor ed = (FormattedCellEditor)table.getCellEditor(row, col);
                table.editCellAt(row, col);
View Full Code Here


            if (aph != null){
                JTable table = (JTable)aph.getObject();
                // TF:27/9/07:Row and columns will be 1-based, and we need them to be 0-based
                int row = ((ParameterHolder)ev.getParameter("row")).getInt()-1
                int col = ((ParameterHolder)ev.getParameter("column")).getInt()-1
                table.requestFocusInWindow();
                if (table.getCellEditor()!= null)
                    table.getCellEditor().cancelCellEditing();
                table.changeSelection(row, col,  false, false);
                //FormattedCellEditor ed = (FormattedCellEditor)table.getCellEditor(row, col);
                table.editCellAt(row, col);
View Full Code Here

            if (aph != null){
                JTable table = (JTable)aph.getObject();
                // TF:27/9/07:Row and columns will be 1-based, and we need them to be 0-based
                int row = ((ParameterHolder)ev.getParameter("row")).getInt()-1
                int col = ((ParameterHolder)ev.getParameter("column")).getInt()-1
                table.requestFocusInWindow();
                if (table.getCellEditor()!= null)
                    table.getCellEditor().cancelCellEditing();
                table.changeSelection(row, col,  false, false);
                //FormattedCellEditor ed = (FormattedCellEditor)table.getCellEditor(row, col);
                table.editCellAt(row, col);
View Full Code Here

            public void actionPerformed(ActionEvent e)
            {
              tabAction.actionPerformed(e);
             
                JTable table = (JTable)e.getSource();
                table.requestFocusInWindow();
            }
        };
        advancedTable.getActionMap().put(im.get(tab), tabActionWrapper);
        KeyStroke shiftTab = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK);
        final Action shiftTabAction = advancedTable.getActionMap().get(im.get(shiftTab));
View Full Code Here

            public void actionPerformed(ActionEvent e)
            {
              shiftTabAction.actionPerformed(e);
             
                JTable table = (JTable)e.getSource();
                table.requestFocusInWindow();
            }
        };
        advancedTable.getActionMap().put(im.get(shiftTab), shiftTabActionWrapper);
   
    //  0 = Columns
View Full Code Here

                                    components = viewport.getComponents();
                                    if (components != null && components.length > 0) {
                                        Component comp1 = components[0];
                                        if (comp1 instanceof JTable) {
                                            JTable table = (JTable) comp1;
                                            table.requestFocusInWindow();
                                        }
                                    }
                                }
                            }
                        }
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.