|
JPanel Problems
I have a JFrame that has 2 JPanels contained in it. Both JPanels have graphics drawn on them. The coding for both JPanels to display the graphics is almost the same, they just have to display different information.
The first JPanel I have is fine and displays fine when it draws graphics outside of the viewport allowed by the JScrollpane it's in.
The second JPanel however has problems. The graphics won't draw outside of the area of the viewport and when I scroll, what graphics are there disappear. This panel is programmed the exact same way as the first one, but it has problems while the first one doesn't.
Does anyone know what would be causing this problem?
|