本文整理了Java中java.awt.Window.isValid()
方法的一些代码示例,展示了Window.isValid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.isValid()
方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:isValid
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
public void mouseReleased(MouseEvent ev) {
if (dragCursor != 0 && window != null && !window.isValid()) {
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
window.validate();
getRootPane().repaint();
}
isMovingWindow = false;
dragCursor = 0;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf
public void mouseReleased(MouseEvent ev) {
if (dragCursor != 0 && window != null && !window.isValid()) {
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
window.validate();
getRootPane().repaint();
}
isMovingWindow = false;
dragCursor = 0;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void mouseReleased(MouseEvent ev)
{
if (dragCursor != 0 && window != null && !window.isValid())
{
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
window.validate();
getRootPane().repaint();
}
isMovingWindow = false;
dragCursor = 0;
}
代码示例来源:origin: khuxtable/seaglass
/**
* @see java.awt.event.MouseListener#mouseReleased(java.awt.event.MouseEvent)
*/
public void mouseReleased(MouseEvent ev) {
if (dragCursor != 0 && window != null && !window.isValid()) {
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
window.validate();
getRootPane().repaint();
}
isMovingWindow = false;
dragCursor = 0;
}
代码示例来源:origin: org.java.net.substance/substance
public void mouseReleased(MouseEvent ev) {
if ((this.dragCursor != 0)
&& (SubstanceRootPaneUI.this.window != null)
&& !SubstanceRootPaneUI.this.window.isValid()) {
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
SubstanceRootPaneUI.this.window.validate();
SubstanceRootPaneUI.this.getRootPane().repaint();
}
this.isMovingWindow = false;
this.dragCursor = 0;
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
public void mouseReleased(MouseEvent ev) {
if ((this.dragCursor != 0)
&& (SubstanceRootPaneUI.this.window != null)
&& !SubstanceRootPaneUI.this.window.isValid()) {
// Some Window systems validate as you resize, others won't,
// thus the check for validity before repainting.
SubstanceRootPaneUI.this.window.validate();
SubstanceRootPaneUI.this.getRootPane().repaint();
}
this.isMovingWindow = false;
this.dragCursor = 0;
}
代码示例来源:origin: com.jtattoo/JTattoo
getRootPane().updateUI();
resizingPanel = null;
} else if (dragCursor != 0 && !window.isValid()) {
内容来源于网络,如有侵权,请联系作者删除!