GitHub user daveshenal added a comment to the discussion: Use netbeans editor as a standalone component in a Jetpack compose desktop app
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 IDE), and it works... but you lose most of what makes it nice (code completion, hyperlinking, language plugins), since those are themselves NetBeans modules tied to the platform. If what you actually want is "a good code editor in a Kotlin desktop app" rather than "NetBeans's editor specifically," you'll get there much faster with RSyntaxTextArea (Swing, drop into SwingPanel directly) or a Monaco/VS Code webview bridge. Same idea you were already considering, just skip the NetBeans dependency. GitHub link: https://github.com/apache/netbeans/discussions/9458#discussioncomment-17376869 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
