apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.65k stars 850 forks source link

Swing GUI Builder border settings do not work on the DEB package #7048

Closed wilyJ80 closed 5 months ago

wilyJ80 commented 8 months ago

Apache NetBeans version

Apache NetBeans 20

What happened

Tested on NetBeans 20 and 19 on Debian 12 LXQt, and NetBeans 19 on Windows 7. Following NetBeans' tutorials such as this to add a title to a JPanel's border using Title Border did not work on Debian, but worked on Windows. The border options had blank fields in its dropdown menus in Debian, and entering text content did not work either. Tried Maven and Ant as project types, neither worked. The problem only happens in the DEB package, though: the NetBeans 20 binary does not exhibit the issue on Debian!

Language / Project Type / NetBeans Component

Java Maven GUI Project (Swing)

How to reproduce

Following this tutorial, try adding a JFrame to an existing Java project with either Maven or Ant. Then, add a JPanel on top of it. Now, try adding a TitleBorder to it: the options will not work. Try changing the border title and such, you can't.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Debian 12

JDK

17

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

For added emphasis, this unwanted behavior was only observed on the DEB package!

Are you willing to submit a pull request?

No

neilcsmith-net commented 8 months ago

I cannot replicate with the community DEB package on Ubuntu. I don't have the ASF DEB installed at the moment.

Can you do a binary diff of the deb file tree and the one from the zip? Aside from the bundled JDK, the other difference between the community package and the one built on ASF infrastructure is the compression used (zstd rather than gzip). Debian has only just acquired support for zstd packages, and I wonder if there's some error in abstraction you're seeing. The deb is built from the binary zip.

The other option is that something is different in how the two variants are launching. Can you check the beginning of IDE log in both cases and highlight any differences? You could share both files here.

Please fix up the Markdown links in your text. They don't work.

wilyJ80 commented 8 months ago

Thank you for your attention. Took long, here's some info.

Tried on a live Ubuntu USB, did not work either. I installed Netbeans from its installer in the Apache website. The DEBs are these. Both the official and community installer DEBs didn't work. The Swing tutorial is this one, I just started out. Changing stuff in the Border dialog didn't work. Sorry for the broken links. I'm curious how it worked for you. Looking forward for updates. I even reinstalled my system just to be sure the problem wasn't on my end XD

Here's the diff of the IDE logs.

2c2
< >Log Session: Saturday, February 10, 2024 at 12:37:14 PM Brasilia Standard Time
---
> >Log Session: Saturday, February 10, 2024 at 12:21:59 PM Brasilia Standard Time
14,29c14,29
<   Installation            = /home/confia/bin/netbeans/nb
<                             /home/confia/bin/netbeans/ergonomics
<                             /home/confia/bin/netbeans/ide
<                             /home/confia/bin/netbeans/extide
<                             /home/confia/bin/netbeans/java
<                             /home/confia/bin/netbeans/apisupport
<                             /home/confia/bin/netbeans/webcommon
<                             /home/confia/bin/netbeans/websvccommon
<                             /home/confia/bin/netbeans/enterprise
<                             /home/confia/bin/netbeans/profiler
<                             /home/confia/bin/netbeans/php
<                             /home/confia/bin/netbeans/harness
<                             /home/confia/bin/netbeans/cpplite
<                             /home/confia/bin/netbeans/groovy
<                             /home/confia/bin/netbeans/javafx
<                             /home/confia/bin/netbeans/platform
---
>   Installation            = /usr/lib/apache-netbeans/nb
>                             /usr/lib/apache-netbeans/ergonomics
>                             /usr/lib/apache-netbeans/ide
>                             /usr/lib/apache-netbeans/extide
>                             /usr/lib/apache-netbeans/java
>                             /usr/lib/apache-netbeans/apisupport
>                             /usr/lib/apache-netbeans/webcommon
>                             /usr/lib/apache-netbeans/websvccommon
>                             /usr/lib/apache-netbeans/enterprise
>                             /usr/lib/apache-netbeans/profiler
>                             /usr/lib/apache-netbeans/php
>                             /usr/lib/apache-netbeans/harness
>                             /usr/lib/apache-netbeans/cpplite
>                             /usr/lib/apache-netbeans/groovy
>                             /usr/lib/apache-netbeans/javafx
>                             /usr/lib/apache-netbeans/platform
31,32c31,32
<   Application Classpath   = /home/confia/bin/netbeans/platform/lib/boot.jar:/home/confia/bin/netbeans/platform/lib/org-openide-modules.jar:/home/confia/bin/netbeans/platform/lib/org-openide-util.jar:/home/confia/bin/netbeans/platform/lib/org-openide-util-lookup.jar:/home/confia/bin/netbeans/platform/lib/org-openide-util-ui.jar
<   Startup Classpath       = /home/confia/bin/netbeans/platform/core/org-netbeans-libs-asm.jar:/home/confia/bin/netbeans/platform/core/core-base.jar:/home/confia/bin/netbeans/platform/core/asm-tree-9.5.jar:/home/confia/bin/netbeans/platform/core/core.jar:/home/confia/bin/netbeans/platform/core/asm-9.5.jar:/home/confia/bin/netbeans/platform/core/org-openide-filesystems.jar:/home/confia/bin/netbeans/platform/core/org-openide-filesystems-compat8.jar:/home/confia/bin/netbeans/platform/core/asm-commons-9.5.jar:/home/confia/bin/netbeans/nb/core/org-netbeans-upgrader.jar:/home/confia/bin/netbeans/nb/core/locale/core_nb.jar
---
>   Application Classpath   = /usr/lib/apache-netbeans/platform/lib/boot.jar:/usr/lib/apache-netbeans/platform/lib/org-openide-modules.jar:/usr/lib/apache-netbeans/platform/lib/org-openide-util.jar:/usr/lib/apache-netbeans/platform/lib/org-openide-util-lookup.jar:/usr/lib/apache-netbeans/platform/lib/org-openide-util-ui.jar
>   Startup Classpath       = /usr/lib/apache-netbeans/platform/core/org-netbeans-libs-asm.jar:/usr/lib/apache-netbeans/platform/core/core-base.jar:/usr/lib/apache-netbeans/platform/core/asm-tree-9.5.jar:/usr/lib/apache-netbeans/platform/core/core.jar:/usr/lib/apache-netbeans/platform/core/asm-9.5.jar:/usr/lib/apache-netbeans/platform/core/org-openide-filesystems.jar:/usr/lib/apache-netbeans/platform/core/org-openide-filesystems-compat8.jar:/usr/lib/apache-netbeans/platform/core/asm-commons-9.5.jar:/usr/lib/apache-netbeans/nb/core/org-netbeans-upgrader.jar:/usr/lib/apache-netbeans/nb/core/locale/core_nb.jar
34c34
< INFO [org.netbeans.modules.netbinox]: Install area set to file:/home/confia/bin/netbeans/
---
> INFO [org.netbeans.modules.netbinox]: Install area set to file:/usr/lib/apache-netbeans/
386a387,395
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.markdown.core@2.6.0.v20150901-2143 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.confluence.core@2.6.0.v20150901-2143 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.textile.core@2.6.0.v20150901-2143 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle bcutil@1.76.0 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle bcpkix@1.76.0 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.jgit.gpg.bc@6.7.0.202309050840-r resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.jgit.lfs@6.7.0.202309050840-r resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html@1.8.1 resolved
> INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html.json@1.8.1 resolved
390,392d398
< INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html@1.8.1 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html.json@1.8.1 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html.boot.script@1.8.1 resolved
393a400
> INFO [org.netbeans.core.netigso.Netigso]: bundle net.java.html.boot.script@1.8.1 resolved
395,400d401
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.netbeans.html.xhr4j@1.8.1 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle bcutil@1.76.0 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle bcpkix@1.76.0 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.textile.core@2.6.0.v20150901-2143 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.confluence.core@2.6.0.v20150901-2143 resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.mylyn.wikitext.markdown.core@2.6.0.v20150901-2143 resolved
402,403c403
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.jgit.gpg.bc@6.7.0.202309050840-r resolved
< INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.jgit.lfs@6.7.0.202309050840-r resolved
---
> INFO [org.netbeans.core.netigso.Netigso]: bundle org.netbeans.html.xhr4j@1.8.1 resolved
416,417c416,417
<   -Dnetbeans.dirs=/home/confia/bin/netbeans/nb:/home/confia/bin/netbeans/ergonomics:/home/confia/bin/netbeans/ide:/home/confia/bin/netbeans/extide:/home/confia/bin/netbeans/java:/home/confia/bin/netbeans/apisupport:/home/confia/bin/netbeans/webcommon:/home/confia/bin/netbeans/websvccommon:/home/confia/bin/netbeans/enterprise:/home/confia/bin/netbeans/mobility:/home/confia/bin/netbeans/profiler:/home/confia/bin/netbeans/python:/home/confia/bin/netbeans/php:/home/confia/bin/netbeans/identity:/home/confia/bin/netbeans/harness:/home/confia/bin/netbeans/cnd:/home/confia/bin/netbeans/cndext:/home/confia/bin/netbeans/cpplite:/home/confia/bin/netbeans/dlight:/home/confia/bin/netbeans/groovy:/home/confia/bin/netbeans/extra:/home/confia/bin/netbeans/javacard:/home/confia/bin/netbeans/javafx:/home/confia/bin/netbeans/rust:
<   -Dnetbeans.home=/home/confia/bin/netbeans/platform
---
>   -Dnetbeans.dirs=/usr/lib/apache-netbeans/nb:/usr/lib/apache-netbeans/ergonomics:/usr/lib/apache-netbeans/ide:/usr/lib/apache-netbeans/extide:/usr/lib/apache-netbeans/java:/usr/lib/apache-netbeans/apisupport:/usr/lib/apache-netbeans/webcommon:/usr/lib/apache-netbeans/websvccommon:/usr/lib/apache-netbeans/enterprise:/usr/lib/apache-netbeans/mobility:/usr/lib/apache-netbeans/profiler:/usr/lib/apache-netbeans/python:/usr/lib/apache-netbeans/php:/usr/lib/apache-netbeans/identity:/usr/lib/apache-netbeans/harness:/usr/lib/apache-netbeans/cnd:/usr/lib/apache-netbeans/cndext:/usr/lib/apache-netbeans/cpplite:/usr/lib/apache-netbeans/dlight:/usr/lib/apache-netbeans/groovy:/usr/lib/apache-netbeans/extra:/usr/lib/apache-netbeans/javacard:/usr/lib/apache-netbeans/javafx:/usr/lib/apache-netbeans/rust:
>   -Dnetbeans.home=/usr/lib/apache-netbeans/platform
490c490
< Classes: loaded=8645 total loaded=8645 unloaded 0
---
> Classes: loaded=8503 total loaded=8503 unloaded 0
492a493,494
> WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut: org.openide.loaders.XMLDataObject@a5c7ae1[MultiFileObject@2e68b55c[Actions/Help/master-help.xml]]
> 
mbien commented 5 months ago

The problem only happens in the DEB package

how do you know that? Does this mean you tried the zip and it worked or does this mean that it worked for you on windows but not on debian?

The border options had blank fields in its dropdown..

this makes me think that this is no packaging issue, but rather a graphical issue related to context menus. Can you post a screenshot?

wilyJ80 commented 5 months ago

Sorry for the long wait. Been a while since I tried Swing. Looks like I can't reproduce the issue anymore. I'll be closing for now. Maybe someone someday can find out what the bug was about. (I tried both latest and previous versions)