/** * Returns the Frame rendering in. This will return null if the * <code>JRootPane</code> is not contained in a <code>Frame</code>. * * @return Frame. */ private Frame getFrame() { Window window = this.getWindow(); if (window instanceof Frame) { return (Frame) window; } return null; }
Window w = this.getWindow();
/** * Returns the Frame rendering in. This will return null if the * <code>JRootPane</code> is not contained in a <code>Frame</code>. * * @return Frame. */ private Frame getFrame() { Window window = this.getWindow(); if (window instanceof Frame) { return (Frame) window; } return null; }
Window w = this.getWindow();
/** * Returns the String to display as the title. * * @return Display title. */ private String getTitle() { Window w = this.getWindow(); if (w instanceof Frame) { return ((Frame) w).getTitle(); } if (w instanceof Dialog) { return ((Dialog) w).getTitle(); } return null; }
/** * Returns the String to display as the title. * * @return Display title. */ private String getTitle() { Window w = this.getWindow(); if (w instanceof Frame) { return ((Frame) w).getTitle(); } if (w instanceof Dialog) { return ((Dialog) w).getTitle(); } return null; }
/** * Updates the application icon. */ private void updateAppIcon() { Window window = getWindow(); if (window == null) { this.appIcon = null; return; } java.util.List<Image> icons = window.getIconImages(); if (icons.size() == 0) { this.appIcon = null; } else { int prefSize = SubstanceSizeUtils.getTitlePaneIconSize(); this.appIcon = SubstanceCoreUtilities.getScaledIconImage(icons, prefSize, prefSize); } }
/** * Updates the application icon. */ private void updateAppIcon() { Window window = getWindow(); if (window == null) { this.appIcon = null; return; } this.appIcon = null; while (window != null && appIcon == null) { java.util.List<Image> icons = window.getIconImages(); if (icons.size() == 0) { window = window.getOwner(); } else { int prefSize = SubstanceSizeUtils.getTitlePaneIconSize(); this.appIcon = SubstanceCoreUtilities.getScaledIconImage(icons, prefSize, prefSize); } } }
Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane .getComponentOrientation().isLeftToRight() : window
Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane .getComponentOrientation().isLeftToRight() : window
Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane .getComponentOrientation().isLeftToRight() : window
Window window = this.getWindow(); boolean leftToRight = (window == null) ? rootPane .getComponentOrientation().isLeftToRight() : window