User Profile

Collapse

Profile Sidebar

Collapse
fifersheep
fifersheep
Last Activity: Apr 9 '08, 09:38 AM
Joined: Apr 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • fifersheep
    replied to Number from text box
    in Java
    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...
    See more | Go to post

    Leave a comment:


  • fifersheep
    replied to Number from text box
    in Java
    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);
    ...
    See more | Go to post
    Last edited by fifersheep; Apr 9 '08, 01:34 AM. Reason: a few typo's

    Leave a comment:


  • fifersheep
    started a topic Number from text box
    in Java

    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 (" ");
    ...
    See more | Go to post
    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
Working...