This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Duta
Duta presents ...

2012/6/5

JComponents

An example of embedding JComponents into your world canvas - I included some example ones (a few buttons and a label that gets edited by one of them).
I created and included the dot and car just to highlight when the scenario is running and when it is stopped. The dot is actually quite a nice chunk of code in my opinion, so feel free to use that code aswell :)
But yeah, for those people who always ask about using swing components, here is an alternative answer to the "Just create the components yourself in Greenfoot or use some of the pre-made collections available" answer.

2028 views / 456 in the last 7 days

Tags: mouse game simulation physics demo uaslp korea swing jcomponent javax

open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
A new version of this scenario was uploaded on Tue Jun 05 16:18:50 UTC 2012
A new version of this scenario was uploaded on Tue Jun 05 16:21:58 UTC 2012

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.