Using multiple instances of RSyntaxTextArea

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Using multiple instances of RSyntaxTextArea

Re: Using multiple instances of RSyntaxTextArea

Post by robert » Sat Oct 19, 2013 11:02 pm

What problems are you having exactly? RText is an example of an editor application that hosts multiple instances of RSTA in tabs:

http://fifesoft.com/rtext

Using multiple instances of RSyntaxTextArea

Post by JeffD » Sat Oct 19, 2013 8:23 pm

I was hoping to use a JTabbedPane with an instance of RSyntaxTextArea (along with some other stuff) in each tab, as a way to support editing of multiple files. However, it looks like quite a few things are static, so that (for example) all instances would use the same actions in their context menus. (I'm using those actions in some buttons as well.) I tried a few simple experiments, and it does indeed seem that there are problems.

Has anyone managed to use multiple instances? Is there some way of doing so that I may have overlooked?

Top

cron