Project

General

Profile

NetBeans » History » Version 3

Andreas Müller, 02/23/2022 10:47 PM

1 1
_NetBeans_
2
3
4
{{>toc}}
5
6
----
7
8
### Documentation / Tutorials
9
10
* [API doc](http://www.netbeans.org/project/www/download/dev/javadoc/)
11
12
* [NetBeans Module (Plug-in) and Rich Client Application Development](http://platform.netbeans.org/)
13
14
* [NetBeansDeveloperFAQ](http://wiki.netbeans.org/wiki/view/NetBeansDeveloperFAQ)
15
16
17
### Developing with [[NetBeans]]
18
19
20
##### Tips & Hints
21
22
--Anchor(tip1)--[*Module Development Turnaround Time: Better Than You Thought*](http://blogs.sun.com/geertjan/entry/module_development_turnaround_time_better)
23
24
  So you're creating a desktop application in [[NetBeans]] IDE, basing it on the [[NetBeans]] Platform.
25
26
* Don't shut down the application. Just leave it running.
27
28
* Whenever you add something to a module, and you want to see it in action within the application... right-click the module and choose "Install/Reload in Target Platform". Since the module belongs to the module suite, and the module suite is your application, the module loads into the running application and you can see the result right away.
29
30
31
  As a result, reloading a module takes only a few seconds. (If the TopComponent for which you made the change is already displayed in the running application, you just need to reopen it, to refresh it, but that's the only additional step I needed to take.)
32
33
34
  Also if you run the app in the debugger, you can use Run > Apply Code Changes to use JPDA hot swapping. Only works for changes made in Java source code (that do not add/remove methods/fields/etc.), so limited but still useful in some cases.
35
36
37
--Anchor(tip2)--*[http://blogs.sun.com/geertjan/entry/eclipse_platform_vs_netbeans_platform  [[NetBeans]] already support compile-on-save, in a way... Just press Ctrl-S and then F9. Now you've saved and compiled a file... It involves three keys, but so do other shortcuts, it isn't unique in any way. If you want to use two shortcuts instead, remap "Save" to something else (for example, F10 is free, so map "Save" to F10, and then all you need is to press F10 and then F9 and then you've saved and compiled a file). The same approach can be taken for projects too...
38
39
40
  Or, the other way round -- you'd probably want the compile to be before the save, so F9, then Ctrl-S, or F9 F10, if you remap "Save" to F10, as suggested above.