[squeak-dev] Morphic buttons

K. K. Subramaniam subbukk at gmail.com
Fri Oct 17 18:05:18 UTC 2008


On Friday 17 Oct 2008 10:06:33 pm R. Mark Volkmann wrote:
> I see lots of classes for creating buttons and I'm not sure which one
> corresponds most closely to a Java Swing JButton.
Every morph is capable of handling events. See its on:send:to: method. The 
class EventHandler 

If you just need a rectangular button with a label on it, use 
SimpleButtonMorph (for text labels) or IconicButton (for graphic labels). 
e.g.
	SimpleButtonMorph new label: 'Flash'; target: World;
			actionSelector: #flash; openInWorld.

HTH .. Subbu



More information about the Squeak-dev mailing list