本文整理汇总了Java中org.jdesktop.swingx.JXTreeTable.setColumnControlVisible方法的典型用法代码示例。如果您正苦于以下问题:Java JXTreeTable.setColumnControlVisible方法的具体用法?Java JXTreeTable.setColumnControlVisible怎么用?Java JXTreeTable.setColumnControlVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jdesktop.swingx.JXTreeTable
的用法示例。
在下文中一共展示了JXTreeTable.setColumnControlVisible方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initComponents
import org.jdesktop.swingx.JXTreeTable; //导入方法依赖的package包/类
private void initComponents() {
setLayout(new BorderLayout());
table = new JXTable();
list = new JXList(true);
tree = new JXTree();
treeTable = new JXTreeTable();
table.setColumnControlVisible(true);
treeTable.setColumnControlVisible(true);
JTabbedPane tab = new JTabbedPane();
addTab(tab, table, "tableTabTitle", true);
addTab(tab, list, "listTabTitle", true);
// addTab(tab, tree, "HighlighterExtDemo.tree", true);
// addTab(tab, treeTable, "HighlighterExtDemo.treeTable", true);
add(tab);
extendedMarkerBox = new JCheckBox();
extendedMarkerBox.setName("extendedMarkerBox");
raceButton = new JButton();
raceButton.setName("playButton");
fadeInButton = new JButton();
fadeInButton.setName("fadeInButton");
JPanel control = new JPanel();
control.add(extendedMarkerBox);
control.add(raceButton);
control.add(fadeInButton);
add(control, BorderLayout.SOUTH);
}
示例2: initComponents
import org.jdesktop.swingx.JXTreeTable; //导入方法依赖的package包/类
private void initComponents() {
setLayout(new BorderLayout());
searchPanel = SearchFactory.getInstance().createFindBar();
add(searchPanel, BorderLayout.NORTH);
table = new JXTable();
table.setName("searchTable");
list = new JXList(true);
tree = new JXTree();
treeTable = new JXTreeTable();
table.setColumnControlVisible(true);
treeTable.setColumnControlVisible(true);
JTabbedPane tab = new JTabbedPane();
tab.setName("searchTabs");
addTab(tab, table, "tableTabTitle", true);
addTab(tab, list, "listTabTitle", true);
addTab(tab, tree, "treeTabTitle", true);
addTab(tab, treeTable, "treeTableTabTitle", true);
add(tab);
extendedMarkerBox = new JCheckBox();
extendedMarkerBox.setName("extendedMarkerBox");
painterBox = new JCheckBox();
painterBox.setName("painterBox");
JPanel control = new JPanel();
control.add(extendedMarkerBox);
control.add(painterBox);
add(control, BorderLayout.SOUTH);
}