@Override public void paint(Graphics g, JComponent c) { //paint the background if opaque if (statusBar.isOpaque()) { Graphics2D g2 = (Graphics2D)g; paintBackground(g2, statusBar); } if (includeSeparators()) { //now paint the separators TEMP_INSETS = getSeparatorInsets(TEMP_INSETS); for (int i=0; i<statusBar.getComponentCount()-1; i++) { Component comp = statusBar.getComponent(i); int x = comp.getX() + comp.getWidth() + TEMP_INSETS.left; int y = TEMP_INSETS.top; int w = getSeparatorWidth() - TEMP_INSETS.left - TEMP_INSETS.right; int h = c.getHeight() - TEMP_INSETS.top - TEMP_INSETS.bottom; paintSeparator((Graphics2D)g, statusBar, x, y, w, h); } } }
@Override public void paint(Graphics g, JComponent c) { //paint the background if opaque if (statusBar.isOpaque()) { Graphics2D g2 = (Graphics2D)g; paintBackground(g2, statusBar); } if (includeSeparators()) { //now paint the separators TEMP_INSETS = getSeparatorInsets(TEMP_INSETS); for (int i=0; i<statusBar.getComponentCount()-1; i++) { Component comp = statusBar.getComponent(i); int x = comp.getX() + comp.getWidth() + TEMP_INSETS.left; int y = TEMP_INSETS.top; int w = getSeparatorWidth() - TEMP_INSETS.left - TEMP_INSETS.right; int h = c.getHeight() - TEMP_INSETS.top - TEMP_INSETS.bottom; paintSeparator((Graphics2D)g, statusBar, x, y, w, h); } } }
@Override public void paint(Graphics g, JComponent c) { //paint the background if opaque if (statusBar.isOpaque()) { Graphics2D g2 = (Graphics2D)g; paintBackground(g2, statusBar); } if (includeSeparators()) { //now paint the separators TEMP_INSETS = getSeparatorInsets(TEMP_INSETS); for (int i=0; i<statusBar.getComponentCount()-1; i++) { Component comp = statusBar.getComponent(i); int x = comp.getX() + comp.getWidth() + TEMP_INSETS.left; int y = TEMP_INSETS.top; int w = getSeparatorWidth() - TEMP_INSETS.left - TEMP_INSETS.right; int h = c.getHeight() - TEMP_INSETS.top - TEMP_INSETS.bottom; paintSeparator((Graphics2D)g, statusBar, x, y, w, h); } } }
@Override public void paint(Graphics g, JComponent c) { //paint the background if opaque if (statusBar.isOpaque()) { Graphics2D g2 = (Graphics2D)g; paintBackground(g2, statusBar); } if (includeSeparators()) { //now paint the separators TEMP_INSETS = getSeparatorInsets(TEMP_INSETS); for (int i=0; i<statusBar.getComponentCount()-1; i++) { Component comp = statusBar.getComponent(i); int x = comp.getX() + comp.getWidth() + TEMP_INSETS.left; int y = TEMP_INSETS.top; int w = getSeparatorWidth() - TEMP_INSETS.left - TEMP_INSETS.right; int h = c.getHeight() - TEMP_INSETS.top - TEMP_INSETS.bottom; paintSeparator((Graphics2D)g, statusBar, x, y, w, h); } } }
@Override public void paint(Graphics g, JComponent c) { //paint the background if opaque if (statusBar.isOpaque()) { Graphics2D g2 = (Graphics2D)g; paintBackground(g2, statusBar); } if (includeSeparators()) { //now paint the separators TEMP_INSETS = getSeparatorInsets(TEMP_INSETS); for (int i=0; i<statusBar.getComponentCount()-1; i++) { Component comp = statusBar.getComponent(i); int x = comp.getX() + comp.getWidth() + TEMP_INSETS.left; int y = TEMP_INSETS.top; int w = getSeparatorWidth() - TEMP_INSETS.left - TEMP_INSETS.right; int h = c.getHeight() - TEMP_INSETS.top - TEMP_INSETS.bottom; paintSeparator((Graphics2D)g, statusBar, x, y, w, h); } } }