i just want this to hold a value it has been holding me back for over a week and i cant figure it out!
public javax.swing.JTextField Rank;
please help me
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
i just want this to hold a value it has been holding me back for over a week and i cant figure it out!
public javax.swing.JTextField Rank;
please help me
Last edited by copeg; June 11th, 2011 at 01:11 PM. Reason: Removed obsenity
Shouting with exclamation points and typing obscenities will not get you help any faster. Further, your question doesn't make any sense. Do you just want to have a JTextField show a double? Use Double.parseDouble and String.valueOf to convert between doubles and Strings
ok thank you now i need to get a double value that i just made using that one i just acquired into a jlabel OR text field so i need to make that double value into a string and i have no idea how to do that,
my program is probably the simpilist ever and it's taking me weeks to make and i'm running down the home stretch with it so any and all help and pataince is very helpfull
[i needed that other double to make a calculation to make this current double]
Last edited by knoxy5467; June 11th, 2011 at 02:20 PM.
Read post #2. It gives methods for going each way.i need to make that double value into a string
Look at the String class for methods to create Strings.
Look at the Double class for methods to create doubles.
Read the API doc for these classes: Java Platform SE 6
Scroll down in the lower left window.