Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,426 members, 7,954,670 topics. Date: Saturday, 21 September 2024 at 06:23 AM |
Nairaland Forum / Science/Technology / Programming / Urgently Need Assistant On JAVA GUI (1108 Views)
I Need Help On Java / How Do I Make My Java GUI Stuff Executable (like desktop shortcut) / Urgently Need Assistant On JAVA GUI (2) (3) (4)
Urgently Need Assistant On JAVA GUI by Akprof(m): 10:04pm On Apr 18, 2015 |
Please Programmers, how do I use GUI so solve problems where some variable are integer and others are float? E.g Code a program that output your Grade Point (GP) where GP=(Grade Point X Course Unit)/Total Unit. Taking CSC 400 as a the only course you did with unit 3. Pls code this by using the GUI and not scanner. I am expecting your instant responses thanks. |
Re: Urgently Need Assistant On JAVA GUI by Nobody: 10:14pm On Apr 18, 2015 |
Akprof:Try dis www.dreamincode.net/forums/topic/165458-gpa-calculator-for-javascript/ |
Re: Urgently Need Assistant On JAVA GUI by Nobody: 10:40pm On Apr 18, 2015 |
Since the variable is a score, it might be better to have it in float form to reduce margin of error. You could cast the integer scores to float like so: score1 = 79 becomes score1 = (float) score1 So the new value of score1 would be 79.0 instead of 79. Hopefully this is somehow of help to you. For more info: http://stackoverflow.com/questions/4377842/how-can-i-convert-integer-into-float-in-java 1 Like |
Re: Urgently Need Assistant On JAVA GUI by Akprof(m): 11:24pm On Apr 18, 2015 |
can u av a try of the coding? |
Re: Urgently Need Assistant On JAVA GUI by Nobody: 11:42pm On Apr 18, 2015 |
Akprof: It's GUI, so it's slightly more work than an ordinary java program. Would love to help but I definitely can't. Good luck though! |
Re: Urgently Need Assistant On JAVA GUI by Akprof(m): 11:48pm On Apr 18, 2015 |
thanks |
Re: Urgently Need Assistant On JAVA GUI by Nobody: 1:42pm On Apr 19, 2015 |
I am a newbie in Java, I will advice you to use an app or software that will tell where the errors are and make correction before you compiler and run the code. https://play.google.com/store/apps/details?id=com.java.manager |
Re: Urgently Need Assistant On JAVA GUI by danvery2k6(m): 2:03am On Apr 20, 2015 |
funny question, funny replies. please tell us where exactly you have problems so we can help you learn. copying and pasting code will by no means help you. |
Re: Urgently Need Assistant On JAVA GUI by luksybee(m): 9:18am On Apr 20, 2015 |
You need to parse your values to a string type... Label, textbox etc can only have a string value... Hope you get the idea? |
Re: Urgently Need Assistant On JAVA GUI by kudaisi(m): 11:14am On Apr 20, 2015 |
What have you done so far ? |
Re: Urgently Need Assistant On JAVA GUI by kudaisi(m): 2:21pm On Apr 20, 2015 |
Try this should work... package package.name; 2 Likes |
Re: Urgently Need Assistant On JAVA GUI by Standing5(m): 9:01pm On Apr 20, 2015 |
OP, did the above work for you? |
(1) (Reply)
School Portal / Python Pros. . .please Help!!! / 15 Characteristics You Should Watch Out When Employing A Programmer
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |