本文整理了Java中java.awt.Window.revalidate()
方法的一些代码示例,展示了Window.revalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.revalidate()
方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:revalidate
暂无
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* Apply user-changed settings
*
* @param settings the settings object that might (or might not) have been
*/
@Override
public void applySettings(Settings settings) {
m_summarizer.setInstances(m_currentInstances, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
代码示例来源:origin: Waikato/weka-trunk
/**
* Apply user-changed settings
*
* @param settings the settings object that might (or might not) have been
*/
@Override
public void applySettings(Settings settings) {
m_summarizer.setInstances(m_currentInstances, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
代码示例来源:origin: net.imagej/imagej-legacy
@Override
protected void hidePanel(final Container p) {
getParent().remove(p);
getParent().revalidate();
getParent().repaint();
final Window w = SwingUtilities.getWindowAncestor(this);
w.revalidate();
w.pack();
w.repaint();
}
};
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void mouseClicked(MouseEvent e) {
int index = m_history.getList().locationToIndex(e.getPoint());
if (index != -1) {
String name = m_history.getNameAtIndex(index);
// doPopup(name);
Object inst = m_history.getNamedObject(name);
if (inst instanceof Instances) {
m_currentInstances = (Instances) inst;
m_summarizer.setInstances((Instances) inst, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
}
});
代码示例来源:origin: Waikato/weka-trunk
@Override
public void mouseClicked(MouseEvent e) {
int index = m_history.getList().locationToIndex(e.getPoint());
if (index != -1) {
String name = m_history.getNameAtIndex(index);
// doPopup(name);
Object inst = m_history.getNamedObject(name);
if (inst instanceof Instances) {
m_currentInstances = (Instances) inst;
m_summarizer.setInstances((Instances) inst, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
}
});
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting()) {
ListSelectionModel lm = (ListSelectionModel) e.getSource();
for (int i = e.getFirstIndex(); i <= e.getLastIndex(); i++) {
if (lm.isSelectedIndex(i)) {
// m_AttSummaryPanel.setAttribute(i);
if (i != -1) {
String name = m_history.getNameAtIndex(i);
Object inst = m_history.getNamedObject(name);
if (inst != null && inst instanceof Instances) {
m_currentInstances = (Instances) inst;
m_summarizer.setInstances((Instances) inst, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
break;
}
}
}
}
});
代码示例来源:origin: Waikato/weka-trunk
@Override
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting()) {
ListSelectionModel lm = (ListSelectionModel) e.getSource();
for (int i = e.getFirstIndex(); i <= e.getLastIndex(); i++) {
if (lm.isSelectedIndex(i)) {
// m_AttSummaryPanel.setAttribute(i);
if (i != -1) {
String name = m_history.getNameAtIndex(i);
Object inst = m_history.getNamedObject(name);
if (inst != null && inst instanceof Instances) {
m_currentInstances = (Instances) inst;
m_summarizer.setInstances((Instances) inst, getSettings());
m_summarizer.repaint();
m_parent.revalidate();
}
}
break;
}
}
}
}
});
内容来源于网络,如有侵权,请联系作者删除!