原帖由 JulyAngel 于 2009-4-17 07:55 PM 发表
我之前下了一個Eclipse 雙點之下
A Java Runtime Enviroment (JRE) or Java Development Kit(JDK)
must be available in order to run Eclipse.No Java virtual machine was found after searching the fo ...
textPnl.add(nameLbl);
应该是这个样子吧。。。有点忘记了。。。因为都在用GUI builder了。。。。没用manual。
Java 很多东西都要 new的。 目前我是知道这个。 太多的frame有个弱点。。。我忘记了。。。
建议create new class for JFrame. 比如 :
public class StudentInfo extends Jframe {}
比较 Object Oriented, 出问题也比较容易改。
目前在做assignment. Requirements 是:
1.
Loading the game datainformation from a text file
2.
Displaying a main menu fornavigation.
3.
Displaying summarised details (name,category, price) of all games.
4.
Displaying full details of a particulargame.
5.
Selecting games the user wantsto purchase and storing it in memory.
6.
Writing out a file indicatingthe game name, category, and price of the each game
purchased. The last line of the file willcontain the total cost of all games bought.