I’m somewhat new to Swing so I’m not sure of the best way to do this, but I would like to have 4 separate components (specifically JScrollPanes) within a JFrame. Do I need to create a new class for each ScrollPane and have a customized paint method within them?
The best way to do this is to extend JComponent and use its paintComponent(Graphics) method. Then add the JComponent as the scroll pane’s view.