An extension of RSyntaxTextArea that adds information about the file being edited, such as:
Its name and location.
Is it dirty?
Is it read-only?
The last time it was loaded or saved to disk (local files only).
The file's encoding on disk.
Easy access to the line separator.
Loading and saving is also built into the editor.
Both local and remote files (e.g. ftp) are supported. See the FileLocation class for more information.
RTextScrollPane sp = (RTextScrollPane)jTabbedPane.getComponentAt(i);
Taneeda wrote:So, i have another question: When i check with isDirty() i get true, even if hadn't done any changes. Why that?
robert wrote:...Obviously, calling something like setText() to put the initial text in will set the dirty flag to true. ...
robert wrote:...just call setDirty(false) after your initialization...
Users browsing this forum: No registered users and 0 guests