netbeans-platform

Using JavaFX in a Netbeans Platform application

人盡茶涼 提交于 2019-12-13 03:56:03
问题 I tried to start developing an NB platform application that holds a JFXPanel in a TopComponent . Unfortunately, an Exception is thrown at runtime when the JFXPanel is instantiated. I saw that it's because i don't have the JavaFX native libs (like glass.dll) in the sub-directories of my project. Before i try to solve the problem just by copying the files, I'd like to ask you if there is a better way. In my opinion, i shouldn't have to copy the native libs into my project because they should be

Cannot build OSGi bundle for a Netbeans RCP application

喜欢而已 提交于 2019-12-12 03:44:45
问题 When I try to build an OSGi bundle of a Netbeans RCP application (for example: the provided sample Feed Reader Application), it gives the following error: [error] Exception in thread "main" /opt/developer/netbeans-8.0/harness/suite.xml:545: The following error occurred while executing this line: [error] /opt/developer/netbeans-8.0/harness/osgi.xml:63: Could not prescan /opt/developer/netbeans-8.0/platform/modules/org-netbeans-libs-javafx.jar: java.io.IOException: Unrecognized constant pool

How do I use ServiceLoader in a Netbeans Platform project to add SPIs

末鹿安然 提交于 2019-12-11 09:38:34
问题 I'm trying to add MP3 capabilities to my Netbeans Platform project in Netbeans 8.0. I understand that this can be easily added to the javax.sound.sampled libraries using ServiceLoader and an SPI for the MP3 codecs. So I downloaded MP3 SPI and unzipped it, then in Netbeans I created a Jar wrapper module with the three jars that were in the zip file (one jar was in the root of the zip and two were under lib/ ). Then I made the modules that need the MP3 functionality depend on this wrapper

Eclipse RCP 4 vs NetBeans Platform 8 today: what to choose?

余生长醉 提交于 2019-12-09 15:53:22
问题 I'm about to start a fairly big application for my company, and since it HAS to be cross platform, we're pointing towards Java (would have loved C#, but explored the Xamarin ecosystem and the Mac part seems to be quite behind the rest package...) Now, I'm evaluating both Netbeans 8 and Eclipse 4 as RCP. Before I continue I have to say that I've been maintaining for almost a year our previous software which was written in Netbeans Platform, but it has so many performance issues and so many

How to change the LookAndFeel of the NetBeans Platform Framework Application

我怕爱的太早我们不能终老 提交于 2019-12-06 14:35:29
问题 I cannot figure out how to change the LookAndFeel of the application I built on the NetBeans platform framework, can anybody please help? I want to change its look using the TinyLAF java api http://www.muntjak.de/hans/java/tinylaf/index.html. I know how to change the LookAndFeel when developing a regular Swing application in the NetBeans IDE, but not when developing it on the NetBeans Platform framework. This is the code, for TinyLAF, that I use for regular Swing applications: Toolkit

Where should a custom Netbeans Platform conf. file be so that maven finds it?

前提是你 提交于 2019-12-06 04:46:21
问题 Applications built on top of the NetBeans platform have a <myappdir>/etc/<myapp>.conf file determining, among other things, application JVM parameters. Historically, this file was a part of the NetBeans IDE installation (as far as I could tell), but starting with NB 6.9, custom files are now supported. I am having trouble packaging a custom configuration file using Maven to build the application. I imagine the app.conf property should have been set in the project's pom under project/build

Web Start Application built on NetBeans Platform doesn't create desktop shortcut & start menu item

一笑奈何 提交于 2019-12-05 06:00:27
I've created a NetBeans Platform application that is launched using Java Web Start. I built the WAR file using the 'Build JNLP Application'-command in Netbeans 6.8. I've added a desktop shortcut and menu item to the JNLP file, but for some reason, these are not created when the application is launched. However, when I go to: Control Panel -> Java -> Temporary Internet Files -> View -> Select my application > Click 'Install shortcuts to the selected application' the desktop and menu shortcuts are created correctly. Also, in the Java Console, the Shortcut Creation option is set to the following

How to create a custom button in Netbeans toolbar?

不问归期 提交于 2019-12-04 04:24:18
I have a command line script I saved in a file on my PC. How can I create a toolbar button in NB 7.0 so that clicking on this button will run my saved script? Also, what file extension should I name my script file so it will be executable, or does it matter at all? Here is a Toolbar button tutorial . And your script can be anything that can be executed in or by Java, the NetBeans Platform does not constrain you in that manner In addition to Tim's answer, you can create a simple shortcut to an Ant target, as outlined in the Netbeans Wiki : Open the Files window and find your build.xml Expand

Eclipse RCP 4 vs NetBeans Platform 8 today: what to choose?

拟墨画扇 提交于 2019-12-04 02:54:34
I'm about to start a fairly big application for my company, and since it HAS to be cross platform, we're pointing towards Java (would have loved C#, but explored the Xamarin ecosystem and the Mac part seems to be quite behind the rest package...) Now, I'm evaluating both Netbeans 8 and Eclipse 4 as RCP. Before I continue I have to say that I've been maintaining for almost a year our previous software which was written in Netbeans Platform, but it has so many performance issues and so many bugs (some of which, it seems, tied to the platform itself -- i.e. plugins not updating with no apparen

Netbeans: need to include 3'rd party directory in classpath

a 夏天 提交于 2019-12-02 18:25:26
问题 We have an application developed in NetBeans, based on the NetBeans platform. There's a 3'rd party program that we have a runtime dependency on, more specifically a jar in the other progams lib folder. How should we include the other progam's jar in our classpath? The recommendation from the other progam's manufacturer is to set environment variable CLASSPATH to include C:\Progam Files\Other Program\lib\theJAR.jar And if that's not possible, we should copy theJAR.jar to JRE-HOME\lib\ext We