本文整理了Java中javax.swing.JWindow.dispose()
方法的一些代码示例,展示了JWindow.dispose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JWindow.dispose()
方法的具体详情如下:
包路径:javax.swing.JWindow
类名称:JWindow
方法名:dispose
暂无
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Disposes of this window.
*/
@Override
public void dispose() {
//System.out.println("[DEBUG]: Disposing...");
Container cp = getContentPane();
for (int i=0; i<cp.getComponentCount(); i++) {
// Okay if listener is already removed
cp.getComponent(i).removeMouseListener(tipListener);
}
ft.removeListeners();
super.dispose();
}
代码示例来源:origin: igniterealtime/Spark
public void contactItemClicked(ContactItem item) {
if (window != null) {
window.dispose();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
private void disposeDelegate() {
if (_delegate != null) {
_delegate.dispose();
_delegate = null;
}
}
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void mouseClicked(MouseEvent e) {
m_previewWindow.dispose();
m_previewWindow = null;
}
});
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if (m_previewWindow != null) {
m_previewWindow.dispose();
m_previewWindow = null;
m_previewTimer = null;
}
}
});
代码示例来源:origin: igniterealtime/Spark
public void contactItemDoubleClicked(ContactItem item) {
if (window != null) {
window.dispose();
}
}
});
代码示例来源:origin: Waikato/weka-trunk
@Override
public void mouseClicked(MouseEvent e) {
m_previewWindow.dispose();
m_previewWindow = null;
}
});
代码示例来源:origin: Waikato/weka-trunk
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if (m_previewWindow != null) {
m_previewWindow.dispose();
m_previewWindow = null;
m_previewTimer = null;
}
}
});
代码示例来源:origin: org.bitbucket.goalhub.simpleide/jedit
public void dispose()
{
win.dispose();
} //}}}
代码示例来源:origin: cytoscape/application
public void mouseClicked(MouseEvent e) {
window.dispose();
timer.stop();
}
代码示例来源:origin: net.java.abeille/abeille
public void dispose() {
if (m_start_time > 0) {
try {
long current = System.currentTimeMillis();
if ((current - m_start_time) < WAIT_TIME) {
Thread.currentThread().sleep(WAIT_TIME - (current - m_start_time));
}
} catch (Exception e) {
}
}
super.dispose();
}
代码示例来源:origin: igniterealtime/Spark
public void dispose() {
window.setVisible(false);
contactItem = null;
window.dispose();
}
代码示例来源:origin: com.google.code.validationframework/validationframework-swing
@Override
public void dispose() {
owner.removeAncestorListener(locationAdapter);
owner.removeComponentListener(locationAdapter);
super.dispose();
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
public void dispose()
{
if( _window != null )
{
_window.setEnabled( true );
}
setVisible( false );
super.dispose();
}
代码示例来源:origin: google/sagetv
public void actionPerformed(ActionEvent evt)
{
if (Sage.getBoolean("dispose_windows", false))
poppy.dispose();
else
poppy.setVisible(false);
}
});
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
/**
* Disposes of this window.
*/
public void dispose() {
//System.out.println("[DEBUG]: Disposing...");
Container cp = getContentPane();
for (int i = 0; i < cp.getComponentCount(); i++) {
// Okay if listener is already removed
cp.getComponent(i).removeMouseListener(tipListener);
}
ft.removeListeners();
super.dispose();
}
代码示例来源:origin: com.fifesoft/languagesupport
@Override
public void dispose() {
listener.uninstall();
super.dispose();
// Force refocus of text area to prevent NPE in GoToMemberAction's
// (TextAction's) getTextComponent(ActinEvent) when a different
// component is focused and this action is executed twice.
textArea.requestFocusInWindow();
}
代码示例来源:origin: google/sagetv
public void actionPerformed(ActionEvent evt)
{
if (Sage.getBoolean("dispose_windows", false))
poppy.dispose();
else
poppy.setVisible(false);
taskbarAction(true, 0, 0);
}
});
代码示例来源:origin: google/sagetv
public void actionPerformed(ActionEvent evt)
{
if (Sage.getBoolean("dispose_windows", false))
poppy.dispose();
else
poppy.setVisible(false);
SageTV.exit();
}
});
代码示例来源:origin: google/sagetv
static void hideSplash()
{
if (splashWindow != null)
{
splashWindow.setVisible(false);
splashWindow.removeAll();
splashWindow.setBounds(0, 0, 0, 0);
splashWindow.dispose();
splashWindow = null;
}
}
}
内容来源于网络,如有侵权,请联系作者删除!