How to get grid to show up when working with Grid Layout in JPanel? #582
Answered
by
ptziegler
ForceConstant
asked this question in
Q&A
-
So I drag a JPanel onto my GUI, and Set the layout to Grid. I then set in properties the column to 2, and rows to 2. But when I then drag a JLabel onto the panel, I do not see the grid, why not? What else do I need to do? |
Beta Was this translation helpful? Give feedback.
Answered by
ptziegler
Sep 28, 2023
Replies: 1 comment 1 reply
-
The grid is only shown for the GridBagLayout, not the GridLayout. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ForceConstant
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The grid is only shown for the GridBagLayout, not the GridLayout.