lemon
5 months ago
11 changed files with 122 additions and 36 deletions
@ -0,0 +1,30 @@
|
||||
package com.fr.design.gui.iscrollbar; |
||||
|
||||
import com.fine.theme.light.ui.FineTableScrollBarPaneUI; |
||||
|
||||
import javax.swing.JTable; |
||||
|
||||
/** |
||||
* jtable 垂直滚动条 |
||||
* |
||||
* @author lemon |
||||
* @since |
||||
* Created on |
||||
*/ |
||||
public class UIVerticalScrollBar extends UIScrollBar { |
||||
private static final String UI_CLASS_ID = "TableScrollBarUI"; |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public UIVerticalScrollBar() { |
||||
} |
||||
|
||||
public UIVerticalScrollBar(JTable table, int orientation) { |
||||
super(orientation); |
||||
this.setUI(new FineTableScrollBarPaneUI(table)); |
||||
} |
||||
|
||||
@Override |
||||
public String getUIClassID() { |
||||
return UI_CLASS_ID; |
||||
} |
||||
} |
@ -1,14 +1,19 @@
|
||||
package com.fr.design.gui.itable; |
||||
|
||||
import com.fine.theme.light.ui.FineTableHeaderUI; |
||||
|
||||
import javax.swing.JTable; |
||||
|
||||
public class SortableJTable extends JTable{ |
||||
private static final String UI_CLASS_ID = "FineTableHeaderUI"; |
||||
|
||||
|
||||
public SortableJTable(TableSorter tableModel){ |
||||
super(tableModel); |
||||
tableModel.setTableHeader(getTableHeader()); |
||||
setShowGrid(true); |
||||
getTableHeader().setUI(new FineTableHeaderUI()); |
||||
} |
||||
|
||||
@Override |
||||
public String getUIClassID() { |
||||
return UI_CLASS_ID; |
||||
} |
||||
} |
Loading…
Reference in new issue