GUI issues
Hello, I am kind of new to this programming deal with the emphasis on GUIs. What I need to do is to get the following program turned into a GUI using Jbuttons, text fields and so on. Any help would be appreciated.
import java.util.*;
class Practice{
public static void main(String[]args){
double L, Sy, Sh;
double p1, p2, p3, p4;
int V, I, R;
Scanner stump=new Scanner(System.in);
System.out.println(" Enter a double ");
L = stump.nextDouble();
System.out.println(" Enter an Integer ");
V = stump.nextInt();
System.out.println(" Enter a double ");
Sy = stump.nextDouble();
System.out.println(" Enter a double ");
Sh = stump.nextDouble();
System.out.println(" Enter an Integer ");
I = stump.nextInt();
System.out.println(" Enter an Integer ");
R = stump.nextInt();
p1 = 3*(L+1)/V*(Sh+2/Sy+2);
p2 = (R*R)-5*R+1/Math.abs(11-I);
p3 = Math.sqrt(p1 + p2);
p4 = Math.round (p3);
System.out.println("You can spend " +p4+ " hours doing nothing.");
}
}

