No problem at all. Thanks for suggestion to help!
yes, .getText is what I needed. Now, how do I initiate a call
of .getText in my application at the user's request?
It must be a Listener I suppose...
Regarding JMenu or buttons : I do not think it matters
much for me, though I'd prefer to also have keybinding for basic
actions (so the buttons should look like "Search. Ctrl-S.")
And I would guess I would prefer to have more features rather
than less (e.g. line numbering etc).
Speaking of updating examples: do you mind if I make a suggestion?
I think it might be useful to many people if you add
an RSyntaxTextEditor class, rather than
.demo.RSyntaxTextAreaDemoApp[let]. It seems as a trivial change;
but I think it might be immeduately useful to many people
who just want to plug a syntax-enabled basic editor into their browser apps.
I found quite a number of posts asking for such an editor
when googling for it myself.
As the name suggests, the class would start up an editor;
the editor should have a "Save" button used to pass
the edited text back to the application.
And then you'd have an example like this:
...main...
RSyntaxTextEditor textEditor = new RSyntaxTextEditor(40,70);
textEditor.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
textEditor.setText("some string");
textEditor.start ;//-or- textEditor.setVisible(true) ;
.... // user clicked "Save" button!
..
textEditor.getText(editedText);
... // print editedText to standard output
... // user clicked "Quit" button!
..
textEditor.getText(editedText);
.... // print 'User killed the editor' to standart output
textEditor.quit();
..
it *does* tell you to add the current directory to the classpath parameter. Ops. Oh, my mistake. Sorry.