vertical scroll bar in JTable
问题 I have one JTable with vertical scroll bar on it,when i added new row the scroll bar will move to the new row. The problem is scrollbar is visible in the frame but i can't scroll it. this is way i created jtable table = new javax.swing.JTable(){ public boolean isCellEditable(int rowIndex, int colIndex) { return false; //Disallow the editing of any cell } }; model = (DefaultTableModel) table.getModel(); table.setRowHeight(20); selectionModel = table.getSelectionModel(); selectionModel