本文整理了Java中java.awt.event.WindowListener.windowActivated()
方法的一些代码示例,展示了WindowListener.windowActivated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WindowListener.windowActivated()
方法的具体详情如下:
包路径:java.awt.event.WindowListener
类名称:WindowListener
方法名:windowActivated
[英]Invoked when the Window is set to be the active Window. Only a Frame can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Framethat is an owner of the focused Window.
[中]当窗口设置为活动窗口时调用。只有一个框架可以作为活动窗口。本机窗口系统可能会使用特殊的装饰(例如高亮显示的标题栏)来表示活动窗口或其子窗口。活动窗口始终是聚焦窗口,或者是作为聚焦窗口所有者的第一个帧。
代码示例来源:origin: geotools/geotools
/** Invoked when an internal frame is activated. */
public void internalFrameActivated(InternalFrameEvent event) {
listener.windowActivated(null);
}
代码示例来源:origin: org.geotools/gt-metadata
/**
* Invoked when an internal frame is activated.
*/
public void internalFrameActivated(InternalFrameEvent event) {
listener.windowActivated(null);
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Invoked when an internal frame is activated.
*/
public void internalFrameActivated(InternalFrameEvent event) {
listener.windowActivated(null);
}
代码示例来源:origin: stackoverflow.com
e -> System.out.println("Window closed"));
w.windowActivated(null);
w.windowClosed(null);
内容来源于网络,如有侵权,请联系作者删除!