I've been working on a Java project for school but I'm am having trouble with the JFrame Layout. The items are not being put where I am programming them to be, and sometimes they don't even show up unless I re-size the window.
Also, I have a random number generator that generates a number between 1 and 6. Would I be able to display a different JPanel depending on the number that the generator gave me? Thanks in advance!
Here's what I what the layout to look like

Also, I have a random number generator that generates a number between 1 and 6. Would I be able to display a different JPanel depending on the number that the generator gave me? Thanks in advance!
Here's what I what the layout to look like












