JLabel in JTextField

Hi,

I'm making an application and I want the user to display boolean formulas(like (A AND B)OR C) in a JTextfield. The user will not be allowed to type in this textfield, he can only select in it. He has to construct the formula by clicking on buttons like the AND-button, the condition-button... I want to display the formula in the textfield with JLabels, so I can give them nice background colors and that it looks like the formula is build out of blocks (yellow condition block, blue AND-operator, yellow condition block). This way the user can click on them seperatly to view them or select them to delete it. Is this possible to put a JLabel in JTextfield(maybe textpane) and then to allow to select it, or to click on it.

Thank you

[759 byte] By [nonakresala] at [2007-10-3 8:36:01]
# 1
I would suggest a JEditorPane or JTextPane: http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
zadoka at 2007-7-15 3:43:39 > top of Java-index,Desktop,Core GUI APIs...