When I open a new JPanel, it opens with the frame halfway scrolled down sometimes. How do I make it always show the panel at the top?

Here's the code


package cuisinart;

import...