Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Neil C Smith
On Mon, 15 Nov 2021, 21:15 Jerome Lelasseux,  wrote:

> Sorry I meant FlatLaf Dark.
>
> I use the following in ModuleInstall::validate()
>
> NbPreferences.root().node("laf").put("laf",
> "com.formdev.flatlaf.FlatDarkLaf");
> UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark",
> FlatDarkLaf.class.getName()));
>

Try removing the second line. Leave the FlatLaf module to install the look
and feel. If that's not enough also add dependencies in that module on the
FlatLaf modules. See eg.
https://github.com/praxis-live/praxis-live/blob/master/praxis.live.laf/src/org/praxislive/ide/laf/Installer.java#L47
This works fine for me.

Best wishes,

Neil


Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Jerome Lelasseux
 I checked the PR code and I think I found the issue. 
nb.options.categories.tabPanelBackground color property seems to be not 
defined, so it returns white.


netbeans/platform/options.api/src/org/netbeans/modules/options/OptionsPanel.java:
 private Color getTabPanelBackground() {
Color uiColor = 
UIManager.getColor("nb.options.categories.tabPanelBackground"); //NOI18N
if (uiColor != null) {
return uiColor;
}

if( useUIDefaultsColors() ) {// true for Metal or Nimbus only
Color res = UIManager.getColor( "Tree.background" ); //NOI18N
if( null == res )
res = Color.white;
return new Color( res.getRGB() );
}
return Color.white;
}

If I add in my app 
licationUIManager.put("nb.options.categories.tabPanelBackground", 
Color.ORANGE); the Options ribbon becomes orange.

Le lundi 15 novembre 2021, 22:15:40 UTC+1, Jerome Lelasseux 
 a écrit :  
 
  Sorry I meant FlatLaf Dark.
I use the following in ModuleInstall::validate()

NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatDarkLaf");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark", 
FlatDarkLaf.class.getName())); 

I tried the 2 options mentionned in the PR (below), it had some effect but not 
on the Options white ribbon...
-J-Dflatlaf.useWindowDecorations=false \
-J-Dflatlaf.menuBarEmbedded=false





Le lundi 15 novembre 2021, 16:46:14 UTC+1, Neil C Smith 
 a écrit :  
 
 On Sun, 14 Nov 2021 at 19:54, Jerome Lelasseux
 wrote:
> I made a new release of my Netbeans platform application (NB 12.5, 
> JDK11.0.13, DarkLaf) and I noticed that the Options ruban is now white (see 
> image attached). It was dark when I built the previous release using NB12.3 
> (and it's also dark in the Options dialog of NB12.5 when using DarkLaf).
>
> I could not find any change in my code that could explain this. If someone 
> has an idea where I should search...

What is DarkLaf?  Darcula or FlatLaf Dark?

How are you setting the Look and Feel?  Some things changed in this
area with https://github.com/apache/netbeans/pull/2872 that might be
affected.

Best wishes,

Neil


Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Jerome Lelasseux
 Sorry I meant FlatLaf Dark.
I use the following in ModuleInstall::validate()

NbPreferences.root().node("laf").put("laf", "com.formdev.flatlaf.FlatDarkLaf");
UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Dark", 
FlatDarkLaf.class.getName())); 

I tried the 2 options mentionned in the PR (below), it had some effect but not 
on the Options white ribbon...
-J-Dflatlaf.useWindowDecorations=false \
-J-Dflatlaf.menuBarEmbedded=false





Le lundi 15 novembre 2021, 16:46:14 UTC+1, Neil C Smith 
 a écrit :  
 
 On Sun, 14 Nov 2021 at 19:54, Jerome Lelasseux
 wrote:
> I made a new release of my Netbeans platform application (NB 12.5, 
> JDK11.0.13, DarkLaf) and I noticed that the Options ruban is now white (see 
> image attached). It was dark when I built the previous release using NB12.3 
> (and it's also dark in the Options dialog of NB12.5 when using DarkLaf).
>
> I could not find any change in my code that could explain this. If someone 
> has an idea where I should search...

What is DarkLaf?  Darcula or FlatLaf Dark?

How are you setting the Look and Feel?  Some things changed in this
area with https://github.com/apache/netbeans/pull/2872 that might be
affected.

Best wishes,

Neil
  

Re: The Options ruban remains white with DarkLaf

2021-11-15 Thread Neil C Smith
On Sun, 14 Nov 2021 at 19:54, Jerome Lelasseux
 wrote:
> I made a new release of my Netbeans platform application (NB 12.5, 
> JDK11.0.13, DarkLaf) and I noticed that the Options ruban is now white (see 
> image attached). It was dark when I built the previous release using NB12.3 
> (and it's also dark in the Options dialog of NB12.5 when using DarkLaf).
>
> I could not find any change in my code that could explain this. If someone 
> has an idea where I should search...

What is DarkLaf?  Darcula or FlatLaf Dark?

How are you setting the Look and Feel?  Some things changed in this
area with https://github.com/apache/netbeans/pull/2872 that might be
affected.

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-15 Thread David Green
Is the document referring to the
version org.apache.netbeans.utilities:nbm-maven-plugin (or of Maven) rather
than maven-jar-plugin?

On Nov 15, 2021 at 9:12:28 AM, Eymeric VIEUILLE  wrote:

> Hi,
>
>
> Thx for the answer.
>
>
>
> Like said before, I’m looking for a way to add an implementation
> dependency. I found this :
>
> http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html
>
>
>
> The tag « moduleDependencies » seems to do what I am expecting but it is
> said that this is only available from version 3.8
>
> With older version of maven-jar-plugin, an error is present in pom file.
> With later, the error disappears but when compiling i get :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
>
>
> *De :* David Green 
> *Envoyé :* lundi 15 novembre 2021 15:02
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>; Eymeric VIEUILLE 
> *Objet :* [EXTERNAL] Re: Implementation dependency in a maven module
>
>
>
> Hi,
>
>
>
> I am not a Maven expert but it looks like 3.2.1 is latest in github
>  apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting
> 3.1.4 instead of 3.14?
>
>
>
> Dave
>
>
>
> On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
> wrote:
>
> Hi again !
>
>
>
> Nobody has answers for it ?
>
>
>
> *Envoyé :* lundi 8 novembre 2021 15:29
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>
> *Objet :* Implementation dependency in a maven module
>
>
>
> Hi !
>
>
>
> I am doing the migration of a netbeans based application from Ant to Maven
> (Netbeans 12.0 version)
>
>
>
> In our project, we had implementation dependencies on netbeans modules
> (core-windows for example). In the old way, no problem : on the dependency
> core-windows, you could right click and go in « Edit » menu to select
> « Implementation Version » and set the expected « Major Release Version »
> value.
>
>
>
> Now with Maven, in my pom.xml, i added :
>
> 
>
> org.apache.maven.plugins
>
> maven-jar-plugin
>
> 3.14
>
> 
>
> 
>
>
> ${project.build.outputDirectory}/META-INF/MANIFEST.MF
>
> 
>
>
> framework/api/layer.xml
>
> 
>
> 
>
> 
>
>
> org.netbeans.modules:org-netbeans-core-windows
>
> impl
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> I get the following error when compiling :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
> The 3.14 version of maven-jar-plugin is effectively not available on this
> repository (only olders < 3.2). Am i pointing at the wrong maven
> repository ?
>
>
>
> Moreover, I think i’m doing it the wrong way for adding the implementation
> dependency properly in my project. Can you tell me how i can do it ?
>
> --
>
> Sent from a mobile device. Please excuse any typos.
>


RE: [EXTERNAL] Re: Implementation dependency in a maven module

2021-11-15 Thread Eymeric VIEUILLE
Hi,

Thx for the answer.

Like said before, I’m looking for a way to add an implementation dependency. I 
found this :
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

The tag « moduleDependencies » seems to do what I am expecting but it is said 
that this is only available from version 3.8
With older version of maven-jar-plugin, an error is present in pom file. With 
later, the error disappears but when compiling i get :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]


De : David Green 
Envoyé : lundi 15 novembre 2021 15:02
À : Netbeans mailing list (users@netbeans.apache.org) 
; Eymeric VIEUILLE 
Objet : [EXTERNAL] Re: Implementation dependency in a maven module

Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github  
apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting 3.1.4 
instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
mailto:evieui...@sii.fr.invalid>> wrote:
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list 
(users@netbeans.apache.org) 
mailto:users@netbeans.apache.org>>
Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i’m doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?
--
Sent from a mobile device. Please excuse any typos.


Re: Implementation dependency in a maven module

2021-11-15 Thread David Green
Hi,

I am not a Maven expert but it looks like 3.2.1 is latest in github
 apache/maven-jar-plugin (see pom.xml file).   Are you perhaps wanting
3.1.4 instead of 3.14?

Dave

On Mon, Nov 15, 2021 at 7:39 AM Eymeric VIEUILLE 
wrote:

> Hi again !
>
>
>
> Nobody has answers for it ?
>
>
>
> *Envoyé :* lundi 8 novembre 2021 15:29
> *À :* Netbeans mailing list (users@netbeans.apache.org) <
> users@netbeans.apache.org>
> *Objet :* Implementation dependency in a maven module
>
>
>
> Hi !
>
>
>
> I am doing the migration of a netbeans based application from Ant to Maven
> (Netbeans 12.0 version)
>
>
>
> In our project, we had implementation dependencies on netbeans modules
> (core-windows for example). In the old way, no problem : on the dependency
> core-windows, you could right click and go in « Edit » menu to select
> « Implementation Version » and set the expected « Major Release Version »
> value.
>
>
>
> Now with Maven, in my pom.xml, i added :
>
> 
>
> org.apache.maven.plugins
>
> maven-jar-plugin
>
> 3.14
>
> 
>
> 
>
>
> ${project.build.outputDirectory}/META-INF/MANIFEST.MF
>
> 
>
>
> framework/api/layer.xml
>
> 
>
> 
>
> 
>
>
> org.netbeans.modules:org-netbeans-core-windows
>
> impl
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> I get the following error when compiling :
>
> Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its
> dependencies could not be resolved: Failure to find
> org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in
> https://repo.maven.apache.org/maven2/ was cached in the local repository,
> resolution will not be reattempted until the update interval of mirror1 has
> elapsed or updates are forced -> [Help 1]
>
>
>
> The 3.14 version of maven-jar-plugin is effectively not available on this
> repository (only olders < 3.2). Am i pointing at the wrong maven
> repository ?
>
>
>
> Moreover, I think i’m doing it the wrong way for adding the implementation
> dependency properly in my project. Can you tell me how i can do it ?
>
-- 
Sent from a mobile device. Please excuse any typos.


RE: Implementation dependency in a maven module

2021-11-15 Thread Eymeric VIEUILLE
Hi again !

Nobody has answers for it ?

Envoyé : lundi 8 novembre 2021 15:29
À : Netbeans mailing list (users@netbeans.apache.org) 

Objet : Implementation dependency in a maven module

Hi !

I am doing the migration of a netbeans based application from Ant to Maven 
(Netbeans 12.0 version)

In our project, we had implementation dependencies on netbeans modules 
(core-windows for example). In the old way, no problem : on the dependency 
core-windows, you could right click and go in « Edit » menu to select « 
Implementation Version » and set the expected « Major Release Version » value.

Now with Maven, in my pom.xml, i added :

org.apache.maven.plugins
maven-jar-plugin
3.14



${project.build.outputDirectory}/META-INF/MANIFEST.MF


framework/api/layer.xml




org.netbeans.modules:org-netbeans-core-windows
impl






I get the following error when compiling :
Plugin org.apache.maven.plugins:maven-jar-plugin:3.14 or one of its 
dependencies could not be resolved: Failure to find 
org.apache.maven.plugins:maven-jar-plugin:jar:3.14 in 
https://repo.maven.apache.org/maven2/ was cached in the local repository, 
resolution will not be reattempted until the update interval of mirror1 has 
elapsed or updates are forced -> [Help 1]

The 3.14 version of maven-jar-plugin is effectively not available on this 
repository (only olders < 3.2). Am i pointing at the wrong maven repository ?

Moreover, I think i'm doing it the wrong way for adding the implementation 
dependency properly in my project. Can you tell me how i can do it ?


Groovy users: please reproduce issues with 12.6-rc3

2021-11-15 Thread Geertjan Wielenga
Hi all,

Everyone who's reported issues connected to Groovy in recent releases of
NetBeans, can you verify if those problems are still there in 12.6-rc3?

If you can still reproduce, please provide the issue numbers of issues that
can be reproduced.

Go here to get 12.6 rc-3:

https://lists.apache.org/thread/x807ox1hb6tjtj5rmw76vc0x95r7y0wb

Thanks,

Gj