I use a JFrame in which the CENTER BorderLayout part is occupied by the JScrollPane, which wraps around the JPanel. I find that when I initiate an action that actually causes the JPanel to display, the display does not change. But when I resize the JFrame, a new JScrollPane now appears.
So, what methods are called when the JFrame is resized? If I know, then I can call it in the code and avoid the need to resize the frame just to see the results of the operation.
source share