Posts

Create New File Type resolver and associate the data type in Netbeans

1. make a new xml Document ( eg, PdbResolver) 2.choose DTD Constrained Documenton the second page of the new Xml Document wizard 3. On third page, in the DTD Public Id, choose, -//NetBeans//DTD MIME Resolver 1.0//EN,  from the drop down menu 4. save it 5. make a new java file , call it as DataObject ( eg: PdbDataObject), write ur code... 6. save it, and add  @MIMEResolver.Registration(displayName = "PdbResolver", resource = "/alifea/gui/PdbResolver.xml") for registering the mime tyoe to the data object file 7. In the layer file add                 <folder name="x-pdb">  <folder name="Factories">                     <file name="PdbDataLoader.instance">                    ...

Understanding Bayesian Belief Networks, and their Inference

Amazing lecture series from IIT Kharagpur for understanding Bayesian Networks, Bayesian Belief Networks, and their Inference. http://www.youtube.com/watch?v=P1b9Y4aacOE&list=PLAED5C0CF1D9BA622

Create a Floating/Undocked Non-sigleton Window in Netbeans

first of all some really useful links on this topic: http://netbeans.dzone.com/news/secrets-netbeans-window-system https://blogs.oracle.com/geertjan/entry/case_study_customizing_the_netbeans http://forums.netbeans.org/ptopic15413.html To create a TopComponent which is undocked by default, one need to define an undock (or floating ) mode. To do so, create a new XML file and call it "newModeUnDock.xml" Wriet following in the file: <?xml version="1.0" encoding="UTF-8"?> <mode version="2.3">     <name unique="newModeUnDock" />     <kind type="editor" />     <state type="separated" />     <constraints>         <path orientation="vertical" number="0" weight="0.5"/>         <path orientation="horizontal" number="1" weight="0.5"/>     </constraints>     <b...

to make custom configuration file for distributed netbeans java project

followed the blog at : https://blogs.oracle.com/geertjan/entry/support_for_custom_configuration_files steps: 1. clean and build the project 2. package the project as Mac Os X Application. 3. copy the  project/build/launcher/etc/app.config file to a new file at project/nbproject/ and rename it as my.config. 4. Now, change/add the wanted arguments in a new my.config file. for example, add J-d64 -J-Xms512m -J-Xmx2G to the default_options in the new my.config file. and save it. 5. Add app.conf=nbproject/my.conf to the project.properties file. 6. clean and build the project and package as Mac Os X Application, again. 7. check the project/build/launcher/etc/app.config file. It will have the default options overridden .

add/ remove fast action by double clicking the project node

in layer.xml file <folder name="Analysis">                 <folder name="Actions">                       <folder name="PreferredAction"> add following : <file name="alifea-gui-actions-AddAnalysisAction.shadow">                         <attr name="originalFile" stringvalue="Actions/AddAnalysis/alifea-gui-actions-AddAnalysisAction.instance"/>                     </file> if you want to open the action by double clicking the project node and delete if you do not wnat that

To increase the size of heap memory for a Netbeans project

To increase the size of heap memory for a Netbeans project, do the following: 1. Change -Xms,  -Xmx, -XX:PermSize,to the desired memory size e.g :   -J-Xms512m -J-Xmx2G -J-XX:PermSize=2G -Xms defines the minimum size and Xmx the maximum.  These options are saved in the netbeans.conf file To find the file on a mac, go to Application/Netbeans/Netbeans7.3 right click and choose show Package Content and then go to: Contents/Resources/Netbeans/etc/netbeans.conf 2. Also add the same options in the Project Properties file of the Nebeans Project as well as in Netbeans Platform Config file. ( located in Important files folder of the project)   run.args.extra=-J-d64 -J-Xms512m -J-Xmx2G This file can found in the Important Files folder of the Netbeans project. This increases the memory for the Netbeans project also and not only for the Netbeans platform.

To Define Mode for Non-Sigleton Windows/TopComponent

To Define Mode for Non-Sigleton Windows/TopComponent, add the desired mode in the Topcomponent's open() function. @Override     public void open() {         Mode mode = WindowManager.getDefault().findMode("rightSlidingSide");         if (mode != null) {             mode.dockInto(this);             super.open();         }     }