4632N/A boolean fDocumentEdited = false; // to indicate whether we should use the dirty document red dot.
4632N/A return fWhichButtonPressed;
4632N/A return fMouseOverPressedButton;
4632N/A// super.installUI(c); // Swing 1.1.1 has a bug in installUI - it doesn't check for null northPane
4632N/A c.setBorder(new CompoundUIBorder(fIsPallet ? paletteWindowShadow.get() : documentWindowShadow.get(), c.getBorder()));
4632N/A super.installDefaults();
4632N/A super.installListeners();
4632N/A super.uninstallListeners();
4725N/A return preferredSize;
4632N/A return new AquaBorderListener();
4632N/A // Basic sets the background of the contentPane to null so it can inherit JInternalFrame.setBackground
4632N/A if (replaceColor) frame.setBackground(UIManager.getColor("InternalFrame.optionDialogBackground"));
4632N/A if (replaceColor) frame.setBackground(UIManager.getColor("InternalFrame.paletteBackground"));
4632N/A // We don't get the borders from UIManager, in case someone changes them - this class will not work with
4632N/A // different borders. If they want different ones, they have to make their own InternalFrameUI class
4632N/A return fDocumentEdited;
4632N/A g.drawRect(insets.left - 2, insets.top - 2, frame.getWidth() - insets.left - insets.right + 4, frame.getHeight() - insets.top - insets.bottom + 4);
4632N/A if (didForwardEvent(e)) return;
4632N/A fRollover = (isTitleBarDraggableArea(e) && fAquaBorder.getWithinRolloverArea(i, e.getX(), e.getY()));
4632N/A if (didForwardEvent(e)) return;
4632N/A fDraggingFrame = false;
4632N/A fMouseOverPressedButton = false;
4632N/A fMouseOverPressedButton = false;
4632N/A if (discardRelease) {
4632N/A discardRelease = false;
4632N/A ((JFrame)frame.getTopLevelAncestor()).getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
4632N/A if (didForwardEvent(e)) return;
4632N/A final Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getX(), e.getY(), null);
4632N/A if (updatePressed(e)) { return; }
4632N/A if (isTitleBarDraggableArea(e)) {
4632N/A fDraggingFrame = true;
4632N/A discardRelease = true;
4632N/A fMouseOverPressedButton = true;
4632N/A final Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getX(), e.getY(), null);
4632N/A if (frame.isMaximum() || ((e.getModifiers() & InputEvent.BUTTON1_MASK) != InputEvent.BUTTON1_MASK)) {
4632N/A if (didForwardEvent(e)) return;
4632N/A if (isTryingToForwardEvent) return true; // we didn't actually...but we wound up back where we started.
4632N/A isTryingToForwardEvent = true;
4632N/A isTryingToForwardEvent = false;
4632N/A return didForwardEvent;
4632N/A if (fDraggingFrame) return false;
4632N/A final Point hitComponentPoint = SwingUtilities.convertPoint(pane, parentPoint, hitComponent);
4632N/A hitComponent.dispatchEvent(new MouseEvent(hitComponent, e.getID(), e.getWhen(), e.getModifiers(), hitComponentPoint.x, hitComponentPoint.y, e.getClickCount(), e.isPopupTrigger(), e.getButton()));
4632N/A ((javax.swing.JComponent)c).putClientProperty(AquaFocusHandler.FRAME_ACTIVE_PROPERTY, active);
4632N/A setPalette(false);
4632N/A } else if ("windowModified".equals(name) || CPlatformWindow.WINDOW_DOCUMENT_MODIFIED.equals(name)) {
4632N/A } else if ("resizable".equals(name) || "state".equals(name) || "iconable".equals(name) || "maximizable".equals(name) || "closable".equals(name)) {
4632N/A return getForegroundShadowBorder();
4632N/A public CompoundUIBorder(final Border inside, final Border outside) { super(inside, outside); }
4632N/A public boolean isBorderOpaque() {
4632N/A public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int w, final int h) {
4632N/A class ResizeBox extends JLabel implements MouseListener, MouseMotionListener, MouseWheelListener, ComponentListener, PropertyChangeListener, UIResource {
4632N/A addMouseListener(this);
4632N/A addMouseMotionListener(this);
4632N/A addMouseWheelListener(this);
4632N/A c.dispatchEvent(new MouseEvent(c, e.getID(), e.getWhen(), e.getModifiers(), pt.x, pt.y, e.getClickCount(), e.isPopupTrigger(), e.getButton()));
4632N/A if (frame.isResizable() && !frame.isMaximum() && testGrowboxPoint(e.getX(), e.getY(), getWidth(), getHeight())) {
4632N/A c.dispatchEvent(new MouseWheelEvent(c, e.getID(), e.getWhen(), e.getModifiers(), pt.x, pt.y, e.getClickCount(), e.isPopupTrigger(), e.getScrollType(), e.getScrollAmount(), e.getWheelRotation()));