hmmm... still cant get the String from the textbox, doesn't matter though mate, might just try it using an input box or something, I'm sure I'll make sense of it all on day, and thanks for the help anyway man, appreciate it!
Take care...
User Profile
Collapse
-
Ok this is my code in full now:
import javax.swing.*;
import javax.swing.JOp tionPane;
import java.awt.*;
import java.awt.event. *;
public class Temperature {
public static void main(String[] args) {
tempConvert buttonFrame = new tempConvert();
buttonFrame.set Size(350,120);
buttonFrame.set Location(250,10 0);
...Leave a comment:
-
Number from text box
Hi, there, very new to Java. I'm looking to get a number from a text box, then use the number in a calculation, and then put the answer into another text box.
JButton convertButton = new JButton ("Convert to Fahrenheit");
final JTextField celsiusText = new JTextField ("Enter temperature in Celsius to convert");
final JTextField fahrenheitText = new JTextField (" ");...Last edited by fifersheep; Apr 9 '08, 12:10 AM. Reason: Long post, added bold and italics to show code clearly
No activity results to display
Show More
Leave a comment: