This is pretty elementary but I do not even know how to search anything for what I need. I have created a system that has a few classes and two projects that communicate with each other via sockets.
现在,我的目标是用设计师Netbeans(Netbeans)为这个系统创建一个图形用户界面(GUI),
- Should the GUI be my main class?
- If not, how do I send messages to my GUI class.
- When I try to do the following e.g
JTextField.setText("PleaseHelp");
in the run method of the GUI I get an error saying : non-static variable JTextField cannot be referenced from a static context.
我知道我没有要求具体的东西,但我对如何寻找我需要的东西一无所知。我得到的只是关于如何制作简单的计算界面的辅导,因为只有一个类,即JFrame
。