public final void paintComponent(Graphics g) { int width = this.getWidth(); int height = this.getHeight(); if (this.isSelected) { g.setColor(selectedBackground); g.fillRect(0, 0, width - 1, height - 1); g.setColor(selectedForeground); g.drawRect(0, 0, width - 1, height - 1); } super.paintComponent(g); }
public final void paintComponent(Graphics g) { int width = this.getWidth(); int height = this.getHeight(); if (this.isSelected) { g.setColor(selectedBackground); g.fillRect(0, 0, width - 1, height - 1); g.setColor(selectedForeground); g.drawRect(0, 0, width - 1, height - 1); } super.paintComponent(g); }
public final void paintComponent(Graphics g) { int width = this.getWidth(); int height = this.getHeight(); if (this.isSelected) { g.setColor(selectedBackground); g.fillRect(0, 0, width - 1, height - 1); g.setColor(selectedForeground); g.drawRect(0, 0, width - 1, height - 1); } super.paintComponent(g); }
public final void paintComponent(Graphics g) { int width = this.getWidth(); int height = this.getHeight(); if (this.isSelected) { g.setColor(selectedBackground); g.fillRect(0, 0, width - 1, height - 1); g.setColor(selectedForeground); g.drawRect(0, 0, width - 1, height - 1); } super.paintComponent(g); }
public final void paintComponent(Graphics g) { int width = this.getWidth(); int height = this.getHeight(); if (this.isSelected) { g.setColor(selectedBackground); g.fillRect(0, 0, width - 1, height - 1); g.setColor(selectedForeground); g.drawRect(0, 0, width - 1, height - 1); } super.paintComponent(g); }