java - Need help setting up GUI featuring grid and clickable items -
To work for my comcom, I have to create a world whose graph is connected through the roads in the framework of objects Happened is the village object. Gnomes, each running their own thread using this world from one village to the other side using the shortest path. However, this whole thing needs to be a GUI.
Actually I must have a grid with the villages on the intersections. In this way some (without numbers):
The villages are connected to the roads. If this is not very difficult then the road should be removed, if they are not the only road connecting the village to the rest of the graph. It will be done by clicking
There should also be an option to add villages by clicking on the graph, selecting the existing villages, removing them.
Actually: <
Can you please tell me what I need for the GUI, what do I need for it? As the best layout manager, how can action events be managed, how to draw a grid, etc. I just need a brief outline.
This is a big question, although this is not really your fault. Go here:
Read a little about MVC
then understand
then:
Perhaps the best layout manager for your graph is probably
Maybe you should add it to each node so you can simply click on it JButtons can be created to see anything like this, by default Can not be stopped by how it looks.
Then the most important: You should probably use a GUI builder tool of some sort. I suggest you are new.
Now you should do all this, and when you get stuck, ask a specific question. Good luck!
Comments
Post a Comment