I want to drag a Jlabel into another on gui builder but it doesn't set the JLabel as a container. Any ideas?
Asked
Active
Viewed 35 times
0
-
2*"Any ideas?"* Try something. Get back to us when you have a *specific* question. – Andrew Thompson Dec 23 '13 at 09:14
1 Answers
0
jLabel isn't a container, it's a component. If you want to add multiple things to something then something should be a jPanel.
Create a jPanel and then add the two labels inside the panel at the positions you want.

Tim B
- 40,716
- 16
- 83
- 128
-
Ok but then how can I insert an image on the panel? I wanted to be shown on the gui builder because I'm making a sudoku game and I want to put them exactly on position. – billiout Dec 23 '13 at 09:53
-