Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating a method that takes no Arguments

 
Ryan Perlman
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!