public class LF5SwingUtils
extends java.lang.Object
构造器和说明 |
---|
LF5SwingUtils() |
限定符和类型 | 方法和说明 |
---|---|
protected static boolean |
contains(int row,
javax.swing.table.TableModel model) |
static void |
makeScrollBarTrack(java.awt.Adjustable scrollBar)
Makes the specified Adjustable track if the view area expands and
the specified Adjustable is located near the of the view.
|
static void |
makeVerticalScrollBarTrack(javax.swing.JScrollPane pane)
Makes the vertical scroll bar of the specified JScrollPane
track if the view expands (e.g. if rows are added to an underlying
table).
|
protected static void |
moveAdjustable(int location,
java.awt.Adjustable scrollBar) |
protected static void |
repaintLater(javax.swing.JComponent component)
Work around for JTable/viewport bug.
|
static void |
selectRow(int row,
javax.swing.JTable table,
javax.swing.JScrollPane pane)
Selects a the specified row in the specified JTable and scrolls
the specified JScrollpane to the newly selected row.
|
protected static void |
selectRow(int row,
javax.swing.ListSelectionModel model) |
public static void selectRow(int row, javax.swing.JTable table, javax.swing.JScrollPane pane)
table
- should belong to the specified JScrollPanepublic static void makeScrollBarTrack(java.awt.Adjustable scrollBar)
public static void makeVerticalScrollBarTrack(javax.swing.JScrollPane pane)
protected static boolean contains(int row, javax.swing.table.TableModel model)
protected static void selectRow(int row, javax.swing.ListSelectionModel model)
protected static void moveAdjustable(int location, java.awt.Adjustable scrollBar)
protected static void repaintLater(javax.swing.JComponent component)