Hi guys,
i am developing a java program about a bank, with customers and tellers.
About the GUI:
I am using the MVC, so i have the viewer with only two buttons (Start and finish). The program will only deal with those buttons. And when the program runs you can watch the bank interaction. The first in the queue is sent to the teller and the queue is updated going every customer one step forward.
i developed the java queue with LinkedListed method and now, i am using the JTextArea to add queue info into the textArea. Each line of the textArea will have specific info about the customer and his correspondent type of transaction.
1. I can not manage to see even the empty JTextArea. How is it possible? I added the following methods to add the text area. Do I need to add something else?
CustomerQueue = new JTextArea(15, 5);
CustomerQueue.setSize(5, 15);
Font f2 = new Font ("Serif", Font.BOLD, 14);
CustomerQueue.setFont(f2);
CustomerQueue.setOpaque(false);
CustomerQueue.setEditable(false);
2. Then, I tried using the append method to insert a line at the end of the JTextArea. Is that all right? How can i implement the methods used by the queue, push and pop? push=append? pop=?
thanks very much for your help,
Jon

