How does a person go about adding an item to a queue within a gui? I have a textarea and a textfield.

Recommended Answers

All 2 Replies

queue.add(textField.getText())

Either have an "Add" button, or wait until the user presses enter in the textfield to trigger adding the item to the queue

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.