Thursday, October 13, 2011

JPanel Success!

So remember how I was having that one problem with trying to give JPanel's a background but it wasn't working quite right? Well I got that fixed! I just had to override the paintComponent function and volia everything worked as planned.

Except the actual bottom component I was working with was a JFrame not a JPanel... so yeah... that was a fun discovery... but I did figure out a way to fix that. I just added a new JPanel to the JFrame and then added everything originally on the JFrame to the JPanel... a slight hack but it works!

So I didn't get my algorithms assignment done at all... but I got my java program working so I think it was a day well spent... tomorrow I might disagree with myself...

//END OF LINE

No comments:

Post a Comment