Report as inappropriate.
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.
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.
Want to leave a comment? You must first log in.
No votes yet.