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

Report as inappropriate.

Busch2207 presents ...



The class Button might be very large and difficult to understand. So better just take a look at the documentation of the Button-class.
It might be easier to understand, how to handle this button, by taking a look in the ButtonWorld-class.

1804 views / 506 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse demo with-source button

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2017-05-01 15:47:51 UTC


"...just take a taking a look in the ButtonWorld-class" All I see is a purple ball, and when clicked it disappears and a new one appears somewhere else. I don't see any place that allows me to look at classes or documentation. The part I like about it is you made it that when the mouse is hovered over the button it gets a little faded, and there's text displayed in a tool tip. But the scenario in itself isn't very exciting. I just used the setToolTipText method in javax.swing.JComponent - even in Greenfoot. See this: But in that particular scenario I didn't use the method.
A new version of this scenario was uploaded on 2017-05-02 07:41:41 UTC Forgot to publish the source code.


Hey! Thank you! I forgot to publish the source code! So here it is!

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

Who likes this?