PaintComponent « JLayeredPane « Java Swing Q&A





1. why is paintComponent() never called by repaint()?    stackoverflow.com

I've been working on an program that draws custom JComponents onto a JLayeredPane however all calls to repaint() on the components seem to do nothing yet the paintComponent method is invoked ...

2. Custom components won't paint in JLayeredPane    stackoverflow.com

we're creating some school project in Java. What are we trying to do: there is JScrollPane as part of the GUI, containing JLayeredPane (let's say "MapPane"). MapPane contains the map of the ...