Skip to content
Discussion options

You must be logged in to vote

Yes, technically, but it's not straightforward....

Compose Desktop can host Swing components via SwingPanel (you create the JComponent in its factory lambda). That part is easy and well-documented and people already embed Swing code editors like RSyntaxTextArea this way.

The hard part is NetBeans's editor itself - it's built as NetBeans Platform modules that expect the module system around them (Lookup, MimeLookup for language settings, layer.xml registration). It's not a "add this jar, new up this class" component. People have pulled it out standalone before (just the editor module jars + bootstrapping minimal Lookup/MimeLookup to get an NbEditorKit-backed JEditorPane running outside the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@parrotcar00
Comment options

Answer selected by parrotcar00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants