0

I want to drag a Jlabel into another on gui builder but it doesn't set the JLabel as a container. Any ideas?

billiout
  • 695
  • 1
  • 8
  • 22

1 Answers1

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
  • http://stackoverflow.com/questions/4051408/jpanel-with-image-background – Tim B Dec 23 '13 at 09:55