javax.swing.JInternalFrame.dispatchEvent()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(162)

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

JInternalFrame.dispatchEvent介绍

暂无

代码示例

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
 * Description of the Method
 * 
 * @param event Description of Parameter
 */
public void dispatchEvent(AWTEvent event) {
 frame.dispatchEvent(event);
}

代码示例来源:origin: khuxtable/seaglass

/**
 * Post a WINDOW_CLOSING-like event to the frame, so that it can be treated
 * like a regular Frame.
 *
 * @param frame the internal frame to be closed.
 */
protected void postClosingEvent(JInternalFrame frame) {
  InternalFrameEvent e = new InternalFrameEvent(frame, InternalFrameEvent.INTERNAL_FRAME_CLOSING);
  // Try posting event, unless there's a SecurityManager.
  if (JInternalFrame.class.getClassLoader() == null) {
    try {
      Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(e);
      return;
    } catch (SecurityException se) {
      // Use dispatchEvent instead.
    }
  }
  frame.dispatchEvent(e);
}

相关文章

JInternalFrame类方法