Re: The Options ruban remains white with DarkLaf

2021-11-19 Thread Jerome Lelasseux
 Adding the 2nd non-API module solved the problem, thanks Neil!
This really needs to be documented somewhere. I could add an entry "How to 
enable FlatLaf in your NB platform application?" in the Apache Netbeans FAQ. 
But what is the process to do this ? 

Jerome


Le jeudi 18 novembre 2021, 21:14:22 UTC+1, Neil C Smith 
 a écrit :  
 
 On Thu, 18 Nov 2021 at 19:56, Jerome Lelasseux  wrote:
> The FlatLaf module was already a dependency.

You might need to make sure you have both FlatLaf modules as
dependencies.  At some point I added the non-API one in to fix
something, but I can't remember if this was it.  If you're using the
Ant build, you can find it by selecting to show non-API modules.

> FYI I submitted an issue on the FlatLaf GitHub as well.

This is unlikely a bug in FlatLaf.  It seems to be a bug where the
FlatLaf customs in the IDE module are not being triggered correctly.
eg. 
https://github.com/apache/netbeans/blob/master/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java#L59

Maybe stick a breakpoint on that, launch with the debugger and see
what's happening.

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: Maven + Gradle

2021-11-19 Thread Dragan Bjedov
Yes, it works.

пет, 19. нов 2021. у 01:00 Eric Bresie  је написао/ла:

> Does suggestion here work for you?
>
> https://issues.apache.org/jira/browse/NETBEANS-2320
>
> Eric
>
>
> On Thu, Nov 18, 2021 at 3:32 PM Dragan Bjedov 
> wrote:
>
>> Hello,
>>
>> I have a project which contains build.gradle and pom.xml. Netbeans by
>> default detects this project as Gradle one. Is there a possibility to tell
>> NetBeans how to open a project?
>> In my case as Maven project.
>>
>> Thanks in advance
>>
>>
>> --
>>
>> MSc Dragan Bjedov
>>
>> --
> Eric Bresie
> ebre...@gmail.com
>


-- 

MSc Dragan Bjedov


Re: Netbeans development on the Mac

2021-11-19 Thread Chris Olsen
Hi, Pieter --

  Thank you!  Will certainly check this out...

  > at least that is how the theory goes.

  Oh, how many times I have uttered this very phrase to me statistics 
students...

  -- Chris

- Original Message -
From: "Pieter van den Hombergh" 
To: "COlsen" 
Cc: "users" 
Sent: Friday, November 19, 2021 9:01:17 AM
Subject: Re: Netbeans development on the Mac

Hi Chris,

I had some success with a deployable toy project using link and package. I
have created a github repo for this small demo project at
https://github.com/homberghp/fxsurveyor
It is derived from a former student exercise.
Details to the zip file: It is a multimodule maven file, and consist of two
submodules: a javafx component called fxtriangulate and a GUI application
using the javafx component called surveyor.
I use linux, but as far as the javafx theory goes, you should be able to
adapt it to your mac osx needs using the information in
https://codetinkering.com/how-to-use-jpackage-tool-cli-for-macos-apps/
I followed (for linux) the guidelines on
https://dev.to/cherrychain/javafx-jlink-and-jpackage-h9


To play with it, use the following steps.
1. Download (clone) the project.
2. in the resulting directory do 'mvn compile'
3. go to the app dir with 'cd surveyor'
4 mvn -P fx javafx:jlink to produce a linked version. which results in a
zip file that can be deployed. At this stage you should be able to run the
run.sh command in the surveyor dir.
5 mvn -P fx jpackage:package Results in a debian package (for the kind of
linux I run on). After you have applied the tweaks described in
https://codetinkering.com/how-to-use-jpackage-tool-cli-for-macos-apps/
it should result in a dmg file for your mac osx, at least that is how the
theory goes.

Success.







On Thu, Nov 18, 2021 at 4:06 PM Chris Olsen  wrote:

> Hello, Everyone --
>
>   I am a seriously amateur JavaFX programmer and have written a freeware
> statistical package for high school teachers of Advanced Placement
> Statistics.  I have no trouble packaging my program for the PC, but
> commonly teachers run afoul of the Mac Gatekeeper when trying to install
> the program.  (They are not typically comfortable with doing anything on
> the terminal command line.)
>
>   I am willing (grumble, grumble) to pony up the $99/year to support my
> program in the App Store, but not willing to desert Netbeans. (Old dog, new
> tricks.)
>  The U.S. education system being what it is, teachers have Macs varying in
> age from long in the tooth to the new Macs with the M1 chip. So I have two
> questions:
>
>   1.  How much of a headache would it be to develop (actually translate)
> and package for a variety of Mac OSs?
>
>   2.  What are good sources (books, URLs, whatever) where I can learn more
> about how to do this?
>
>   Thanks in advance!
>
>   -- Chris
>
>
>
> -
> 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
>
>

-- 
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.

-
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: Netbeans development on the Mac

2021-11-19 Thread Pieter van den Hombergh
Hi Chris,

I had some success with a deployable toy project using link and package. I
have created a github repo for this small demo project at
https://github.com/homberghp/fxsurveyor
It is derived from a former student exercise.
Details to the zip file: It is a multimodule maven file, and consist of two
submodules: a javafx component called fxtriangulate and a GUI application
using the javafx component called surveyor.
I use linux, but as far as the javafx theory goes, you should be able to
adapt it to your mac osx needs using the information in
https://codetinkering.com/how-to-use-jpackage-tool-cli-for-macos-apps/
I followed (for linux) the guidelines on
https://dev.to/cherrychain/javafx-jlink-and-jpackage-h9


To play with it, use the following steps.
1. Download (clone) the project.
2. in the resulting directory do 'mvn compile'
3. go to the app dir with 'cd surveyor'
4 mvn -P fx javafx:jlink to produce a linked version. which results in a
zip file that can be deployed. At this stage you should be able to run the
run.sh command in the surveyor dir.
5 mvn -P fx jpackage:package Results in a debian package (for the kind of
linux I run on). After you have applied the tweaks described in
https://codetinkering.com/how-to-use-jpackage-tool-cli-for-macos-apps/
it should result in a dmg file for your mac osx, at least that is how the
theory goes.

Success.







On Thu, Nov 18, 2021 at 4:06 PM Chris Olsen  wrote:

> Hello, Everyone --
>
>   I am a seriously amateur JavaFX programmer and have written a freeware
> statistical package for high school teachers of Advanced Placement
> Statistics.  I have no trouble packaging my program for the PC, but
> commonly teachers run afoul of the Mac Gatekeeper when trying to install
> the program.  (They are not typically comfortable with doing anything on
> the terminal command line.)
>
>   I am willing (grumble, grumble) to pony up the $99/year to support my
> program in the App Store, but not willing to desert Netbeans. (Old dog, new
> tricks.)
>  The U.S. education system being what it is, teachers have Macs varying in
> age from long in the tooth to the new Macs with the M1 chip. So I have two
> questions:
>
>   1.  How much of a headache would it be to develop (actually translate)
> and package for a variety of Mac OSs?
>
>   2.  What are good sources (books, URLs, whatever) where I can learn more
> about how to do this?
>
>   Thanks in advance!
>
>   -- Chris
>
>
>
> -
> 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
>
>

-- 
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.


Re: How to remove Maven from Netbeans 12.0

2021-11-19 Thread Bayless Kirtley
Thank you Mark. Show Details was the secret. Plugins showed 11 
installed, none of which was Maven. After clicking Show Details there 
were many more, including Maven and Gradle although Gradle was already 
grey. I deactivated Maven.


Thanks again

Bayless


On 11/18/21 7:09 PM, Mark A. Flacy wrote:

Greetings,

Try Tools -> Plugins -> Installed and then click on "Show details" .  Look for
Maven in the list and click the green check to make it go grey.   If you
loaded gradle support, you should turn that off as well.

I couldn't live without maven library resolution, so I don't know if this will
actually work.  You may have to restart NetBeans as well.



-
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



Test results window is not updated when using JUnit5 and Ant

2021-11-19 Thread Konsult
I'm trying to find out why the test results window is not updated when I run 
Junit 5 tests.
The project is a Java Free Form Ant project

Example, build target running Junit 4 tests:







The tests runs as expected, output is shown in NetBeans output window and
NetBeans test results window is updated with the results.

Example, build target running Junit 5 tests:








  


The tests runs as expected, output is shown in NetBeans output window but
NetBeans test results window is not updated at all.

I can make a Gradle or Maven project and run Junit5 tests and the test results
window is properly updated. So I don't think it is a general problem with 
Junit5.

So:
- Am I missing something?
- Is this a known problem?
- Where does the input to the test results window come from? (It does not seem 
like it is a result of Ant/Junit stdout or any result files, so NetBeans must 
have some other way to get result.)

I'm using NetBeans 12.5

-
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: Netbeans development on the Mac

2021-11-19 Thread Emilian Bold
The user provided JRE doesn't exist anymore. You have to bundle a runtime
with your app. Zulu is a good runtime and they also have a version with
JavaFX included so you don't have to tweak that.

--emi

joi, 18 nov. 2021, 22:01 Alonso Del Arte  a scris:

> So the Macs have the JRE but not JavaFX? Is the separation of JavaFX an
> issue? Is it one of several issues?
>
> Al
>
> On Thu, Nov 18, 2021 at 10:58 AM Emilian Bold 
> wrote:
>
>> It's not terribly hard. I don't know the app store but for notarization I
>> ended up with a script that did the required steps sign and it blessed the
>> DMG. Creating the DMG with some included JRE (say, from Azul Zulu) is also
>> trivial.
>>
>> --emi
>>
>> joi, 18 nov. 2021, 17:06 Chris Olsen  a scris:
>>
>>> Hello, Everyone --
>>>
>>>   I am a seriously amateur JavaFX programmer and have written a freeware
>>> statistical package for high school teachers of Advanced Placement
>>> Statistics.  I have no trouble packaging my program for the PC, but
>>> commonly teachers run afoul of the Mac Gatekeeper when trying to install
>>> the program.  (They are not typically comfortable with doing anything on
>>> the terminal command line.)
>>>
>>>   I am willing (grumble, grumble) to pony up the $99/year to support my
>>> program in the App Store, but not willing to desert Netbeans. (Old dog, new
>>> tricks.)
>>>  The U.S. education system being what it is, teachers have Macs varying
>>> in age from long in the tooth to the new Macs with the M1 chip. So I have
>>> two questions:
>>>
>>>   1.  How much of a headache would it be to develop (actually translate)
>>> and package for a variety of Mac OSs?
>>>
>>>   2.  What are good sources (books, URLs, whatever) where I can learn
>>> more about how to do this?
>>>
>>>   Thanks in advance!
>>>
>>>   -- Chris
>>>
>>>
>>>
>>> -
>>> 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
>>>
>>>
>
> --
> Alonso del Arte
> Author at SmashWords.com
> 
> Musician at ReverbNation.com 
>