0

I have a custom JTextArea and want to surround it with a custom JScrollPane.

Unfortunately, the form designer only suggests using the regular JScrollPane for surrounding and doesn't seem to give me the option to define a custom object like the palette would.

Specifically, I'm trying to use this project's RSyntaxTextArea surrounded with a RTextScrollPane.

BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
  • 1
    This is [not supported](https://youtrack.jetbrains.com/issue/IDEABKL-6932). – yole Nov 18 '16 at 15:49
  • Disappointing if this is true. It has been years... – BullyWiiPlaza Nov 18 '16 at 15:51
  • As the developer who used to be responsible for this feature in IntelliJ IDEA, I'm quite sure that this is true. The UI Designer is no longer under active development, so it's extremely unlikely that this will ever be implemented. – yole Nov 18 '16 at 15:55
  • @yole: Oh, thank you. What would you use instead? Doing it by hand or some plugin? – BullyWiiPlaza Nov 18 '16 at 16:00
  • One option is to surround with a regular scroll pane and then to use the "Morph component" action to transform it to your custom scroll pane. – yole Nov 18 '16 at 16:02
  • @yole: "Morph component" is greyed out for the surrounding `JScrollPane`. I already tried that – BullyWiiPlaza Nov 18 '16 at 16:03
  • `Doing it by hand ` - always. Don't let an IDE generate your GUI code. The generated code will not be portable if you ever use a different IDE. Use the IDE to help with compiling, debugging etc. Spend you time learning Java, not the IDE. – camickr Nov 18 '16 at 16:09
  • @camickr: I rather not have hundreds of lines of "trashy" GUI code/waste plenty of time on this and instead concentrate most of my time on actually implementing the logic. The old Eclipse times were horrible with GUI design since it also looked bad. I do like the way IntelliJ IDEA handles this and I'm not switching any time soon since it's the best IDE... – BullyWiiPlaza Nov 18 '16 at 17:01
  • @BullyWiiPlaza, `I rather not have hundreds of lines of "trashy" GUI code` - exactly the code generated by an IDE is lengthy. The code you write will be far more logical and easy to maintain. – camickr Nov 18 '16 at 17:28

0 Answers0