ServerList = new FormWindowSimple(...);
ServerList.addButton(new ElementButton("text"));
// add other buttons
p.getPlayer().showFormWindow(ServerList);
First of all, don't need to call setResponce(). Secondly, you don't add the elements you created to your windows. It must be:
Java:ServerList = new FormWindowSimple(...); ServerList.addButton(new ElementButton("text")); // add other buttons p.getPlayer().showFormWindow(ServerList);
First of all, don't need to call setResponce(). Secondly, you don't add the elements you created to your windows. It must be:
Java:ServerList = new FormWindowSimple(...); ServerList.addButton(new ElementButton("text")); // add other buttons p.getPlayer().showFormWindow(ServerList);
for nullability checking use == operatorwill... I use your method but it still throw the same wrongs
But how do I tell when a window button is pressed
if I don't use responce I don't know which windows's button is pressed...
I have to compare responce and then I know which button I pressed