DemonWasp @ Thu Jun 06, 2013 5:13 pm wrote:
Huh, didn't notice that. Looks like AWT labels don't support multiline (the API states this in the first line).
You'll have to either use more than one Label (and carefully lay things out), implement that functionality yourself, or find an existing implementation.
Or use Swing, which supports this by default. Why are you using AWT rather than Swing anyway?
Ok i guess ill just create another label.
Im using awt because at the time i started my project that was the only ui stuff that my teacher had taught us.
I tried to convert the program to swing, but a lot of issues popped up and it was too much of a pain to go through and fix each thing.
I really wish i used swing from the beginning though. Especially because of how easy it is to assign an image to a button. (my game is whack a mole)
Its actually quite sad what it has come down to. Instead of having a mole picture appear on the buttons, ive had to settle with button.setLabel (":D").