Is there a way I can create a JTextArea or JTextField with some JLabels inside it, like in this screenshot from Facebook:
What I am trying to do is put some JButtons with titles like "Apple", "Orange", ... When user clicks on a JButton of those, say "Orange", a Jlabel with the word Orange will be added to the JTextArea or JTextField. If user clicked on the [x] on the Jlabel, the word will be removed from the field.