[Bluej-discuss] (no subject)
Josh Rountree
mage at carolina.rr.com
Thu Mar 30 02:34:37 BST 2006
>Hello, I'm rather new to BlueJ and programming in
>general. I'm trying to set up a program that will
>make use of the "if" conditional when clicked, however
>I'm unsure of how to set up the MouseClicked. Any
>help would be great. Thanks.
You would need to give us a little more context in order to give you a
better answer, but on a very abstract level it looks something like this.
You define a method to be executed when the mouse is clicked. Within that
method you can do what you want. Also, you register you method to be
executed with the system that handles mouse events, and when a mouse click
occurs, your method is called.
Ask some questions, we might be able to give a better answer.
Josh
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/296 - Release Date: 3/29/2006
More information about the bluej-discuss
mailing list