当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Having trouble applying GUI

问题描述:

This is my main code :

 gui test = new gui();

input = JOptionPane.showInputDialog(" Enter how many item you want to buy ");

size = Integer.parseInt(input);

sportShop ar[] = new sportShop[size];

for (int i = 0; i<size; i++)

{

choice = JOptionPane.showInputDialog(" Enter your choice ");

if (choice.equalsIgnoreCase("shoes"))

{

System.out.println("DAMN");

}

}

}

}

After running the program, Both of my GUI and JOptionPane shows up on my window. What would be best to overcome this problem.

分享给朋友:
您可能感兴趣的文章:
随机阅读: