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

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 >

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

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

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

Re: Can;t link src/test/java to package being tested.

2024-04-02 Thread Michael Bien
the exec.mainClass property of pom.xml is the main entry point of your program and becomes relevant if you want to run the project in the shell or once its built. NB can run anything which has a main method or any test simply via right click -> run/debug. It doesn't really care what is in the

Re: Can;t link src/test/java to package being tested.

2024-04-02 Thread slipbits
Thanks  Tamás; I didn't know that and I'm glad you mentioned it. But the real question is how do I test the fool thing. I compiled everything successfully under NB. I built everything successfully under NB. Now here is where my ignorance shows. I don't want the fool thing located under

Re: Can;t link src/test/java to package being tested.

2024-04-02 Thread Tamás Cservenák
Howdy, src/main/java and src/test/java is the maven standard... T On Tue, Apr 2, 2024, 19:46 slipbits wrote: > I know this is a dumb question but I'm stumped. I created a new project > and NB created src/main and src/test subdirectories. When I created my test > code in src/test/... NB

Can;t link src/test/java to package being tested.

2024-04-02 Thread slipbits
I know this is a dumb question but I'm stumped. I created a new project and NB created src/main and src/test subdirectories. When I created my test code in src/test/... NB recognized the main package and I could link to it i n the editor and run compiles. But when I try to execute in in the

Re: Error refactoring code

2024-04-02 Thread PavelTurk
Hi! See https://github.com/apache/netbeans/issues/3725 Best regards, Pavel On 4/2/24 6:42 PM, Tellis, Wyatt wrote: Hi, I'm trying to rename a method on a class and keep getting the following error: Module Java Refactoring threw java.lang.IllegalStateException:

Error refactoring code

2024-04-02 Thread Tellis, Wyatt
Hi, I'm trying to rename a method on a class and keep getting the following error: Module Java Refactoring threw java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.code.Type.getThrownTypes()" because "tree.meth.type" is null. I've done this