本文整理匯總了Java中javax.swing.plaf.basic.BasicTableUI類的典型用法代碼示例。如果您正苦於以下問題:Java BasicTableUI類的具體用法?Java BasicTableUI怎麽用?Java BasicTableUI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BasicTableUI類屬於javax.swing.plaf.basic包,在下文中一共展示了BasicTableUI類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testGetSetUpdateUI
import javax.swing.plaf.basic.BasicTableUI; //導入依賴的package包/類
public void testGetSetUpdateUI() throws Exception {
assertTrue(table.getUI() instanceof BasicTableUI);
TableUI ui = new BasicTableUI();
table.setUI(ui);
assertSame(ui, table.getUI());
table.updateUI();
assertNotSame(ui, table.getUI());
}
示例2: createUI
import javax.swing.plaf.basic.BasicTableUI; //導入依賴的package包/類
public static ComponentUI createUI(JComponent c) {
return new BasicTableUI();
}
示例3: MyTreeTable
import javax.swing.plaf.basic.BasicTableUI; //導入依賴的package包/類
public MyTreeTable(MyTreeTableModel treeTableModel, boolean showRoot) {
super();
this.showRoot = showRoot;
setUI(new BasicTableUI());
setTreeModel(treeTableModel);
}