Is it possible to have 5 JPanels
in a row in a single Frame? Heres my code you may get a better understanding of the question:
setLayout(new BorderLayout());
add(mainOrderInfo, BorderLayout.WEST);
add(meatPanel, BorderLayout.WEST);
add(cheesePanel, BorderLayout.CENTER);
add(ingrediantsPanel, BorderLayout.EAST);
add(addonsPanel, BorderLayout.EAST);
When the code is ran all I get are the meatPanel
, cheesePanel
, and ingrediantsPanel
. I would like the mainOrderInfo
to be to the left of the meatPanel
and the addonsPanel
to the right of the ingredientsPanel
. I feel as though its simple a matter of code or ordering of code that I am not aware of.