Free Java GUI Development Tool NetBeans Introduction

zhaozj2021-02-16  42

Java GUI Development Tool NetBeans Introduction

First, download NetBeans to directly decompress it.

NetBeans is a pure Java program. Windows, OS2, OpenVMS and Linux version are the same program, but only starts through different startup programs. This is very good. Pure C Java compiler is much faster than pure Java. The grammatical analysis and compilation section can be written in pure C , such as Visual Age for Java. Of course, there is a great disregard, which is a great disregard. NetBeans can use external compilers such as Javac in JDK. Of course, Javac is also a slow guy. Usually NetBeans call FastJavac under NetBeans / Bin / Fastjavac / directory to compile. I saw three kinds of windows, linux, solaris. I don't know where OS2 and OpenVMS version of Fastjavac where I got?

NetBeans supports GUI programming, generating an initComponents function during the GUI programming process, similar to the JBINIT function generated by the JBuilder wizard.

However, it is necessary to note that INITComponents cannot be modified in the editor. This may be a major defect from the Java syntax. The grammar label for GUI Design Time is not supported in Java syntax. For compilers, it is too difficult to restore from Java code to design window technology when designing. JBuilder allows programmers to modify the Jbinit function generated by the wizard. As a result, JBuilder's GUI Design often jokes. For example, JBuilder has several versions of the GUI design that only this.setsize doesn't know this.setBounds. NetBeans simply does not allow programmers to modify the INITComponents function, it is good to be bad. In general, NetBeans generates a .form file for each visual .java file. For the NetBeans compiler, restoring from the Java code to the design window in design is by parsing the .form file, there is a lot of difficulty in the technical difficulty, nor is it like JBuilder. Low-level jokes. Of course, this problem is completely resolved requires Sun to the Microsoft String Spring. VB design course, just don't know how much tuition, Haha! !

Chinese generals are generally encoded in Chinese in the INTComponents function. This is unreasonable. It may be implicated because the designer does not understand some of Asian characters. The encoded Chinese characters are still Chinese characters in the GUI design window. Chinese characters in other functions will not be automatically encoded.

Second, use the wizard to build a code.

NetBeans supports pouring the JBuilder's Project, 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 often errors, caution! NetBeans supports multilingual programming of the RESOURCE file in the Java format. However, I usually put the string in the .xml file or database, so this feature doesn't work for me.

Third, the GUI interface design.

NetBeans supports any mutual conversion of NULL LAYOUT and GRIDBAGLAYOUT. For many GUI components, NetBeans offers a good attribute editor, such as modifying the property with NetBeans in frame, which is very convenient, far more than other tools, it is directly for the Visual J . JBuilder's multiple versions of the design GUI feature are disappointing, there are a lot of problems, slow slow, no number than Borland's CBUILDER and Delphi low. I don't know if it is the relationship between talent. Fourth, set control properties

One feature of NetBeans is to classify attributes, and are often used in a class, which is easier to find. I don't know if this feature can be customized. Because NetBeans's classification is much more different from what I need. Anyway, this is a good idea. NetBeans' font settings found more fonts more than the font found by JBuilder. I don't know what technical difficulty to find the font, and the many fonts of JBuilder can't find it. Maybe Java's bug? NetBeans can automatically add events. Java's event syntax is extremely poor, and handwriting is relatively easy. Add event procedures in NetBeans as follows: Select a visual object, switch to Events in the lower right corner of the screen, double-click the appropriate event, and press Enter. I don't know why you must press Enter, trouble!

5. The NetBeans Source Code window can be full screen, and you can do a function automatically prompt. It is important to note that the input character is sensitive during the automatic prompt, which is very uncomfortable.

6. NetBeans support breakpoint debugging, variable monitoring. However, Microsoft's exclusive debugging technology still did not add. Many people may not know the exclusive debugging technology of Microsoft, by the way. 1. Under Debug's breakpoint, you can continue debugging while modifying the code without interrupting debugging. This technology can save a lot of time. 2. Under Debug's breakpoint, you can change the execution point, such as skipping a few lines of code to continue execution, and jump back to a few row code to continue execution. This technology can also save a lot of time when you know that there is a problem in a certain code segment. 3. Condition interrupt. For example, we entered the debug interrupt when the RepeatCount value changes, but RepeatCount has modified in multiple functions. This technology is also useful.

I don't know the difficulty of the previous two technologies, as if the third is easier to implement, I don't know why other compilers don't do it.

Seven, other

The following is NetBeans applying new LookandFeel after the new lookandfeel. I didn't pick a good font, but I'm going to be.

转载请注明原文地址:https://www.9cbs.com/read-27945.html

New Post(0)