Re: NetBeans integrated terminal

2024-04-02 Thread Antonio
Hi Pavel, Some answers below. On 2/4/24 22:36, PavelTurk wrote: Hello all. Could anyone explain how it is possible to run native application, for example, midnight commander in NB terminal? NetBeans uses a pure-Java terminal emulator. This is spread in different modules, the low-level modu

Re: NetBeans integrated terminal

2024-04-02 Thread Thomas Wolf
I don't know how the Netbeans team chose to implement its terminal feature. But I'd imagine it would involve a Java Swing component such as JEditorPanel and sending Midnight commander's stdout/stderr streams to that panel and forwarding keyboard input to the stdin of that application. tom > O

Re: NetBeans integrated terminal

2024-04-02 Thread PavelTurk
Thank you for your answer. It is clear, that it is possible to run external processes. The question is about "view". How midnight commander TUI interface is rendered in Swing Window? Best regards, Pavel On 4/2/24 11:43 PM, Thomas Wolf wrote: Just because an application was written in Java do

Re: NetBeans integrated terminal

2024-04-02 Thread Thomas Wolf
Just because an application was written in Java doesn't mean it can't run external processes. Look into the java API documentation on ProcessBuilder class. Tom > On Apr 2, 2024, at 4:36 PM, PavelTurk wrote: > > Hello all. > > Could anyone explain how it is possible to run native application

NetBeans integrated terminal

2024-04-02 Thread PavelTurk
Hello all. Could anyone explain how it is possible to run native application, for example, midnight commander in NB terminal? I mean NB is a java application and as I understand it uses swing library for UI. And how  was native application made to work inside java application with swing? What i