JBuilder’s templates allow you to insert some of the most common Java instructions into the editor. For instance, suppose you want to add a main method to a class. Instead of writing everything manually, by using templates you would need only to do this:
There are several dozens of pre-defined templates. Here are some of the most useful (must press CTRL^J first):
out -> System.out.println("")tryc -> try } catch (Exception ex) }syn -> synchronized () }fora -> for (int i = 0; i < .length; }
There are many more. It is also possible to define new ones. Just go toTools -> Editor Options -> Templates.
This tip was tested with JBuilder 4.0 and 5.0.