Package javax.swing

Examples of javax.swing.JTable.scrollRectToVisible()


        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here


        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here

        return this.value;
    }

    public void performAction() {
        JTable table = (JTable)this._component;
            table.scrollRectToVisible(table.getCellRect(value, 0, true));
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new ArrayTopRow(comp, value));
    }
View Full Code Here

        // para poder desplazar la ultima fila a la altura del Header
        tableView.setPreferredSize(size);
        tableView.revalidate();
        Rectangle rectRes = new Rectangle(0, 0, 0, 0);//reset

        tableView.scrollRectToVisible(rectRes);
        Rectangle rect = new Rectangle(0, row * rowHeight, tableWidth, tableHeight * 2);

        tableView.scrollRectToVisible(rect);

        /*int y  = getViewport().getViewPosition().y;
View Full Code Here

        Rectangle rectRes = new Rectangle(0, 0, 0, 0);//reset

        tableView.scrollRectToVisible(rectRes);
        Rectangle rect = new Rectangle(0, row * rowHeight, tableWidth, tableHeight * 2);

        tableView.scrollRectToVisible(rect);

        /*int y  = getViewport().getViewPosition().y;
         y += getViewport().getExtentSize().getHeight();
         int row = table.rowAtPoint(new Point(0,y));
         return (row > -1) ? row : (
View Full Code Here

                }
                // 自動選択
                selectionModel.addSelectionInterval(first, last);
                // 選択した行が表示されるようにスクロールする
                Rectangle r = table.getCellRect(first, last, true);
                table.scrollRectToVisible(r);
            }
           
            selectionModel.setValueIsAdjusting(false);

        } else {           
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.