Box2D Forums

It is currently Sun May 19, 2013 9:19 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Applet?
PostPosted: Wed Jul 20, 2011 4:39 pm 
Offline

Joined: Wed Jul 20, 2011 4:22 pm
Posts: 1
I am using the pulleys.java from the src. I have it all set up in netbeans but theirs a problem. I added this to make it a applet.
code wrote:
public static void main(String args[]) {
Pulleys app = new Pulleys();
app.start();
}

I clicked run and it says everything runs fine but nothing shows up. I am new to java so don't get mad at me if that is not how you make a applet. Any help on making it an applet? Or even show up at all? Or is that a c++ example i'm trying to use???


Top
 Profile  
 
 Post subject: Re: Applet?
PostPosted: Thu Jul 21, 2011 1:58 am 
Offline

Joined: Mon Jun 08, 2009 12:21 pm
Posts: 353
So the only "Pulleys" object i've ever seen is the testbed test that runs in the testbed framework. It actually has no graphics code, that's all in the TestbedPanel and it's DebugDraw. I'm also surprised your code is compiling, as I don't think there is a "start()" method in that class.

Anyways, if you want to experiment with the engine, I would suggest working with the testbed source and making your own test. This way you don't have to worry about the graphics.

On that note, I do want to make it easier for someone to add their own test to the testbed w/o downloading the source... I'll make a feature request for that.


Top
 Profile  
 
 Post subject: Re: Applet?
PostPosted: Wed Jul 27, 2011 6:42 am 
Offline

Joined: Tue Jun 28, 2011 6:56 am
Posts: 20
have you tried app.setVisible(true);?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group