/** * {@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); } } }