I really don't get it. I'm sitting over this programs since months and I just can't get through.
Here's the problem:
I have created a wonderful working program (queue) implying 3 classes (i guess you guys know this kind of "lists"):
List refers to element, refers to content, you know that.
In "list" I have the following methods:
- give out the starting time
- add a new person
- take out the person on the beginning of the queue
- give out all information about the list
- get minimal waiting time
- get average waiting time
- get maximal waiting time
- get length of the queue
Everything is working totally fine and i get the right results over the console.
But now I JUST need to realize a GUI with a drop-down menu where I can choose the methods listed above.
It just doesn't work!
Of course, I can realize the drop-down menu,
but it doesn't work to apply the methods I got so wonderfully working over the console working at the GUI at all!
How do I attach the methods from class "list" with the buttons of my new class "GUI"?
How can I realize the TextField I need for the method "add a new person"?
Can I even combine the methods from the other class with this GUI at all?
I tried using the ActionListener but it always gives me the answer that the methods wouldn't exist, even if I just wrote them in the class GUI.
Was it a bad choice to program things to work over the standard console first?
Do I have to program everything anew for the GUI?
Please please please help me!