Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Creating a method that takes no Arguments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Creating a method that takes no Arguments" Watch "Creating a method that takes no Arguments" New topic
Author

Creating a method that takes no Arguments

Ryan Perlman
Greenhorn

Joined: Oct 31, 2001
Posts: 23
still dealing with the previous question I have made the coin toss applet but now I need to fill one more field. I need to make a seperate method That will yeild a value of true or false based on the actionPerformed of the coin. I can not figure out how to get this started.
Here is the code I have so far it all works except there is nothing being sent to the flipField (ie.. true or false);

thanks for all the help everyone has provided so far
[This message has been edited by Marilyn deQueiroz (edited November 09, 2001).]
Kris Nelson
Ranch Hand

Joined: Nov 04, 2001
Posts: 35
Set the text of the flipField textfield the same way you status textfield in the tossAction.actionPerformed() method.

------------------
WebNelly.com
Java/XML Web Development
Check it out!
http://www.webnelly.com


WebNelly.com<br />Java/XML Web Development<br />Check it out!<br /><a href="http://www.webnelly.com" target="_blank" rel="nofollow">http://www.webnelly.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a method that takes no Arguments