File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Creating a method that takes no Arguments

Ryan Perlman

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.

Java/XML Web Development
Check it out!<br />Java/XML Web Development<br />Check it out!<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Creating a method that takes no Arguments
jQuery in Action, 3rd edition