JUnit example - a JUnit JBuilder template
Here is a JUnit template I use with JBuilder:
Here is a JUnit template I use with JBuilder:
JBuilder Open Tools question: Can you tell me some of the best JBuilder Open Tools?
Sure. From the Borland Conference 2001, here is a list of the Top-10 Open Tools for JBuilder:
JBuilder has a nice feature that I've started using lately to track "to do" items. These are the places in my Java projects where I know that I need to fix or change something, but I just don't have the time to do it at the moment. So, what I do is create a "todo" Javadoc tag that I can use as both a reminder and a management tool. Here's how it works:
Don't like your curly braces at the end of the line? Rather have them on the next line? What about your block indentation, your else's, your while's, and your catch's, implements, extends, and throws? How about those import statements, and what about that line wrapping?
Keith Wood has written a book about the JBuilder OpenTools, appropriately named "Inside the JBuilder OpenTools API". Here is a link to his site, and here is an even more direct link to the JBuilder OpenTools code samples he has on his site.
Go to Tools | Preferences
, and then when the resulting
Preferences dialog shows up, choose Browser
in the tree on the left
hand side of the dialog, then Look & Feel
. In the Look &
Feel combo box on the right you can choose from the following options:
Here is a quick dump of JBuilder-related bookmarks I added to my personal collection last week. These are all related to Open Tools, and more recently how to build JBuilder applications using Ant.
Summary: This is a brief discussion about how to debug a JBuilder OpenTool. Debugging an OpenTool is not at all like debugging normal Java code, and a special technique is required, specifically starting one instance of JBuilder from an existing JBuilder environment. These notes apply to JBuilderX, and may not work for other versions.
I recently started creating a few OpenTools for JBuilder. One of the instructions you see when you first start creating an OpenTool is that you need to modify your JBuilder classpath during OpenTool development so the classpath includes the location of your OpenTool files. But, the instructions I found were for old versions of JBuilder (that were no longer valid), which leads to the question "How can I modify the JBuilder CLASSPATH
to recognize the location of my custom class files?"
Here are some important/useful JBuilder keyboard shortcuts to remember:
JBuilder FAQ: Is there a way I can see the parameters a Java method expects?
Yes, assuming that your cursor is position right after the opn parenthesis, type this magic keystroke:
[Ctrl][Shift][H]
You will see a list of parameters that the method accepts, and it will not disappear right away.
How did you know that?
I found it one day in the JBuilder menu system. I also heard it at the Borland Developer Conference.
When using JBuilder, you can set bookmarks in your open files to easily move back-and-forth between these files. For example, suppose you have five files open at one time, but for a little while you just want to move back and forth between File1.java and File2.java. Bookmarks let you do this. You set one bookmark in File1.java, and another bookmark in File2.java.
Because you set bookmarks at specific line numbers, you also go right back to the same line each time you move back and forth.
Okay, so how do I set a bookmark?
When you have more than one file open at a time with JBuilder, use the keystroke [Ctrl][F6] to move between your open files.
Templates are code snippets that can be easily included in your Java code. The basic idea is that you type in a shortcut code, hit [Ctrl][J], and JBuilder fills in the remainder of the code. You type in a few characters, and JBuilder does the hard work for you.
To browse a symbol when using JBuilder, you just need to use the magic keystroke: [Ctrl][Enter]
.
Question: I don't like the default JBuilder keyboard key mappings -- can I change them?
To indent a block of code using JBuilder, just do this:
To compile a Java program with JBuilder, you must create a Project first. Select File | New Project..., then follow the instructions.