本文整理了Java中javax.swing.JInternalFrame.getGlassPane()
方法的一些代码示例,展示了JInternalFrame.getGlassPane()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.getGlassPane()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:getGlassPane
暂无
代码示例来源:origin: antlr/antlrworks
public Component getGlassPane() {
if(useDesktop) {
return jInternalFrame.getGlassPane();
} else {
return jFrame.getGlassPane();
}
}
代码示例来源:origin: org.jspresso.framework/jspresso-swing-application
private boolean doExecute(IAction action, Map<String, Object> context) {
JComponent sourceComponent = (JComponent) context.get(ActionContextConstants.SOURCE_COMPONENT);
Component windowOrInternalFrame = null;
if (sourceComponent != null) {
windowOrInternalFrame = SwingUtil.getWindowOrInternalFrame(sourceComponent);
}
if (windowOrInternalFrame instanceof JFrame) {
((JFrame) windowOrInternalFrame).getGlassPane().setVisible(true);
} else if (windowOrInternalFrame instanceof JInternalFrame) {
((JInternalFrame) windowOrInternalFrame).getGlassPane().setVisible(true);
} else if (windowOrInternalFrame instanceof JDialog) {
((JDialog) windowOrInternalFrame).getGlassPane().setVisible(true);
}
waitTimer.startTimer(sourceComponent);
try {
return super.execute(action, context);
} finally {
if (windowOrInternalFrame instanceof JFrame) {
((JFrame) windowOrInternalFrame).getGlassPane().setVisible(false);
} else if (windowOrInternalFrame instanceof JInternalFrame) {
((JInternalFrame) windowOrInternalFrame).getGlassPane().setVisible(false);
} else if (windowOrInternalFrame instanceof JDialog) {
((JDialog) windowOrInternalFrame).getGlassPane().setVisible(false);
}
waitTimer.stopTimer();
}
}
代码示例来源:origin: org.jspresso/jspresso-swing-application
((JFrame) windowOrInternalFrame).getGlassPane().setVisible(true);
} else if (windowOrInternalFrame instanceof JInternalFrame) {
((JInternalFrame) windowOrInternalFrame).getGlassPane().setVisible(true);
} else if (windowOrInternalFrame instanceof JDialog) {
((JDialog) windowOrInternalFrame).getGlassPane().setVisible(true);
((JFrame) windowOrInternalFrame).getGlassPane().setVisible(false);
} else if (windowOrInternalFrame instanceof JInternalFrame) {
((JInternalFrame) windowOrInternalFrame).getGlassPane().setVisible(
false);
} else if (windowOrInternalFrame instanceof JDialog) {
代码示例来源:origin: stackoverflow.com
public void internalFrameActivated(InternalFrameEvent e) {
if (hasChildFrame() == true) {
getGlassPane().setVisible(true);
grabFocus();
} else {
getGlassPane().setVisible(false);
public void internalFrameDeactivated(InternalFrameEvent e) {
if (hasChildFrame() == true) {
getGlassPane().setVisible(true);
grabFocus();
} else {
getGlassPane().setVisible(false);
getGlassPane().setVisible(false);
getGlassPane().setVisible(false);
if (focusOwner != null) {
java.awt.EventQueue.invokeLater(new Runnable() {
getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
setChildFrame(null);
focusOwner = (JComponent) getFocusOwner();
grabFocus();
getGlassPane().setVisible(true);
getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: stackoverflow.com
public void internalFrameActivated(InternalFrameEvent e) {
if (hasChildFrame() == true) {
getGlassPane().setVisible(true);
grabFocus();
} else {
getGlassPane().setVisible(false);
getGlassPane().setVisible(false);
try {
setSelected(true);
getGlassPane().setVisible(false);
if (focusOwner != null) {
java.awt.EventQueue.invokeLater(new Runnable() {
focusOwner.grabFocus();
getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
setChildFrame(null);
getDesktopPane().setSelectedFrame(this);
focusOwner = (JComponent) getMostRecentFocusOwner();
grabFocus();
getGlassPane().setVisible(true);
getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
代码示例来源:origin: org.jclarion/clarion-runtime
window.getGlassPane().setVisible(false);
desktopPane.remove(shadow);
内容来源于网络,如有侵权,请联系作者删除!