netbeans-platform

Flamingo ribbon: Java.lang.IllegalArgumentException: No interpolator found for java.lang.Float:java.lang.Float

浪尽此生 提交于 2019-12-24 02:55:12
问题 I'm using Flamingo Ribbon Bar in a NetBeans project, and I'm having a major issue with it: sometimes (I'm sorry I can't be more specific since I really can't figure out how to consistently replicate it) I get the following exception: Java.lang.IllegalArgumentException: No interpolator found for java.lang.Float:java.lang.Float at org.pushingpixels.trident.TimelinePropertyBuilder.getFieldInfo(TimelinePropertyBuilder.java:257) at org.pushingpixels.trident.Timeline.addPropertyToInterpolate

How to bundle additional (data) files with a Netbeans module?

泄露秘密 提交于 2019-12-23 09:33:33
问题 I'd like to bundle some data files with the Netbeans module i'm working on. I know that i can bundle resources by adding them in a subfolder of /src so they will be packed within the jar. But i don't want the files to appear within an archive. The files should appear "loose" in a subfolder of the RCP app's directory. Is there a way to achieve that? Thanks in advance, David 回答1: NetBeans modules are packaged into .nbm files, which are essentially JAR files with some extra info in them If you

How can I get a project type on Netbeans Platform?

。_饼干妹妹 提交于 2019-12-23 07:49:31
问题 Is there a way to know the type of a selected project? I would like to do some specific actions depending of the project type like a J2SE project. Below is the only way that I found to do that: public final class MyAction extends CookieAction { @Override public boolean isEnabled() { if(this.getActivatedNodes() == null || this.getActivatedNodes().length != 1) { return false; } Lookup lookup = this.getActivatedNodes()[0].getLookup(); // gets the selected project Project currentProject = lookup

IlegalStateException when I type unfinished code into a JEditorPane with syntax highlighting support

北战南征 提交于 2019-12-23 05:10:39
问题 Using ANTLR4 and the Netbeans Platform I have created a grammar for which I have implemented syntax highlighting in my Netbeans Platform application. Everything works fine up to the point when I try to alter my code. grammar MyRule; my_rule : '(' my_rule ')' | binary | binary_hyst | my_rule (AND my_rule)+ | my_rule (OR my_rule)+ ; binary : '(' binary ')' | unary (EQ | NE) unary ; binary_hyst : '(' binary_hyst ')' | unary hyst? ( GT | LT | GTE | LTE ) unary hyst? ; hyst : (HYST '(' unary ')');

How to create a custom button in Netbeans toolbar?

我只是一个虾纸丫 提交于 2019-12-21 12:11:37
问题 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? 回答1: 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 回答2: In addition to Tim's answer, you can create a simple

Lookup API NetBeans Platform + Maven: loosely coupled modules

本小妞迷上赌 提交于 2019-12-14 04:21:59
问题 I'm developing a NetBeans platform application and want to use lookup api to get implementations for specific interfaces, still keeping everything loosely coupled. But the lookup can't find any service provider. Well, I created: a Module (A) that contains two Interfaces (Prot,Com) and a class to show some GUI. a Module (B) that contains an implementation of interface Prot a Module (C) that contains an implementation of interface COM. To register an implementation i used @ServiceProvider

Disable menu items programmatically

試著忘記壹切 提交于 2019-12-14 04:19:36
问题 I am working on a Desktop app with the Netbeans RCP. I have a number of menu items that are beeing added to the menu through annotations in the TopComponents. I would like to be able to disable several of these menu items, depending on the access rights of the logged user. 回答1: One way to do this in the NetBeans Platform is to register a Presenter.Menu in the menu: @ActionID(id = "com.company.MyPresenter", category = "Edit") @ActionRegistration(displayName = "com.company.Bundle#CTL

How to change the icon of a Mavenized Netbeans application

怎甘沉沦 提交于 2019-12-13 21:28:49
问题 I have a Mavenized Netbeans Platform application, and i have followed THIS guide for create an Installer of it. Now i wanna change the icons of my app, but i don't know how to do. I have tried some different solutions: Changing the icon with ReplaceVistaIcon in THIS way (not a great solution) in the dir C:\Program Files\NetBeans 8.0\harness and in .m2\repository\org\codehaus\mojo\nbm-maven-harness\7.3\nbm-maven-harness-7.3.jar ; after installation, the icons returns at default version. Using

mouse wheel listener not working in jscrollbar

霸气de小男生 提交于 2019-12-13 14:08:07
问题 I am developing a desktop application in netbeans platform (netbeans module) in which i have a desktoppane and a jscrollbar. i have implemented MouseWheelListener and added scrollBar.addMouseWheelListener(this); in the constructor of the class. now when i am scrolling the wheel of mouse it do not scroll the scroll bar though i am getting values in the private void scrollBarMouseWheelMoved(java.awt.event.MouseWheelEvent evt) { System.out.println("mouse value is------------ " + evt.paramString(

NetBeans jFrames not working (just showing loading…)

有些话、适合烂在心里 提交于 2019-12-13 08:54:09
问题 I created a new project in Netbeans IDE 7.0.1. In that project I created a new JFrame form. But that frame is not loading. Then I tried to run the program anyway and it gave the following exceptions: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - package org.jdesktop.layout does not exist at login.initComponents(login.java:33) at login.<init>(login.java:20) at login$1.run(login.java:78) at java.awt.event.InvocationEvent.dispatch(InvocationEvent