Exemple #1
0
        public static void scrollToVisible(JTable paramJTable, int paramInt1, int paramInt2)
        {
            if (!(paramJTable.Parent is JViewport))
            {
                return;
            }
            JViewport jViewport = (JViewport)paramJTable.Parent;
            Rectangle rectangle = paramJTable.getCellRect(paramInt1, paramInt2, true);
            Point     point     = jViewport.ViewPosition;

            rectangle.setLocation(rectangle.x - point.x, rectangle.y - point.y);
            paramJTable.scrollRectToVisible(rectangle);
            jViewport.scrollRectToVisible(rectangle);
        }