Java JTable Scroll getScrollPane(JTable myTable)

Here you can find the source of getScrollPane(JTable myTable)

Description

get Scroll Pane

License

Open Source License

Declaration

public static JScrollPane getScrollPane(JTable myTable) 

Method Source Code

//package com.java2s;

import javax.swing.JScrollPane;
import javax.swing.JTable;

public class Main {

    public static JScrollPane getScrollPane(JTable myTable) {
        JScrollPane scroll = new JScrollPane(myTable,
                JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        myTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        return scroll;
    }//from w  w  w. j  a va  2s  . c om
}

Related

  1. addHorizontalScrollBar(JTable table, JScrollPane pane)
  2. AutoScrollTable(final JTable table_packets)
  3. createTableScrollPane(final JTable table)
  4. findScrollPane(JTable p_Table)
  5. makeTransparant(JTable table, JScrollPane scrollPane)
  6. scroll(JTable table, int rowIndex, int vColIndex)
  7. scrollToCenter(JTable table, int rowIndex, int vColIndex)
  8. scrollToLastSelectedRow(final JTable table)