protected void uninstallDefaults(JXStatusBar sb) { if (sb.getBorder() instanceof UIResource) { sb.setBorder(null); } }
protected void uninstallDefaults(JXStatusBar sb) { if (sb.getBorder() instanceof UIResource) { sb.setBorder(null); } }
protected void uninstallDefaults(JXStatusBar sb) { if (sb.getBorder() instanceof UIResource) { sb.setBorder(null); } }
protected void uninstallDefaults(JXStatusBar sb) { if (sb.getBorder() instanceof UIResource) { sb.setBorder(null); } }
protected void uninstallDefaults(JXStatusBar sb) { if (sb.getBorder() instanceof UIResource) { sb.setBorder(null); } }
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 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 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 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 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); }
public static JXStatusBar createStatusBar(final JComponent comp) { final JXStatusBar statusBar = new JXStatusBar(); statusBar.setUI(new MetalStatusBarUI()); statusBar.putClientProperty(BasicStatusBarUI.AUTO_ADD_SEPARATOR, false); statusBar.setBackground(WidgetUtils.BG_COLOR_DARKEST); final MatteBorder outerBorder = new MatteBorder(1, 0, 0, 0, WidgetUtils.BG_COLOR_LESS_DARK); final EmptyBorder innerBorder = new EmptyBorder(2, 2, 2, 2); statusBar.setBorder(new CompoundBorder(outerBorder, innerBorder)); final JXStatusBar.Constraint c1 = new JXStatusBar.Constraint(JXStatusBar.Constraint.ResizeBehavior.FILL); statusBar.add(comp, c1); return statusBar; }