Skip to content

Unable to type in the output panel with single Java file #7142

Closed

Description

@sabit-xeon

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

Activity

  1. added
    kind:bug
    needs:triage
    on Mar 8, 2024
  2. added
    Java
    and removed
    needs:triage
    on Mar 8, 2024
  3. mbien commented on Mar 8, 2024

    @mbien
    Member

    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.

  4. added a commit that references this issue on Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Javakind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions