netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Unable to type in the output panel with single Java file

Open sabit-sbbt opened this issue 1 year ago • 1 comments

Apache NetBeans version

Apache NetBeans 21

What happened

I like to work with single java file without project because of learning purpose. If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.

So I feel comfortable to run single java file. While learning any programming language, it needs to run a file again and again to practice & understand code. But the main problem is when I run a single java file with some simple user input statement, then I am unable to type in the output to give user input. On the other hand if I run same java code under a project (maven or others), then it is possible to type in the output panel to give user input.

It means, typing in the output panel is not possible with single java file. But why? Please, I am seeking for help to fix this issue as it become possible to type in the output panel with single java file.

I also attached two screenshots where the problem is simply visible. First Second

Language / Project Type / NetBeans Component

No response

How to reproduce

Step 1: Find out the config file of the output panel, Step 2: Look for properties which are associated for single java file, Finally serach out the typing control for user input.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10 Pro

JDK

JDK 21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

sabit-sbbt avatar Mar 08 '24 05:03 sabit-sbbt

the single file launcher seems to use a very basic output window. e.g stop button is missing too. This is something which would be good to improve I agree.

If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.

I highly doubt that this makes a difference. Ant projects should have very low overhead. Maven projects should start in less than a second on most systems and if you configure NetBeans to use mvnd (https://github.com/apache/maven-mvnd) it starts almost instantly.

mbien avatar Mar 08 '24 22:03 mbien