netbeans-platform

NetBeans Platform: How to style the NetBeans GUI components programmatically?

ⅰ亾dé卋堺 提交于 2021-02-08 11:28:26
问题 Intro I have to program a fat client using NetBeans Platform and JavaFX 11. One of the requirements is to offer a default and dark theme mode for the application. So if the user of my GUI application press the dark mode button, the application's GUI changes to the dark style. Problem While its obvious for me how to style the JFX components (via a CSS file), the CSS file doesn't has an impact on the NetBeans Platform's components like the menu bar. For instance the JavaFX components inside a

Unable to connect to the NetBeans Distribution because of Zero sized file

假装没事ソ 提交于 2020-02-21 13:35:04
问题 I recently reinstalled Netbeans IDE on my Windows 10 PC in order to restore some unrelated configurations. When I tried checking for new plugins in order to be able to download the Sakila sample database, I get this error. I've tested the connection on both No Proxy and Use Proxy Settings, and both connection tests seem to end succesfully. I have allowed Netbeans through my firewall, but this has changed nothing either. I haven't touched my proxy configuration, so it's on default (autodetect)

Unable to connect to the NetBeans Distribution because of Zero sized file

南笙酒味 提交于 2020-02-21 13:34:16
问题 I recently reinstalled Netbeans IDE on my Windows 10 PC in order to restore some unrelated configurations. When I tried checking for new plugins in order to be able to download the Sakila sample database, I get this error. I've tested the connection on both No Proxy and Use Proxy Settings, and both connection tests seem to end succesfully. I have allowed Netbeans through my firewall, but this has changed nothing either. I haven't touched my proxy configuration, so it's on default (autodetect)

NBP rich client in a multi-tier enterprise application?

倖福魔咒の 提交于 2020-01-15 06:01:11
问题 Just started a project that involves a rich client implemented in Netbeans Platform (NBP), Spring framework is chosen to implement business logic and for data access. Since I've come from a web application development background, I have some questions and would also like some suggestions. What are the options for a rich client to integrate with Spring? Any best practices/books/docs regarding a rich client in a multi-tier Java EE environment? Anything that needs special attention? 回答1: We

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

徘徊边缘 提交于 2020-01-13 09:22: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

how to create collapsible and expandable panel in Java Swing?

浪子不回头ぞ 提交于 2020-01-11 06:48:12
问题 I need to create a collapsible and expandable panel in Java Swing.. I am not able to find it in the DESIGN PALETTE of Netbeans 7.4 .. Kindly help me 回答1: JavaFX has a JFXPanel class which allows you to embed JavaFX components in Swing. Using that, you can embed the TitledPane and Accordion controls into your Swing application. Your end result will be like this: This is exactly what you need, isn't it ? =) This saves you a lot of coding work. Tutorial on how to work with these JavaFX

make a module's xml layer visible to other modules

孤街浪徒 提交于 2020-01-06 07:16:31
问题 In Netbeans Platform I'm having one module watch the xml filesystem and respond when it's changed by other modules. I've created a layer.xml in another module. The changes show up in the IDE when in the watching module I click on XML layer node and open up . However during runtime when the watching module is looking at the xml filesystem the changes from the other module aren't there. The other module can see its own changes during runtime. Is there a setting somewhere for a module that lets

make a module's xml layer visible to other modules

情到浓时终转凉″ 提交于 2020-01-06 07:16:00
问题 In Netbeans Platform I'm having one module watch the xml filesystem and respond when it's changed by other modules. I've created a layer.xml in another module. The changes show up in the IDE when in the watching module I click on XML layer node and open up . However during runtime when the watching module is looking at the xml filesystem the changes from the other module aren't there. The other module can see its own changes during runtime. Is there a setting somewhere for a module that lets

How to make a dynamic image at run time?

此生再无相见时 提交于 2020-01-03 04:49:07
问题 I'm working on a card game based on the NetBeans platform and I'm struggling to get my head around dynamic images. Why dynamic? Well I want the cards to adjust at run time to changes to the page (i.e. name, text, cost, etc). My first hack at it was creating a component (JPanel) with labels pre-placed where I loaded the text/image based on the card values. That seems to work fine but then it became troublesome when I thought about some pages having a different look in later editions (meaning

Netbeans 7 - how to define the order of the tooldbars

别等时光非礼了梦想. 提交于 2019-12-25 19:06:28
问题 i'm trying to change the toolbars order. before netbeans 7 the order was set according to the layout.xml/ but in netBeans 7 it is all annotation. 回答1: All the annotations will do is create a layer.xml file for you (At runtime I think). You can still create your own layer.xml file and change the order of the toolbars in there. Just make sure that your layer file is being referenced in the manifest. At Runtime all the layers will be merged together - including the one that you manually create