java.awt.Window.isValid()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中java.awt.Window.isValid()方法的一些代码示例,展示了Window.isValid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.isValid()方法的具体详情如下:
包路径:java.awt.Window
类名称:Window
方法名:isValid

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()) {

相关文章

Window类方法