本文整理了Java中javax.swing.JTable.updateUI()
方法的一些代码示例,展示了JTable.updateUI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.updateUI()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:updateUI
暂无
代码示例来源:origin: checkstyle/checkstyle
/**
* Overridden to message super and forward the method to the tree.
* Since the tree is not actually in the component hierarchy it will
* never receive this unless we forward it in this manner.
*/
@Override
public void updateUI() {
super.updateUI();
if (tree != null) {
tree.updateUI();
}
// Use the tree's default foreground and background colors in the
// table.
LookAndFeel.installColorsAndFont(this, "Tree.background",
"Tree.foreground", "Tree.font");
}
代码示例来源:origin: marytts/marytts
Rectangle cellRect = jTable_PromptSet.getCellRect(row + 4, column, false);
jTable_PromptSet.scrollRectToVisible(cellRect);
jTable_PromptSet.updateUI();
} catch (Exception ex) {
ex.printStackTrace();
代码示例来源:origin: bcdev/beam
public void callback() {
repositoryTable.updateUI();
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void updateUI() {
super.updateUI();
//Initialize keys and actions after updateUI; the UI will overwrite
//arrow key actions if this is done in the constructor
initKeysAndActions();
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
@Override public void updateUI() {
try {
super.updateUI();
} catch (Throwable t) {
printStackTrace(t);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void updateUI() {
super.updateUI();
//Initialize keys and actions after updateUI; the UI will overwrite
//arrow key actions if this is done in the constructor
initKeysAndActions();
}
代码示例来源:origin: stackoverflow.com
private static void addRowToJTable(JTable theTable, Object[] rowString) {
JTable tbl = (JTable) theTable;
DefaultTableModel model = (DefaultTableModel) tbl.getModel();
model.addRow(rowString);
tbl.updateUI();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void updateUI() {
super.updateUI();
//Initialize keys and actions after updateUI; the UI will overwrite
//arrow key actions if this is done in the constructor
initKeysAndActions();
}
代码示例来源:origin: aterai/java-swing-tips
@Override public void updateUI() {
super.updateUI();
getColumnModel().getColumn(2).setCellRenderer(new AlignDecimalCellRenderer());
}
};
代码示例来源:origin: sc.fiji/TrakEM2_
public void run() {
try {
fpr.table.updateUI();
fpr.table.repaint();
fpr.frame.pack();
} catch (Exception e) { IJError.print(e); }
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
/**
* Overridden to message super and forward the method to the tree. Since
* the tree is not actually in the component hieachy it will never receive
* this unless we forward it in this manner.
*/
public void updateUI() {
super.updateUI();
if (tree != null) {
tree.updateUI();
setTreeUIVariables();
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
@Override
public void updateUI() {
if (tableLines != null && tableLines.getParent() == null) {
tableLines.updateUI();
}
super.updateUI();
}
代码示例来源:origin: org.cytoscape/swing-util-api
/**
* Overridden to message super and forward the method to the tree. Since the
* tree is not actually in the component hierarchy it will never receive this
* unless we forward it in this manner.
*/
public void updateUI() {
super.updateUI();
if (tree != null)
tree.updateUI();
// Use the tree's default foreground and background colors in the
// table.
LookAndFeel.installColorsAndFont(this, "Tree.background", "Tree.foreground", "Tree.font");
}
代码示例来源:origin: cytoscape/application
/**
* Overridden to message super and forward the method to the tree. Since the
* tree is not actually in the component hieachy it will never receive this
* unless we forward it in this manner.
*/
public void updateUI() {
super.updateUI();
if (tree != null) {
tree.updateUI();
}
// Use the tree's default foreground and background colors in the
// table.
LookAndFeel.installColorsAndFont(this, "Tree.background", "Tree.foreground", "Tree.font");
}
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
/**
* Overridden to message super and forward the method to the tree.
* Since the tree is not actually in the component hieachy it will
* never receive this unless we forward it in this manner.
*/
public void updateUI() {
super.updateUI();
if(tree != null) {
tree.updateUI();
}
// Use the tree's default foreground and background colors in the
// table.
LookAndFeel.installColorsAndFont(this, "Tree.background",
"Tree.foreground", "Tree.font");
}
代码示例来源:origin: com.github.tntim96/rhino
/**
* Overridden to message super and forward the method to the tree.
* Since the tree is not actually in the component hierarchy it will
* never receive this unless we forward it in this manner.
*/
@Override
public void updateUI() {
super.updateUI();
if(tree != null) {
tree.updateUI();
}
// Use the tree's default foreground and background colors in the
// table.
LookAndFeel.installColorsAndFont(this, "Tree.background",
"Tree.foreground", "Tree.font");
}
代码示例来源:origin: net.java.abeille/abeille
public void updateUI() {
super.updateUI();
if (m_table != null) {
m_table.updateUI();
m_table.getTableHeader().updateUI();
}
if (m_renderer != null)
m_renderer.updateUI();
if (m_editor != null)
m_editor.updateUI();
}
代码示例来源:origin: com.fifesoft.rtext/fife.common
/**
* Overridden to refresh our cell renderers on LAF changes.
*/
@Override
public void updateUI() {
super.updateUI();
TableColumnModel tcm = getColumnModel();
for (int i=0; i<getColumnCount(); i++) {
TableCellRenderer r = tcm.getColumn(i).getCellRenderer();
if (r instanceof JComponent) {
((JComponent)r).updateUI();
}
}
}
代码示例来源:origin: de.sciss/jtreetable
public void updateUI() {
sortWidth = -1;
noFocusBorder = null;
ltrBorder = null;
rtlBorder = null;
installDefaults();
tree.updateUI();
table.updateUI();
defaultTreeCellRenderer.updateUI();
updateTreeClientProperties(tree);
treeTableCellRenderer = createCellRenderer();
tree.setCellRenderer(treeTableCellRenderer);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
private void addFilterSet(Filter filter, FilterEvent.Type action, int numLeft) {
model.addRow(filter.getName(), action.toString(), numLeft);
table.updateUI();
this.repaint();
}
内容来源于网络,如有侵权,请联系作者删除!