The Artima Developer Community
Sponsored Link

Java Answers Forum
Code for One JButton

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brook

Posts: 12
Nickname: brook
Registered: Sep, 2002

Code for One JButton Posted: Nov 29, 2002 4:08 PM
Reply to this message Reply
Advertisement
* I have an Input Box. We'll say someone types in the number 5.
* I have one Jbutton.
* I have one Text Field for the output.

What would a sample code look like? Behind JButton1 would be a calculation like "5.9 x Input Box value". So, is someone types in the number 5 in the Input Box and presses JButton1, the answer, which would be(in this example) 29.5, would display in the Text Field.

If I can see how it works for one button, I think I can get the others. THANKS.

Topic: finding the first vowel... Previous Topic   Next Topic Topic: creation of .RTF file in java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use