Iii. Introduction to the integrated development environment of JBuilder 9
We can see from 10 that the integrated development environment of jbuilder9 is a single window interface, A development platform that integrates multiple functions, such as editing, file and engineering management, visual interface design, browsing, compilation, debugging, and other operations. The following describes the names and functions of each part.
1. Main Menu Bar)
The main menu is very important for programming. For example, you can use it to open and save projects and files, load stored files, search for text in files, compile and Debug programs.
2. Main Toolbar)
The main toolbar is divided into several small toolbars according to its functions. The buttons above mainly provide quick access to menu commands.
3. Project pane)
The project window displays the content of the selected project for browsing and operating the project tree.
4. Project bar)
The project Toolbar contains a list of open projects and some buttons. These buttons are used to add, delete files, and close and update project files in the project window.
5. Structure pane)
The structure window is used to display the structure of the current file in the content window. For a Java file, this window shows all methods, attributes, and events in the form of a tree. The structure window has the ability to expand down. Double-click a class or the interface to view its ancestor class, which is very easy for users to find relevant information.
6. Content pane)
You can view the opened files in the content window. Each opened file has a label that displays its file name and various view labels at the bottom.
7. File View tag (FileView tabs)
The file view label is used to switch various views of a file in the content window, such as the source, design, Bean, Doc, or history view.
8. File tag)
The file tag is used to display the opened file name. Jbuilder9 only displays the file labels of the active project. To view an opened file, select its file tag. Note: When a file is modified, the X symbol on its tag is broken; otherwise, the X symbol is not broken.
9. Status Bar)
You can obtain the latest information about the process and its results in the status bar.
The above sections are most commonly used in JBuilder programming. After mastering their functions, we will have a deeper understanding of the JBuilder 9 programming environment.
The following describes the content in the integrated development environment of jbuilder9.
1) menu bar
The menu bar of jbuilder9 consists of sub-menus. You can select the required menu items by using the mouse or shortcut key. The following describes some common and important menu items.
1. File menu
1) new menu item
Click File> New to open the object gallery dialog box, as shown in 11.
In this dialog box, you can create files, projects, applications, web applications, XML applications, CORBA, build, enterprise applications, and test processes.
In this dialog box, there are 8 labels. The following describes the main projects in some major labels.
· General Tag: You can use the general tag to create multiple types of files. For example, to create an application file, you only need to double-click the corresponding application icon.
· Proiect Tag: you can create a new project in the Proiect tag.
· Web Tag: In Web tags, you can create web-related applications and files.
· Xml tag: in XML tags, you can create XML-related applications and files.
· CORBA Tag: You can create the interfaces and applications of the server and client of the multi-layer application related to CORBA.
· Enterprise Tag: In the enterprise tag, you can create interfaces and application objects related to the enterprise application. These functions are available only for jbuilder9 of the Enterprise Edition.
· Build Tag: In the build tag, you can create tasks used to generate code and during project creation.
· Test Tag: In the test tag, you can create application frameworks and class objects for testing.
In addition, the Obiect gallery dialog box also contains web services and micro labels. However, because the application scope is not very wide, it is not described here. If you are interested, refer to the related help information.
2) now project menu item
The main function of the new projiect menu item is to create a JBuilder project file. Click this menu item to display a standard wizard dialog box for creating a JBuilder project file. Follow the wizard prompts to create a JBuilder project file.
3) New Class Menu item
The new class menu item is mainly used to create a Java class object. Click this menu item to display a standard wizard dialog box for creating a Java class object. Follow the Wizard to create a javaclass object file.
4) Open project menu items
The function of the open project menu item is to open an existing project. Jbuilder9 can open multiple projects at the same time, and the system can open multiple appbrowsers to display multiple different projects.
5) Open File menu items
This menu item is used to open existing JBuilder files, JBuilder project files, JBuilder packages, C and C ++ files, SQL files, HTML files, batch files, text files, and type files., the shortcut for this command is Ctrl + O. Click this menu item to display a standard open file dialog box. In this dialog box, you can select files in different paths. If the file is a project file, the project is opened in the integrated development environment. If it is another file, you can view the file in the Code Editor and edit it. Different types of files can be filtered using file filters.
6) Reopen menu items
The reopen menu item is used to open recently used projects or modules. JBuilder 9 has the memory function for recently opened engineering files. When you click this menu, its cascade menu appears, listing the recently opened files.
7) Close all rules t "frame1.java" menu item
The main function of this menu item is to close all the files except the java files being used in the project files opened in the current integrated development environment. If the files to be closed have changed, A dialog box is displayed, prompting whether to save the changes.
8) Revert "frame1.java" menu item
This menu is used to restore the java files opened in the current integrated development environment. If the current file has been changed, the operation to restore the file before modification will be performed, and the menu item will be activated.
9) page layout menu items
The main function of this menu item is to set the page for the printed code. Click this menu item to open a page Setting dialog box, which is used to modify various parameter settings during printing.
2. Edit menu
The main function of the "edit" menu is to manage text and controls in the user design stage.
3. View menu
The main function of the View menu is to determine what content is displayed in the current ide window. The menu items in this menu are important tools for users to adjust the programming environment according to their own needs and interests. The "View" menu provides many important tools, such as toolbars, project, content, and structure) messages, statusbar, and hideall. You can use toolbars to select the toolbar to be displayed, including file, editing, search, build, run/debug, navigation, and help.
4. Project menu
In the "project" menu, JBuilder provides a series of menu items for project processing, including:
. Make Proiect menu items can compile and link all files in the current project;
. Rebuild Proiect menu items can recompile and link all files of the current project;
The. Make menu item can compile the current project file;
The. Rebuild menu item can recompile and link the current project file;
. Add files/packages menu items to add files and packages to the current project;
. New Folder menu item is used to add a new folder in the current project;
. Remove from Proiect menu items are used to remove files from the current project;
The. Refresh menu item is used to refresh the content of the current project window:
The. Rename menu item is used to rename the files in the current project;
The. Proiect properties menu item is used to set the properties of the current project;
The. Default Proiect properties menu item is used to set the properties of the system default project.
In the menu items described above, make projiect, rebuild project, make, and rebuild are all frequently used project menu items.
5. Run menu
The "run" menu provides various menu items for running and debugging. Users often use these menu items, which are particularly important when running programs and debugging programs. The following describes the menu items.
The run Proiect menu items and debug project menu items are essential for running programs and are mainly used to run and debug projects.
The configurations menu can open the prpject Properties dialog box and display it on the run page, allowing you to select the main program to run (this is related to the application program in Java and the applet ).
The step over menu item is related to the debug program, that is, the run to cursor menu item is executed in one step and to the cursor.
Use of menu items such as add watch and add breakpoint and other debugging skills.
6. Team menu
The "team" menu is mainly used to complete the development and coordination of the team. The select project VCs menu item mainly gives the project configuration to the version control system used for team development. Click this menu item to bring up the select project VCs dialog box.
7. Wizard menu
The wizard Menu provides a series of menu items for the wizard.
· The implement interface menu is mainly used to open a wizard for creating executable framework interfaces. After JBuilder creates a framework interface, it needs to provide the actual code of the executable method under this interface.
· The override Methods menu item is mainly used to open a wizard for reloading class methods.
· The EJB menu items are mainly used to process the EJB wizard, including three sub-menu items: ejb1.x interface generator, ejb1.x bean generator, and use EJB test client.
· Use datamodule menu items are mainly used to open a datamodule wizard. Only the data modules that have been created and compiled can be selected, you can use this wizard to select an existing data module and add it to your project.
· The use CORBA interface menu is used to open a client interface object from IDL Wizard to generate a client from an IDL file.
· Resource strings menu items are mainly used to open the resource strings wizard and bind resources to some separate classes.
· Archive builder menu items are mainly used to distribute developed applications. Archive builder can collect all files required by the program and distribute them according to the selected archive type. For example, these files can be archived as jar files for distribution. The menu command works the same as archive builder in the new wizard.
· The native executable builder menu item mainly refers to the local executable code distribution of the developed application. Jbuilder9 can generate local code used on multiple operating systems such as Windows, Linux, Solaris, and Mac OS X. This menu item opens a native executable builder wizard equivalent to the new wizard.
· The javadoc menu is mainly used to open the javadoc wizard, which can create HTML document files for various API source files.
· The external build task menu is used to open the external build task Wizard to create an extended build task program used to compile the link project.
8. Tools menu
The "Tools" menu mainly provides various environment options. You can customize these options and set the appropriate programming environment. It mainly includes ide options, Editor options, configure libraries, and configure servers) configure palette, configure jdks, and other menu items.
In addition, it provides configuration tools related to Borland Enterprise Server, such as enterprise setup, enterprise deployment, create EJB client jar, beanlnsight, and package migration, as well as JDBC monitor, databasepilot, tools related to database configuration, such as jdatastore explorer and jdatastore server.
Configure tools, configure file associations, rmiregistry, and other menu items are used for file association and other object configuration work.
2) control bar
In any visual programming, the control bar is the most common tool for users to use the controls in the control library, and also provides quick and convenient programming. Each control in the control library is actually an object. Users can add and improve its functions and form a new control. In addition, the new control can be added to the control library and called by the program.
Click the design option in the file view label in "10". The content displayed in the content window is the user interface designer. The "control bar" appears at the top of the tab, and the control bar is located at the bottom right of the main menu, it is divided into 14 groups based on different control functions.
1. Swing page
Swing is an important part of the Java basic library (jfc). It implements a set of new gui (Graphics User Interface, graphical user interface) controls, it has a pluggable exterior effect (the pluggable exterior effect is that you only need to design a GUI control set to automatically obtain the interface with any OS platform (such as Windows, Solaris, macintosh. Swing is implemented in Java 100% and is based on the lightweight UI (User Interface) Framework of JDK (Java developmentkit and Java Development Kit.
In addition to the pure Java version that contains two existing AWT (Abstract Window Toolkit, Abstract Window Toolkit) control sets (such as buttons, scroll bars, labels, and so on, A complete set of advanced controls (such as tree view and list box) is added ).
2. Swing containers page
As shown in Figure 13, the swing containers page mainly contains the container appearances required by some swing controls to make the layout of the swing controls more reasonable.
3. dataexpress page
The controls on the dataexpress page are designed by Borland for database processing, as shown in figure 14.
4. dbswing page and moredbswing page
Dbswing pages (see Figure 15) and more dbswing pages are also a collection of database processing controls designed by Borland.
5. dbswing models page
The dbswing models page is also a set of database processing controls designed by Borland, as shown in Figure 16.
6. EJB page
EJB (Enterprise JavaBean) is very useful in enterprise-level application design and an important part of J2EE. Its contained controls 17 are shown.
7. AWT page
AWT is an important part of the Java base class library. It is a Java window tool set in earlier stages and has very powerful functions, including:
. Rich user interface controls;
. Powerful event processing model;
. Graphics and image tools, including shapes, colors, and fonts:
. Layout manager. Flexible window layout is available, regardless of the size and resolution of a specific window;
. Data Transmission class, which can be cut and pasted through the clipboard of the local platform.
Control 18 on the AWT page.
In addition, there are XML pages, internetbeans pages, CORBA pages, MIDP and MIDP screens and other advanced programming function controls used in JBuilder. I will not talk about it here.