I'm developing a program that allows users to drag rectangles with diffrent z-index etc. Now I'm building a WYSIWYG editor to let the users add information to the rectangles.
I want the users to see the text in the rectangles and planning to use a JTextPane for this with HTMLEditorKit, StyleSheet attached to the editor. How can I paint the JTextPane inside the java.awt.Rectangle. The rectangles are painted in a JPanel.
must I add all the JTextPanes to the JPanel? The Rectangles can be dragged so I hope I can add them to the Rectangle some how. Anyone who has an id�?