Customize BeanTreeView node appearance

2023-11-01 Thread Mike Hallan
I would like to customize a BeanTreeView node's appearance depending on whether it is selected and has focus. I would like to change the text color, foreground & background color, and ideally change font and italicize. It would seem a good place to do it would be from MyNode that extends Abstract

Re: Exceptions on NB platform app startup

2023-09-04 Thread Mike Hallan
  I seem to have found a fix, mentioned by Neil Smith at https://github.com/apache/netbeans/issues/5110 Some options need to be added to run.args.extra. So my project.properties file now contains:   run.args.extra=-J--add-opens=java.base/java.net=ALL-UNNAMED -J--add-exports=java.desktop/sun.a

Exceptions on NB platform app startup

2023-09-03 Thread Mike Hallan
I continue to get execeptions on a NB platform app startup despite including --add-opens as I have seen posted in several places. I have struggled with this for longer than I would like to admit, I hope someone can please help me resolve.   I am running NB19-rc5 (same was happening on NB16) and

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
the 2 FlatLafs from UIManager.getInstalledLookAndFeels(). It works, it just shows the 2 LAFs in Tools-Options-Appearance. On Wednesday, August 31, 2022 at 04:42:42 PM GMT+3, Neil C Smith wrote: On Wed, 31 Aug 2022 at 14:28, Mike Hallan wrote: >  I found that Installer's valid

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
atLightLaf") is called followed by NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatLightLaf"). As I said, it seems to work although it doesn't feel ideal.         On Wednesday, August 31, 2022 at 03:08:35 PM GMT+3, Neil C Smith wrote:

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
x27;s in the platform/core.windows module. You might create something that checks/changes the following file on startup: $USER_DIR/config/Preferences/laf.properties On 8/29/22 00:43, Mike Hallan wrote: Hi,  I would like to remove all LAFs so that the only ones available in MyApp

Remove old LAFs from application and use new default LAF instead

2022-08-29 Thread Mike Hallan
Hi, I would like to remove all LAFs so that the only ones available in MyApp are "FlatLaf Light" and "FlatLaf Dark".I have set the default LAF in branding resource bundle for MyApp to be com.formdev.flatlaf.FlatLightLaf.Ideally I want that if a user of a previous version of MyApp, who had been u

Re: NetBeans 14 Platform Application Version

2022-08-17 Thread Mike Hallan
In an Installer module, override restored() method and in it include  System.setProperty("netbeans.buildnumber", myVersionString); There is also this reference DevFaqVersionNumber  | | | | DevFaqVersionNumber Apache NetBeans Apache NetBeans wiki DevFaqVersionNumber | | | On Sat

Re: NB 14, 15 Platform Applications and Java 8 compatibility

2022-08-01 Thread Mike Hallan
Thanks very much Neil & Michael for the clarification and the helpful options to consider. I now plan to bundle a JDK with the application and set myapp.conf jdkhome param to refer to it. Eventually I'll look into jlink to trim down the JDK although I'm a bit concerned about missing something s

NB 14, 15 Platform Applications and Java 8 compatibility

2022-07-29 Thread Mike Hallan
I know NB 15 is still not released but I'm using rc1 it because 14 had an issue that made it unusable for me (forms designer frequently freezing). After migrating from NB 12, the NB Platform's project 'Manage Platform' remained at Java 8. I found that the produced NB Platform Application ran fine

Re: NB 14 IDE freezes on popup menu in Swing Navigator

2022-07-21 Thread Mike Hallan
es, etc so far in FlatLaf of 15 RC1. I guess I will just postpone my UI refresh until at least after NB 15 is released. Oh well, such is the way of progress!   Thank you again to you and NB dev team! On Wednesday, July 20, 2022 at 10:41:03 PM GMT+3, Michael Bien wrote: On 20.07.22 2

NB 14 IDE freezes on popup menu in Swing Navigator

2022-07-20 Thread Mike Hallan
I'm using NB 14 and I've tried running the IDE on JDK 11 and 18, both from Adoptium, on Win 10.   I've found that very often the IDE will freeze if in the Swing Navigator, I select a component eg.a JPanel, then right-click on it and move the mouse over to the popup menu. Usually happens when I h

Re: FlatLAF on NB 14

2022-06-28 Thread Mike Hallan
Got it working. Don't do step 3) that I described because adding the dependencies as per step 4) will already include the relevant classes. On Monday, June 27, 2022, 10:32:09 PM GMT+3, Mike Hallan wrote: Neil,  I tried what you said and I'm still having issues. Hopefully

Re: FlatLAF on NB 14

2022-06-27 Thread Mike Hallan
addNotify(JComponent.java:4740) at java.awt.Container.addNotify(Container.java:2776) Do I need to add some code to explicitly load a class in Installer?   Thanks for your help! On Monday, June 27, 2022, 04:12:59 PM GMT+3, Neil C Smith wrote: Hi, On Mon, 27 Jun 2022 at 08:35, Mike Hallan wrote: > I

Re: FlatLAF on NB 14

2022-06-27 Thread Mike Hallan
        // NbPreferences.root().node( "laf" ).put( "laf", "com.formdev.flatlaf.FlatLightLaf" );                    }    } On Sunday, June 26, 2022, 03:09:48 PM GMT+3, Mike Hallan wrote: Hi,  I upgraded an existing NB Platform Application (using Ant) to NB 14 and want to get the app to

FlatLAF on NB 14

2022-06-26 Thread Mike Hallan
Hi,  I upgraded an existing NB Platform Application (using Ant) to NB 14 and want to get the app to use FlatLAF Light as the default on startup. It doesn't and the FlatLAF doesn't even appear as an option in the app's LAF combo box. Even if I create a completely a new Platform Application the Fla

Log4j vulnerability

2021-12-15 Thread Mike Hallan
Does Netbeans Platform at any level use Log4j? I was thinking maybe the logging module may, if not use it, then be based on it. Are applications built on Netbeans Platform are in any way vulnerable to Log4j exploits as described at mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44228 ? Thanks,Mike

How to customize Window->Reset Windows action

2021-05-06 Thread Mike Hallan
Is there any way to customize how a Netbeans Platform application will perform Window->Reset Windows? Specifically, when this action is performed I want to open/close some of the windows in their default positions depending on the current state of the application. For example, if the applicatio

Reliable way to determine startup from Command Line or GUI

2021-05-01 Thread Mike Hallan
Hi, Can someone please tell me if there's a simple reliable way to determine at startup (e.g. in an Installer) whether the Netbeans application was started from the GUI or command line? I'm using OptionProcessor and I thought that simply finding a mandatory parameter that my application expects

Re: How to hide Performance from toolbar by default (not remove it)

2021-04-28 Thread Mike Hallan
Thanks for the replies Neil & Klaus, Unfortunately I can't seem to get it to work. >From Neil's examples, it seems like it a modification to the IDE files that >will also get propagated to the built application. I'd prefer to leave the IDE >as-is and only have the app with Performance not visible

How to hide Performance from toolbar by default (not remove it)

2021-04-28 Thread Mike Hallan
Hi,  I've just migrated an application from NB8.2 to NB12.3.  Is there a way to hide the Performance/Profile item from the toolbar by default? I know I can remove it by deleting the Performance item in XML Layer-Toolbars-Performance but I don't want to remove it. I just want it hidden from view w