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.

2238 views / 7 in the last 7 days

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

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

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.