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

