I'm using rsyntaxtextarea
, i've added it to Netbeans palette, here it has two components,
An RSyntaxTextArea is the main text editor class. It extends JTextArea, so it has all the standard methods you'd expect from a Swing text component, plus more specific to handling syntax highlighting.
An RTextScrollPane is an extension of JScrollPane that supports line numbers. You can use a standard JScrollPane if you want, but when editing source code, it is often nice to have line numbering enabled.
I can actually add RSyntaxTextArea
by dragging and dropping it from palette, but i cannot do that for RTextScrollPane
(it is necessary for RSyntaxTextArea
to feel better than existing scroll panel). The error message says that the component cannot be instantiated and that you should make sure it is a JavaBean
How can i add these two components in netbeans through drag & drop ?
// Try it;
*/