netbeans-platform

How do I hide menus without a layer file in NetBeans Platform?

筅森魡賤 提交于 2019-12-02 06:32:48
问题 I am having a hard time customizing my menus in the NetBeans Platform. The examples I've seen require you to have a Layer file which I don't believe I have in my NetBeans Platform Project. To hide a menu via layers you are supposed to do this: <folder name="Menu"> <folder name="View_hidden"/> <folder name="Edit"> <file name="org-openide-actions-FindAction.shadow_hidden"/> </folder> </folder> I would like to know the annotation way of hiding menus. However, if this is the only way to do it,

How do I hide menus without a layer file in NetBeans Platform?

点点圈 提交于 2019-12-02 02:25:40
I am having a hard time customizing my menus in the NetBeans Platform. The examples I've seen require you to have a Layer file which I don't believe I have in my NetBeans Platform Project. To hide a menu via layers you are supposed to do this: <folder name="Menu"> <folder name="View_hidden"/> <folder name="Edit"> <file name="org-openide-actions-FindAction.shadow_hidden"/> </folder> </folder> I would like to know the annotation way of hiding menus. However, if this is the only way to do it, where would I put the layer file and what would i name it? The only way to hide menu items is to add the

how to create collapsible and expandable panel in Java Swing?

爱⌒轻易说出口 提交于 2019-12-01 10:42:51
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 Little Child 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 components is here: http://docs.oracle.com/javafx/2/ui_controls/accordion-titledpane.htm and embedding

How to remove items from menu in netBeans platform?

断了今生、忘了曾经 提交于 2019-11-30 14:53:30
问题 I have module application. When I run it, the main window of that app has quite complex menu. How to remove some items from menu? 回答1: You can remove menu items from the menu bar by adding entries to your project's layer.xml file. You should read through 'Tweaking the User Interface' from the 'NetBeans Platform HTML Editor' tutorial to get a rough idea of what you will need to do. There is another tutorial-ish description of using the layer file to hide items, too. 回答2: In netbeans 8.0 , the

How to remove items from menu in netBeans platform?

帅比萌擦擦* 提交于 2019-11-30 12:36:43
I have module application. When I run it, the main window of that app has quite complex menu. How to remove some items from menu? You can remove menu items from the menu bar by adding entries to your project's layer.xml file. You should read through 'Tweaking the User Interface' from the 'NetBeans Platform HTML Editor' tutorial to get a rough idea of what you will need to do. There is another tutorial-ish description of using the layer file to hide items , too. In netbeans 8.0 , the layer file is generated when ever a module contains 'configuration type' annonations in java code, for example a

How to attach missing java JDK sources in Netbeans 7

匆匆过客 提交于 2019-11-29 04:35:46
When I try to navigate in NetBeans to some JDK source code it only shows that it's compiled code and the source code is missing and I can attach it. After attaching the source with the "Attach.." button nothing happens? Where should I attach the source code? Tools->JavaPlatforms->JSE{choose your jdk}->source tab->Add jar/folder {chose src.zip from installed JDK path.} 来源: https://stackoverflow.com/questions/11071265/how-to-attach-missing-java-jdk-sources-in-netbeans-7

How to turn off a key listener in NetBeans wizard panels?

余生颓废 提交于 2019-11-28 13:51:54
I developed a simple plugin for NetBeans IDE. I have a little problem with default key event on TopComponenet of Wizard panel: For example: I have a wizard with 3 steps. In second step I have a JTextField where user put some values and after that appear a JList below this text field. Everything is okay until user choose a some value from list and than press key ENTER then my panel goes to next Step 3. I attach a key listener to list something like: list = new JList(new PackagesListModel()); list.addKeyListener(new KeyAdapter() { @Override public void keyReleased(java.awt.event.KeyEvent evt) {

How to attach missing java JDK sources in Netbeans 7

纵然是瞬间 提交于 2019-11-27 18:35:58
问题 When I try to navigate in NetBeans to some JDK source code it only shows that it's compiled code and the source code is missing and I can attach it. After attaching the source with the "Attach.." button nothing happens? Where should I attach the source code? 回答1: Tools->JavaPlatforms->JSE{choose your jdk}->source tab->Add jar/folder {chose src.zip from installed JDK path.} 来源: https://stackoverflow.com/questions/11071265/how-to-attach-missing-java-jdk-sources-in-netbeans-7

How to turn off a key listener in NetBeans wizard panels?

拟墨画扇 提交于 2019-11-27 07:59:57
问题 I developed a simple plugin for NetBeans IDE. I have a little problem with default key event on TopComponenet of Wizard panel: For example: I have a wizard with 3 steps. In second step I have a JTextField where user put some values and after that appear a JList below this text field. Everything is okay until user choose a some value from list and than press key ENTER then my panel goes to next Step 3. I attach a key listener to list something like: list = new JList(new PackagesListModel());