Java Code Examples for java.awt.Frame#getTitle()
The following examples show how to use
java.awt.Frame#getTitle() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XFramePeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 2
Source File: XFramePeer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 3
Source File: XFramePeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 4
Source File: XFramePeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 5
Source File: XFramePeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 6
Source File: XFramePeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = XWindowAttributesData.AWT_DECOR_ALL; } else { winAttr.decorations = XWindowAttributesData.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 7
Source File: XFramePeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 8
Source File: XFramePeer.java From hottub with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 9
Source File: XFramePeer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 10
Source File: XFramePeer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 11
Source File: XFramePeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 12
Source File: XFramePeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 13
Source File: XFramePeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
void preInit(XCreateWindowParams params) { super.preInit(params); Frame target = (Frame)(this.target); // set the window attributes for this Frame winAttr.initialState = target.getExtendedState(); state = 0; undecorated = Boolean.valueOf(target.isUndecorated()); winAttr.nativeDecor = !target.isUndecorated(); if (winAttr.nativeDecor) { winAttr.decorations = winAttr.AWT_DECOR_ALL; } else { winAttr.decorations = winAttr.AWT_DECOR_NONE; } winAttr.functions = MWMConstants.MWM_FUNC_ALL; winAttr.isResizable = true; // target.isResizable(); winAttr.title = target.getTitle(); winAttr.initialResizability = target.isResizable(); if (log.isLoggable(PlatformLogger.Level.FINE)) { log.fine("Frame''s initial attributes: decor {0}, resizable {1}, undecorated {2}, initial state {3}", Integer.valueOf(winAttr.decorations), Boolean.valueOf(winAttr.initialResizability), Boolean.valueOf(!winAttr.nativeDecor), Integer.valueOf(winAttr.initialState)); } }
Example 14
Source File: CharacterSheet.java From gcs with Mozilla Public License 2.0 | 5 votes |
@Override public String getPrintJobTitle() { Dockable dockable = UIUtilities.getAncestorOfType(this, Dockable.class); if (dockable != null) { return dockable.getTitle(); } Frame frame = UIUtilities.getAncestorOfType(this, Frame.class); if (frame != null) { return frame.getTitle(); } return mCharacter.getProfile().getName(); }
Example 15
Source File: WebLink.java From visualvm with GNU General Public License v2.0 | 5 votes |
private static synchronized String getSourceId() { if (sourceId == null) { Frame mainWindow = WindowManager.getDefault().getMainWindow(); if (mainWindow == null) sourceId = "VisualVM (Unknown Version)"; // NOI18N else { String sourceName = mainWindow.getTitle(); if (sourceName == null) sourceId = "VisualVM (Unknown Version)"; // NOI18N else sourceId = "?" + sourceName.trim().replace(" ", "_"); // NOI18N } } return sourceId; }
Example 16
Source File: WindowsMenu.java From mzmine2 with GNU General Public License v2.0 | 4 votes |
FrameMenuItem(Frame window, ActionListener listener) { super(window.getTitle()); addActionListener(listener); this.window = window; }