/** * {@inheritDoc} */ @Override public Dimension preferredLayoutSize(Container parent) { Dimension pref = delegatePreferredLayoutSize(parent); if (statusBar != null && statusBar.isVisible()) { Dimension statusPref = statusBar.getPreferredSize(); pref.width = Math.max(pref.width, statusPref.width); pref.height += statusPref.height; } return pref; }
/** * {@inheritDoc} */ @Override public Dimension preferredLayoutSize(Container parent) { Dimension pref = delegatePreferredLayoutSize(parent); if (statusBar != null && statusBar.isVisible()) { Dimension statusPref = statusBar.getPreferredSize(); pref.width = Math.max(pref.width, statusPref.width); pref.height += statusPref.height; } return pref; }
/** * {@inheritDoc} */ @Override public Dimension preferredLayoutSize(Container parent) { Dimension pref = delegatePreferredLayoutSize(parent); if (statusBar != null && statusBar.isVisible()) { Dimension statusPref = statusBar.getPreferredSize(); pref.width = Math.max(pref.width, statusPref.width); pref.height += statusPref.height; } return pref; }
/** * {@inheritDoc} */ @Override public Dimension preferredLayoutSize(Container parent) { Dimension pref = delegatePreferredLayoutSize(parent); if (statusBar != null && statusBar.isVisible()) { Dimension statusPref = statusBar.getPreferredSize(); pref.width = Math.max(pref.width, statusPref.width); pref.height += statusPref.height; } return pref; }
/** * {@inheritDoc} */ @Override public Dimension preferredLayoutSize(Container parent) { Dimension pref = delegatePreferredLayoutSize(parent); if (statusBar != null && statusBar.isVisible()) { Dimension statusPref = statusBar.getPreferredSize(); pref.width = Math.max(pref.width, statusPref.width); pref.height += statusPref.height; } return pref; }
/** * {@inheritDoc} */ @Override public void layoutContainer(Container parent) { delegateLayoutContainer(parent); if (statusBar == null || !statusBar.isVisible()) return; Rectangle b = parent.getBounds(); Insets i = getInsets(); int w = b.width - i.right - i.left; // int h = b.height - i.top - i.bottom; Dimension statusPref = statusBar.getPreferredSize(); statusBar.setBounds(i.right, b.height - i.bottom - statusPref.height, w, statusPref.height); if (contentPane != null) { Rectangle bounds = contentPane.getBounds(); contentPane.setBounds(bounds.x, bounds.y, bounds.width, bounds.height - statusPref.height); } } }
/** * {@inheritDoc} */ @Override public void layoutContainer(Container parent) { delegateLayoutContainer(parent); if (statusBar == null || !statusBar.isVisible()) return; Rectangle b = parent.getBounds(); Insets i = getInsets(); int w = b.width - i.right - i.left; // int h = b.height - i.top - i.bottom; Dimension statusPref = statusBar.getPreferredSize(); statusBar.setBounds(i.right, b.height - i.bottom - statusPref.height, w, statusPref.height); if (contentPane != null) { Rectangle bounds = contentPane.getBounds(); contentPane.setBounds(bounds.x, bounds.y, bounds.width, bounds.height - statusPref.height); } } }
/** * {@inheritDoc} */ @Override public void layoutContainer(Container parent) { delegateLayoutContainer(parent); if (statusBar == null || !statusBar.isVisible()) return; Rectangle b = parent.getBounds(); Insets i = getInsets(); int w = b.width - i.right - i.left; // int h = b.height - i.top - i.bottom; Dimension statusPref = statusBar.getPreferredSize(); statusBar.setBounds(i.right, b.height - i.bottom - statusPref.height, w, statusPref.height); if (contentPane != null) { Rectangle bounds = contentPane.getBounds(); contentPane.setBounds(bounds.x, bounds.y, bounds.width, bounds.height - statusPref.height); } } }
/** * {@inheritDoc} */ @Override public void layoutContainer(Container parent) { delegateLayoutContainer(parent); if (statusBar == null || !statusBar.isVisible()) return; Rectangle b = parent.getBounds(); Insets i = getInsets(); int w = b.width - i.right - i.left; int h = b.height - i.top - i.bottom; Dimension statusPref = statusBar.getPreferredSize(); statusBar.setBounds(i.right, b.height - i.bottom - statusPref.height, w, statusPref.height); if (contentPane != null) { Rectangle bounds = contentPane.getBounds(); contentPane.setBounds(bounds.x, bounds.y, bounds.width, bounds.height - statusPref.height); } } }
/** * {@inheritDoc} */ @Override public void layoutContainer(Container parent) { delegateLayoutContainer(parent); if (statusBar == null || !statusBar.isVisible()) return; Rectangle b = parent.getBounds(); Insets i = getInsets(); int w = b.width - i.right - i.left; // int h = b.height - i.top - i.bottom; Dimension statusPref = statusBar.getPreferredSize(); statusBar.setBounds(i.right, b.height - i.bottom - statusPref.height, w, statusPref.height); if (contentPane != null) { Rectangle bounds = contentPane.getBounds(); contentPane.setBounds(bounds.x, bounds.y, bounds.width, bounds.height - statusPref.height); } } }