2010-12-21 09:13:31 UTC
in battle i create a JPanel. In window i have 2 buttons and the JPanel from the battle class. I have images on my buttons. what i want is to get my JPanel to be at the top, and my buttons to be at the bottom, next to each other. But i can only get one button to show, really long and only half the image is there.
what i have is this:
add(myPanel, BorderLayout.NORTH);------------------ this is the JPanel
add(fire, BorderLayout.SOUTH);
add(heal, BorderLayout.SOUTH);
i feel like i could put co-ordinates instead of the 'BorderLayout' but i don't know how to. can I? and how?
but if anyone has a good suggestion on how to fix this problem please tell me.
(btw this is meant to be a really lame type of rpg)