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

Report as inappropriate.

Busch2207
Busch2207 presents ...

2017/5/1

Easy-To-Use-Button

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.

2002 views / 704 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse demo with-source button

open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on 2017-05-01 15:47:51 UTC
YehudaYehuda

2017/5/1

"...just take a look...by 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: http://www.greenfoot.org/scenarios/19241 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.
Busch2207Busch2207

2017/5/2

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?

Yehuda