[SOLVED] Resize error? ZombieEscape
Hey guys, a lot of you have helped me work out the kinks in my bullet man, stick archer, ect... I started from scrap a couple days ago. Took what you taught me, applied it...and? It worked!
I now have a functioning applet that displays a solider (complete with eye patch, pistol, boots and clothing) The soldier can run forward, back, jump, crouch, fire(in any of those positions) and pause! I'm working on a death screen right now, and I'll be tackling a start menu as well as enemies soon.
I have a simple but FRUSTRATING problem. When I create this applet.... its sized at 100x100 (nearly the size of my character) I manually resize it everytime. I need to have it automatically be sized at the right size. Now...before you type "N00b setSize(x,y);" Keep in mind... I've already tried taht. I'm using some innerclasses to draw the applet and setSize doesn't work wit hwhat I'm using... Heres some code to show you the part where I draw the applet. I'm trying to display it at 1000x1000.... but so far its not listening.
public static void main(String args) //sets up applet
JApplet applet = new ZombieEscape(); //sets up a possible frame
JFrame f = new JFrame();