@Override protected void paintComponent(Graphics g) { if (painter != null) { // we have a custom (background) painter // try to inject if possible // there's no guarantee - some LFs have their own background // handling elsewhere paintComponentWithPainter((Graphics2D) g); } else { // no painter - delegate to super super.paintComponent(g); } }
@Override protected void paintComponent(Graphics g) { if (painter != null) { // we have a custom (background) painter // try to inject if possible // there's no guarantee - some LFs have their own background // handling elsewhere paintComponentWithPainter((Graphics2D) g); } else { // no painter - delegate to super super.paintComponent(g); } }
@Override protected void paintComponent(Graphics g) { if (painter != null) { // we have a custom (background) painter // try to inject if possible // there's no guarantee - some LFs have their own background // handling elsewhere paintComponentWithPainter((Graphics2D) g); } else { // no painter - delegate to super super.paintComponent(g); } }
@Override protected void paintComponent(Graphics g) { if (painter != null) { // we have a custom (background) painter // try to inject if possible // there's no guarantee - some LFs have their own background // handling elsewhere paintComponentWithPainter((Graphics2D) g); } else { // no painter - delegate to super super.paintComponent(g); } }
@Override protected void paintComponent(Graphics g) { if (painter != null) { // we have a custom (background) painter // try to inject if possible // there's no guarantee - some LFs have their own background // handling elsewhere paintComponentWithPainter((Graphics2D) g); } else { // no painter - delegate to super super.paintComponent(g); } }