For IntelliJ IDEA,
Android Studio or Eclipse



private void myMethod () {JXStatusBar j =
JXFrame jXFrame;jXFrame.getRootPaneExt().getStatusBar()
JXDialog jXDialog;jXDialog.getRootPane().getStatusBar()
- Smart code suggestions by Codota
}
/** * Notification from the <code>UIManager</code> that the L&F has changed. * Replaces the current UI object with the latest version from the * <code>UIManager</code>. * * @see javax.swing.JComponent#updateUI */ @Override public void updateUI() { setUI((StatusBarUI) LookAndFeelAddons .getUI(this, StatusBarUI.class)); }
/** * Creates a new JXStatusBar */ public JXStatusBar() { super(); updateUI(); }
protected void installDefaults(JXStatusBar sb) { //only set the border if it is an instanceof UIResource //In other words, only replace the border if it has not been //set by the developer. UIResource is the flag we use to indicate whether //the value was set by the UIDelegate, or by the developer. Border b = statusBar.getBorder(); if (b == null || b instanceof UIResource) { statusBar.setBorder(createBorder()); } LookAndFeel.installProperty(sb, "opaque", Boolean.TRUE); }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
/** * @param resizeHandleEnabled the resizeHandleEnabled to set */ public void setResizeHandleEnabled(boolean resizeHandleEnabled) { boolean oldValue = isResizeHandleEnabled(); this.resizeHandleEnabled = resizeHandleEnabled; firePropertyChange("resizeHandleEnabled", oldValue, isResizeHandleEnabled()); }
private int getHandleBoundary() { Border border = statusBar.getBorder(); if (border == null || !statusBar.isResizeHandleEnabled()) { return 0; } if (statusBar.getComponentOrientation().isLeftToRight()) { return border.getBorderInsets(statusBar).right; } else { return border.getBorderInsets(statusBar).left; } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
private boolean isHandleAreaPoint(Point point) { if (window == null || window.isMaximumSizeSet()) { return false; } if (statusBar.getComponentOrientation().isLeftToRight()) { return point.x >= statusBar.getWidth() - handleBoundary; } else { return point.x <= handleBoundary; } }
/** * Creates a new JXStatusBar */ public JXStatusBar() { super(); updateUI(); }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void installDefaults(JXStatusBar sb) { //only set the border if it is an instanceof UIResource //In other words, only replace the border if it has not been //set by the developer. UIResource is the flag we use to indicate whether //the value was set by the UIDelegate, or by the developer. Border b = statusBar.getBorder(); if (b == null || b instanceof UIResource) { statusBar.setBorder(createBorder()); } LookAndFeel.installProperty(sb, "opaque", Boolean.TRUE); }
/** * @param resizeHandleEnabled the resizeHandleEnabled to set */ public void setResizeHandleEnabled(boolean resizeHandleEnabled) { boolean oldValue = isResizeHandleEnabled(); this.resizeHandleEnabled = resizeHandleEnabled; firePropertyChange("resizeHandleEnabled", oldValue, isResizeHandleEnabled()); }