Java GUI development tool netbeans Introduction
1. Download netbeans and decompress it to run it.
Netbeans is a pure Java program. Windows, os2, OpenVMS, and Linux are the same program, but they are started through different startup programs. This is good. The Java compiler of pure C ++ is much faster than that of pure Java. Syntax analysis and compilation can be written in pure C ++, for example, Visual Age for Java. Of course, the lack of cross-platform dynamic Connection Library Standards in the C ++ standards is a huge mistake.
Netbeans can use an external compiler, such as javac in JDK. Of course, javac is also a slow guy. Netbeans usually calls fastjavac in the netbeans/bin/fastjavac/directory to compile. I can see Windows, Linux, and Solaris. I don't know where the fastjavac of os2 and OpenVMS went?
Netbeans supports GUI programming. During GUI programming, the wizard generates an initcomponents function, similar to the jbinit function generated by the JBuilder wizard.
However, you must note that initcomponents cannot be modified in the editor. This may be a major defect in Java syntax. Java syntax does not support the syntax tag of GUI Design Time. It is too difficult for the compiler to restore the Java code to the design window during design. JBuilder allows programmers to modify the jbinit functions generated by the Wizard. As a result, JBuilder's GUI Design often gets a joke. For example, only this is known in the GUI Design of several JBuilder versions. setsize does not know this. setbounds problems. Netbeans simply does not allow programmers to modify the initcomponents function. It is not necessarily good or bad. In general, netbeans generates a. Form file for every visualized. Java file. For the netbeans compiler, restoring the Java code to the design window during the design is through parsing the. Form file. This reduces the technical difficulty and won't often make low-level jokes like JBuilder. Of course, to solve this problem thoroughly, should sun take advantage of Microsoft's string spring? The VB design course only does not know how much Microsoft will charge, haha !!
The Chinese characters in the initcomponents function of netbeans are generally unicode encoded. This makes no sense. It may be because the designers do not understand the Asian character issues. For the sake of insurance, they simply code it. The Encoded chinese characters are still Chinese characters in the GUI Design window. Chinese characters in other functions are not automatically encoded.
Ii. Use the Wizard to generate code.
Netbeans supports the import of JBuilder projects, but if you want to modify the GUI code generated by JBuilder, the possibility is basically zero.
Netbeans supports CVs and does not support source safe. JBuilder 8 supports source safe, but frequent errors. Use it with caution!
Netbeans supports multi-language programming of resource files in Java format. However, I usually put strings in A. xml file or database, so this function does not work for me.
3. GUI Design.
Netbeans supports arbitrary mutual conversion between null layout and gridbaglayout. For many GUI components, netbeans provides a good Attribute Editor. For example, it is much easier to use netbeans to modify jtable attributes on a frame, which is far more powerful than other tools and forces Visual J ++ in the past. The design GUI functions of multiple versions of JBuilder are disappointing, with a lot of problems and slow speed, which is countless levels lower than Borland's cbuilder and Delphi. I wonder if it is because of the brain drain.
Iv. Set Control Properties
One feature of netbeans is that attributes are classified, which are commonly classified into one type, which is easier to find. I don't know if this feature can be customized. Because the classification of netbeans is often different from what I need. In any case, this is a good idea.
Netbeans font settings have more fonts than JBuilder has. I don't know how difficult it is to find fonts. Many fonts in JBuilder cannot be found. It may be a Java bug?
Netbeans can automatically add Event code. Java's event syntax is extremely poor, and manual writing is prone to errors. The process of adding an event to netbeans is as follows:
Select a visualization object, switch to the events in the lower-right corner of the screen, double-click the corresponding event, and press Enter. I don't know why I have to press Enter!
5. The netbeans source code window can be displayed in full screen mode and can be automatically prompted by functions. Note that the input characters are case sensitive during the automatic prompt process, which is uncomfortable.
6. netbeans supports breakpoint debugging and variable monitoring. However, Microsoft's exclusive debugging technology has not been added.
Many may not know Microsoft's exclusive debugging technology, by the way.
1. Under breakpoint debugging of debug, you can modify the code and continue debugging without interrupting debugging and re-compiling. This technology can save a lot of time.
2. In breakpoint debugging of debug, the execution point can be changed at will, such as skipping several lines of code to continue execution, and several lines of code to continue execution. This technology can save a lot of time when you know that there is a problem in a code segment that requires repeated debugging.
3. Conditional interruption. For example, debugging is interrupted when the repeatcount value is changed, but repeatcount is modified in multiple functions. This technology is also useful.
I don't know the difficulty of the previous two technologies. It seems that the third one is easier to implement. I don't know why other compilers didn't.
VII. Others
The following figure shows how netbeans uses the new lookandfeel. I didn't pick the font, but it's okay.