Re: Adding Payara Server to Jakarta EE 9 Project
I have tested with Netbeans 14 and I still have the same problem for Jakarta EE 9 projects. Thanks, Mike > On Jun 17, 2022, at 7:38 AM, Amn wrote: > > Now that NB14, OOH HOO, has anyone of you tested Payara on it? > > Have a good weekend folks! > > On 2022-05-11 11:08 a.m., Josh Juneau wrote: >> Payara does work in NetBeans, but the Jakarta EE 9 schemas for Payara server >> may not have been updated. I can check on that for a future update. >> >> Incidentally, I am working on updating the Jakarta schemas for GlassFish. >> Hope to have this work completed for the next release. >> >> Thanks >> >> Josh Juneau >> juneau...@gmail.com >> http://jj-blogger.blogspot.com >> Apress Author >> >> >> >> On Wed, May 11, 2022 at 9:51 AM Laszlo Kishalmi >> wrote: >> Payara shall work with NetBeans, some Payara devs even contribute code for >> the Payara plugin, however I have not checked the latest development in that >> area. >> >> On 5/11/22 00:30, Amn wrote: >>> I don't think Payara works under Netbeans. I am migrating from Win to >>> Linux, I'll try under the linux platform and see how things go here. >>> >>> On 2022-05-04 09:50, Mike Ryan wrote: Hello, In both Netbeans 12.6 and 13 I’m having trouble figuring out how to add a Payara Server to my Jakarta EE 9 project. Payara version: 5.2022.2 Apache NetBeans version: 12.6 or 13 JDK: 11.0.8 I have the following in my Gradle build file: dependencies { providedCompile ' jakarta.platform:jakarta.jakartaee-web-api:9.1.0’ } The project compiles fine. I can add the Payara Server to my Java EE 8 projects. But when I go to my project’s Properties -> Run I see Java EE Version: Jakarta EE 9 Web but there are no servers in the Server dropdown. I’m assuming there’s just some config I’m forgetting about somewhere. Anyone have any ideas? Thanks, Mike - 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 >>> -- >>> ArbolOne >>> Using Fire Fox and Thunderbird. >>> Developing using Java, C/C++, HTM/CSS and SQLite as our platform has been >>> exciting and most rewarding.[Ñ] > -- > Using Fire Fox and Thunderbird. > Developing for Android using Java, C/C++, HTM/CSS and SQLite as our platform > has been exciting and most rewarding. > [ Ñ ] > > Virus-free. www.avg.com - 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: FlatLAF on NB 14
Neil, I tried what you said and I'm still having issues. Hopefully something simple perhaps you could please clarify, probably in step 4) below. Here's what I did: 1) I took out the code that I initially showed in Installer. 2) I set the LAF through Branding.Specifically, r-click on NB platform app node, chose Branding... and under Resource Bundles tab set org/netbeans/swing/plaf/Bundle.properties LookAndFeelClassName=com.formdev.flatlaf.FlatLightLaf and left LookAndFeelCustomsClassName = default. 3) Added to my module as Wrapped JARs: org-netbeans-libs-flatlaf-RELEASE140.jarorg-netbeans-swing-laf-flatlaf-RELEASE140.jar 4) In this same module, in Module Dependencies I added:"Flaflaf""FlatLaf Look and Feel" After clean, build & run, I get: WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.netbeans.swing.laf.flatlaf.ui.FlatToolbarDragger arbitrarily from one of ModuleCL@3341a4db[org.netbeans.swing.laf.flatlaf] and ModuleCL@3af30783[module1.test.com] starting from SystemClassLoader[76 modules]; see http://wiki.netbeans.org/DevFaqModuleCCEINFO [org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer]java.lang.ClassNotFoundException: Will not load class org.netbeans.swing.laf.flatlaf.ui.FlatToolbarDragger arbitrarily from one of ModuleCL@3341a4db[org.netbeans.swing.laf.flatlaf] and ModuleCL@3af30783[module1.test.com] starting from SystemClassLoader[76 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE at org.netbeans.ProxyClassLoader.doFindClass(ProxyClassLoader.java:191) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:125) at org.netbeans.ModuleManager$SystemClassLoader.loadClass(ModuleManager.java:769) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[catch] at org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer.createDragger(ToolbarContainer.java:260) at org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer.addNotify(ToolbarContainer.java:147) at java.awt.Container.addNotify(Container.java:2776) at javax.swing.JComponent.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 managed to load FlatLAF in Installer module (my code shown below) Firstly, don't do this. We changed the IDE default look and feel to FlatLaf, not the platform itself. Do the change the same way the IDE does, ie. by branding it. Changes in the IDE - https://github.com/apache/netbeans/pull/3332 Similar in a platform app - https://github.com/praxis-live/praxis-live/blob/master/branding/modules/org-netbeans-swing-plaf.jar/org/netbeans/swing/plaf/Bundle.properties > I did see in https://search.maven.org/search?q=flatlaf that there exist two > NB-specific flatlaf jars: org-netbeans-libs-flatlaf-RELEASE140.jar and > org-netbeans-swing-laf-flatlaf-RELEASE140.jar (don't what to do with these, > if anything. I assume I shouldn't use them, although when I did add as a > wrapped jar then the additional tab for 'FlatLAF' appeared in LAF settings, > although empty) You need both of those modules. And you also need one of *your* modules to depend on org.netbeans.swing.laf.flatlaf to get it loaded. The module with the customs is autoload, which it probably shouldn't be! 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: FlatLAF on NB 14
Hi, On Mon, 27 Jun 2022 at 08:35, Mike Hallan wrote: > I managed to load FlatLAF in Installer module (my code shown below) Firstly, don't do this. We changed the IDE default look and feel to FlatLaf, not the platform itself. Do the change the same way the IDE does, ie. by branding it. Changes in the IDE - https://github.com/apache/netbeans/pull/3332 Similar in a platform app - https://github.com/praxis-live/praxis-live/blob/master/branding/modules/org-netbeans-swing-plaf.jar/org/netbeans/swing/plaf/Bundle.properties > I did see in https://search.maven.org/search?q=flatlaf that there exist two > NB-specific flatlaf jars: org-netbeans-libs-flatlaf-RELEASE140.jar and > org-netbeans-swing-laf-flatlaf-RELEASE140.jar (don't what to do with these, > if anything. I assume I shouldn't use them, although when I did add as a > wrapped jar then the additional tab for 'FlatLAF' appeared in LAF settings, > although empty) You need both of those modules. And you also need one of *your* modules to depend on org.netbeans.swing.laf.flatlaf to get it loaded. The module with the customs is autoload, which it probably shouldn't be! 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: FlatLAF on NB 14
I managed to load FlatLAF in Installer module (my code shown below) My app screen shot: https://snipboard.io/DyuCkl.jpgCompared to FlatLAF in NB IDE, note that in my app the tabs are:- shorter in height.- non-selected tab "Module2 Window" is VERY DARK.- selected tab has no underline. For comparison, here is the IDE with FlatLAF: https://snipboard.io/vpB4Ox.jpg- tab heights taller- non-selected tab is only slightly darker than focused tab.- Selected tabs have underlines. I did see in https://search.maven.org/search?q=flatlaf that there exist two NB-specific flatlaf jars: org-netbeans-libs-flatlaf-RELEASE140.jar and org-netbeans-swing-laf-flatlaf-RELEASE140.jar (don't what to do with these, if anything. I assume I shouldn't use them, although when I did add as a wrapped jar then the additional tab for 'FlatLAF' appeared in LAF settings, although empty) I have checked NB dev faq and found nothing related to implementing flatlaf on NB: https://netbeans.apache.org/wiki/DevFaqIndex.asciidoc The only meaningful info re flatlaf that I can find is on https://www.formdev.com/ so makes me wonder whether my app is just seeing the default/raw flatlaf (eg. the dark non-selected tab) and customizations are needed. If so, is there a simple process to make my app look like the NB IDE. i.e. A properties file to copy from NB somewhere and/or will it involve the org-netbeans-*.jar files I mentioned above?Is there any info on this somewhere or NB dev help page for using flatlaf I'm not seeing somewhere, please? == import com.formdev.flatlaf.FlatLightLaf;import javax.swing.UIManager;import org.openide.modules.ModuleInstall; public class Installer extends ModuleInstall { @Override public void restored() { } @Override public void validate() throws IllegalStateException { super.validate(); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/OverriddenMethodBody setupLAF(); } private void setupLAF(){ UIManager.installLookAndFeel(new UIManager.LookAndFeelInfo("FlatLaf Light", FlatLightLaf.class.getName())); try { UIManager.setLookAndFeel(new FlatLightLaf()); } catch (Exception ex) { System.err.println("Failed to initialize LaF"); } // 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 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 FlatLAF does not appear in the app's LAF combo box. All I see in the app's Tools>Options:Appearance>Look and Feel combo box is: Metal, Nimbus, CDE/Motif, Windows (default) and Windows Classic. Whereas in the NB 14 IDE's LAF combo box I also see FlatLAF options and even an additional FlatLAF options tab. Can anybody please tell me if I do need to manually install some kind of FlatLAF JAR with additional calls to UIManager.installLookAndFeel() etc so that a NB Platform Application (built by NB14) will start with FlatLAF listed in its LAF combo box and ideally have the application start with FlatLAF as default. It just seems wrong bc FlatLAF is already in the IDE and has probably been optimized for NB too. Thanks,Mike