protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
protected void paintBackground(Graphics2D g, JXStatusBar bar) { if (bar.isOpaque()) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }
@Override protected void paintBackground(Graphics2D g, JXStatusBar bar) { g.setColor(bar.getBackground()); g.fillRect(0, 0, bar.getWidth(), bar.getHeight()); //paint an inset border around each component. This suggests that //there is an extra border around the status bar...! Border b = BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.WHITE, bar.getBackground(), bar.getBackground(), Color.GRAY); Insets insets = new Insets(0, 0, 0, 0); for (Component c : bar.getComponents()) { getSeparatorInsets(insets); int x = c.getX() - insets.right; int y = c.getY() - 2; int w = c.getWidth() + insets.left + insets.right; int h = c.getHeight() + 4; b.paintBorder(c, g, x, y, w, h); } }