The JBuilder environment

This chapter introduces you to the JBuilder integrated development environment (IDE). The Main window, theAppBrowser, the Editor, the Object Gallery, BeansExpress, and JBuilder's wizards are introduced.

This chapter provides you with overviews of:


Starting JBuilder

When you first open JBuilder, you see JBuilder's Main window and AppBrowser. The AppBrowser displays the Welcome project, welcome.jpr. The HTML file in the project, welcome.html, is displayed in the Content pane of the AppBrowser. This project is designed to introduce JBuilder.

Creating a default jbuilder.ini file

You can restore all the JBuilder environment settings to the default values. If the jbuilder.ini file doesn't exist, it will be automatically created and maintained.

To restore the JBuilder default environment,

  1. Save your files, and choose File|Exit.
  2. Delete or archive the file jbuilder\bin\jbuilder.ini.
  3. Start JBuilder.
    A new jbuilder.ini file is created.


The Main window

The Main window is at the top of the screen when you open JBuilder. It contains the menu bar, the toolbar, the Component Palette, and the status bar.

The menu bar

The menu bar is at the top of the Main window. To display context-sensitive help for a command, select it and press F1.

The following table provides brief descriptions of menu commands.

Menu Commands for...
File menu Creating, opening, closing, renaming and saving files and projects; setting project properties; removing files from projects; configuring printers; printing files.
Edit menu Copying, pasting, deleting, and selecting text; undoing and redoing actions.
Search menu Finding and replacing text; searching for text incrementally and by line number; searching for text across a source path; searching for a symbol.
View menu Viewing Debugger windows, a new AppBrowser, the next or previous error message, the toolbar, the Component Palette, or other currently open AppBrowsers.
Build menu Making or building the selected node.
Run menu Running an application or applet; stepping over or tracing into code; running to the end of a selected method; pausing the program; setting watches or breakpoints; inspecting, evaluating, and modifying.
Wizards menu Running wizards for tasks such as implementing an interface, overriding a method, bundling resources, migrating data, and examining a JavaBean.
Tools menu Displaying the Environment Options dialog; invoking the Windows Notepad and Calculator; invoking remote object creation tools; and setting default properties for new projects.
Workgroup menu Setting up version control and managing workflow.
Help menu Displaying documentation, such as the Help system, Creating JavaBeans with BeansExpress, the JDK API Reference, and the JBCL Reference. Also for viewing the Borland Online web site in your default web browser, loading the Welcome project for experimenting, and seeing information about this release of JBuilder.

The toolbar

The toolbar provides shortcut buttons for some of the menu commands, including the following:
Icon Menu Equivalent Description
File|Open Opens a project, file, or package.
File|Close Closes the current window.
File|Save File Saves the current file.
File|Save Project Saves the open projects and files, using the current names.
Edit|Undo In the Editor, reinserts any characters you deleted, deletes any characters you inserted, replaces any characters you overwrite, or moves your cursor back to its prior position. In the UI Designer, undoes actions.
Edit|Redo Reverses the effects of an Undo.
Search|Find Searches for text within the current file.
Search|Replace Replaces specified text with other specified text in the current file.
Search|Search Again Finds the next occurrence of a search string in the current file.
Search|Browse Symbol Loads the specified class into the AppBrowser. The class must be on the import path of the current file.
Run|Run Compiles and runs your application using the startup parameters specified in the Run/Debug page of the Project Properties dialog box.
Run|Debug Compiles your program and runs it in the Debugger using the startup parameters specified in the Run/Debug page of the Project Properties dialog box.
Build|Make Compiles any .java files within the selected node that have outdated or nonexistent .class files. Also compiles any imported files that the node depends on which have outdated or nonexistent .class files.
Build|Rebuild Compiles all .java files within the selected node, regardless of whether their .class files are outdated. Also compiles the imported files upon which the node depends, regardless of whether their .class files are outdated.

The Component Palette

The Component Palette displays components that you can use in your UI design. The components are grouped on different pages. You can add components to the existing pages or create new pages for them.

Place the mouse over a component, without clicking, to see the name of the component's class reference.

JBuilder comes installed with the following pages:
Page Description
JBCL Components in the JBCL Control package
JBCL Containers Containers in the JBCL Control package
DataExpress Components in the following JBCL packages:
dbSwing Components in the JBCL dbSwing package
Swing Components in the JFC Swing package
Swing Containers Containers in the JFC Swing package
AWT Components in the Java AWT package
KLGroup Components in the following KLGroup packages:
Other Other locally installed third-party components

The status bar

The status bar is displayed at the bottom of the Main window, below the toolbar. It displays file save and compilation progress messages.

If there is a compilation error, the Error pane, below the Content pane, details the compilation error.

The AppBrowser

JBuilder is structured to increase your productivity as a Java developer. Because Java projects use many files, and because the various development tasks (such as editing, debugging, and browsing for information) have traditionally used multiple windows, it can be difficult to find the window you need.

To simplify your job, JBuilder introduces a new concept in user interfaces for development environments: a single AppBrowser that is used to perform all the usual development functions. The JBuilder AppBrowser lets you to explore, edit, design, and debug all in one unified window.

The JBuilder AppBrowser usually fills the screen area below the Main window. If you are running JBuilder, and don't have an AppBrowser displayed, choose Help|Welcome Project to view it. The AppBrowser will look like the figure in the section called Starting JBuilder.

Choose of the following topics for more information about the AppBrowser:

AppBrowser panes

The AppBrowser usually contains three panes:

Although you will usually have only one AppBrowser visible, you can open additional AppBrowsers as needed, for example, to view more than one project at a time. Use View|Windows to switch between AppBrowsers.

The Navigation pane

The Navigation pane is the top left pane of the AppBrowser. This pane shows a list of one or more files. If you are looking at a project in the Project Browser, you see the project (.jpr) file first. Attached to that is a list of the files in the project. The list may include .java, .html, text, or image files.

You can select a file in the Navigation pane by clicking it. The Content pane and the Structure pane display information about the selected file. As you select different files in the Navigation pane, each one will be represented in the Content and Structure panes.

The Content pane

The Content pane displays the detailed content of the file selected in the Navigation pane.

The following table lists the editor or viewer used in the Content pane. The editor or viewer is determined by the extension of the file selected in the Navigation pane.

File Type Editor(s) or Viewer (s) available in the Content pane
Text files If you select a text file in the Navigation pane (a file with an extension such as .txt or .bat), an editor, identified by the Source tab, is available in the Content pane. This is a simple text editor that lets you to see and modify the text file.

JBuilder recognizes certain file extensions (such as .txt and .bat) as text files. However, you can extend this list. For more information, see Extending JBuilder's list of text file extensions.

Image files If you select a .gif, .jpg, or .bmp image file in the Navigation pane, an image viewer, identified by the View tab, is available in the Content pane.
.html files If you select an .html file in the Navigation pane, two tabs are displayed at the bottom of the Content pane, labeled View and Source.
View tab
The View tab selects an HTML viewer. This viewer lets you see the rendered HTML file, as you would see it in a web browser.

Source tab
The Source tab selects an Editor that lets you see and edit the file as raw HTML source.

.java files If you select a .java file in the Navigation pane, you see four tabs labeled Source, Design, Bean, and Doc.
Source tab
When you select the Source tab when viewing a .java file, you see the JBuilder Editor. This is a full-featured, syntax-highlighted programming editor, with several popular key mappings.

Design tab
When you select the Design tab when viewing a .java file, you see the JBuilder's UI Designer. For example, if you select the WelcomeFrame.java class in the Welcome project (or a Frame class in your own project), you see the JBuilder UI Designer in the Content pane. This designer shows what the UI appearance of this class will be at runtime and lets you visually construct and develop your UI.

Bean tab
When you select the Bean tab, you see the BeansExpress designers. The Bean tab exposes the BeansExpress Property, Event, BeanInfo, and Property Editor designers. Use them to add properties and events to your bean, choose what properties are exposed, and create custom property editors.

Doc tab
When you select the Doc tab, you see the corresponding reference documentation for that .java file, if documentation exists. Reference documenation is provided in HTML format. The display of reference documentation is based on the fully qualified class name and on settings in the jbuilder.ini file.

The following reference documentation is provided with JBuilder:

  • JavaSoft JDK Reference
  • JFC Swing Documentation
  • Borland JBCL Reference
  • Selected third-party packages

You can expand the Content pane to fill the entire AppBrowser window. You simply toggle it in and out of full window mode with the View|Toggle Curtain menu command or with the shortcut keys (Alt+Z in the default key mapping). When the Content pane is expanded, the Structure and Navigation panes are hidden.

You can also use the mouse to resize the window or any of its panes by dragging the pane boundaries.

Extending JBuilder's list of text file extensions

JBuilder recognizes certain file extensions as being text files. The file extension controls what type of file can be opened in the Content pane. If you find that you need to treat some other file extension as a text file type, you can extend JBuilder's list.

To define which file types to treat as text files,

  1. Choose Tools|Treat As Text.
    The Treat As Text dialog is displayed.
  2. Enter the extension of the file type you want to edit as text.
    You can enter the extension in any one of the following formats: xxx, .xxx or *.xxx.
  3. Press Enter or Add.
  4. To remove a file type, select it and click Remove.
  5. Click OK when you're done.
You can now choose File|Open/Create to open files of the selected type. When you choose the file in the Navigation pane, its contents are displayed in the Content pane, ready for editing. When you choose File|Save to save the file, JBuilder automatically saves the changes to the correct format.

The Structure pane

The lower left pane of the AppBrowser shows you structural information about the file selected in the Navigation pane.

For example, if you select a .java file, the Structure pane will show you structural information about the java code in that file, such as

This structural information is in the form of a hierarchical tree. You can think of the Structure pane as a table of contents for the file.

Navigating .java files using the Structure pane

Not only does the Structure pane show you the structure of your file, you can also use it as a quick navigation tool to the various structural elements in the file. For example, if you have selected a .java file, you see classes, variables, and methods in the Structure pane. You can then click on any of those elements in the Structure pane and the Content pane will move to and highlight that element in the source code.

This gives you a much faster way to browse and find the elements of a .java file than scrolling through it or searching for a word.

You can also use the Structure pane for drilling down into other ancestor classes and interfaces.

Drilling down into other classes and interfaces

Often, you need to look at .java files that are not part of your project, but which are referred to in the class you are editing. To see the .java file for an ancestor class, an interface, or the type of a variable shown in the Structure pane, just double-click it or select it and press Enter. The AppBrowser will go to that file, showing it in all three panes.

Follow these steps for an example of drilling down:

  1. Use Help|Welcome Project to open the Welcome Project.
  2. Select WelcomeFrame.java in the Navigation pane.
    In the Structure pane, note that WelcomeFrame extends DecoratedFrame.
  3. Double-click DecoratedFrame in the Structure pane.
    The AppBrowser will show you DecoratedFrame.
  4. Double-click Frame to drill down another level into the Frame parent class of DecoratedFrame. Note that you can see not only the source of the Frame class, but you can also click on the Doc tab and read the reference documentation for the class as well.
If you navigate to a file for which no source code is found, JBuilder will synthesize a temporary source file to show in the Source pane. This temporary stub file displays method signatures for public methods and comments indicating that no implementation information is available. A Doc tab is also displayed that shows the reference HTML doc for the class.

The stub source is only generated temporarily in memory, and it is not saved to disk.

The Component Tree

When you have selected a .java file and then select the Design tab at the bottom of the Content pane, the Structure pane displays the designable objects in the file, and how they are nested and interrelated. This view is called the Component Tree. For more information, see the "Using the Component Tree" chapter.

AppBrowser modes

The AppBrowser has two sets of tabs that determine: One set of tabs is at the bottom of the Structure pane and the other set is at the bottom of the Content pane. Different tabs appear, depending on what you are doing.

The AppBrowser can display the following modes:

To return to the starting state and see your code, click the Project tab, then the Home button.

See also:
Tabs in the AppBrowser

Project Browser

The Project Browser mode of the AppBrowser manipulates files in a project. To put the AppBrowser into Project Browser mode, choose the Project tab on the lower left tabset, below the Structure pane. In this mode, the Navigation pane shows the project (.jpr) file and a list of the files in that project.

If you find a file you want to open, select it in the Navigation pane. File details are displayed in the Content pane and file structure is displayed in the Structure pane.

See also:
Getting Started with JBuilder: Creating and managing projects

Directory Browser

If you select the Directory tab below the Structure pane, you switch the AppBrowser from browsing your project to browsing your file system directory. In this mode, you can browse through directories to locate files.

If you find a file you want to open, select it in the Navigation pane. File details are displayed in the Content pane. File structure is displayed in the Structure pane just as if it were a file in your project.

You can quickly add a file to your project from the Directory Browser by clicking it and dragging it to the Project tab.

You can remove the Directory tab from the AppBrowser display by right-clicking it and choosing the Drop Directory Tab command. To view the Directory tab again, right-click the Project or Opened tab and choose View Directory tab.

Opened Files Browser

Click the Opened tab to display a list of your currently active or open files. Your open files are

This list can be thought of as the equivalent of a buffer list used in some editors.

Here are some reasons the Opened Files Browser is useful:

Adding files to the Opened Files list

If you need to frequently refer to a file that you have found using drill down or any other navigation method, you can drag it from the Navigation pane to the Opened tab, to put it into your Opened Files Browser where you can quickly look at it again later.

Debugger

When you run the JBuilder Debugger, it adds two more tabs to the AppBrowser, Debug and Watch. The Debug tab displays the main Debugger view and the Watch tab displays the Watch view.

While debugging, you can switch to any of the other tabs to review files in your project, browse directories, and look up reference information without disturbing your debugging session or cluttering your screen.

See also:
Building Applications with JBuilder: Debugging Java programs

Class Hierarchy Browser

To see the class hierarchy for a particular .java file, select it in the Navigation pane, right-click, and from the popup menu choose Class Hierarchy. This adds a new AppBrowser tab, Hierarchy, for Class Hierarchy viewing. When you click on this tab, the Navigation pane displays the inheritance tree for your file. You can then navigate to any file in the inheritance tree by selecting it in the Navigation pane.

You can remove the Hierarchy tab from the AppBrowser display by right-clicking it and choosing the Drop Hierarchy Tab command.

Search Results Browser

If you use Search|Search Source Path to look for a search string across directories, JBuilder adds a Search Results tab to the AppBrowser called Search. When you click this tab, you see a list of the file(s) that contain the selected text.

You can remove the Search tab from the AppBrowser display by right-clicking it and choosing the Drop Search Tab command.

Navigating in the AppBrowser

You can navigate in the AppBrowser using the keyboard or the mouse. JBuilder provides navigation buttons so that you can navigate the history list of files you've drilled into. You can also search for files in an AppBrowser pane with the keyboard.

Navigating the history list

The Home, Prior, and Next buttons above the Navigation pane allow you to traverse the history list.
Button Description
Moves to beginning of history list.
Moves to prior item in history list.
Moves to next item in history list.

Navigating the AppBrowser trees

You can use the keyboard to navigate the trees displayed in the Navigation pane, the Structure pane, the Watch pane, and the Debugger pane:

To search a tree, move focus to the tree and start typing. A tool tip box is displayed in which you can define a search filter. By default, the first matching entry is selected. The next and previous entries are selected with the Up and Down arrows. Press Escape to cancel the search mode. Collapsed branches of the tree are not searched.

Normally, entries beginning with the specified text are selected. Use wildcard characters to change this behavior:

Recording keystrokes in the AppBrowser

The Record Keystroke feature is a useful tool for editing text and code. You can record and play back keystrokes to automate keyboard tasks. The keystrokes you record are available to play back until you record a new set or close the Editor.

The keystroke command used to record keystrokes depends on which keyboard emulation you have selected as the default in the Editor. (This feature is not available when using the Epsilon keyboard emulation.)

To record keystrokes,

  1. Place the cursor at the location where you want to begin recording keystrokes.
  2. Type the keyboard command for recording keystrokes. (See the Keymapping definitions topic for more information.)
    The AppBrowser status bar now says "Recording."
  3. Type the keystrokes you want to save to play back.
  4. Type the same command again to stop recording keystrokes.
To play back keystrokes,
  1. Insert the cursor at the place you want your keystrokes played back.
  2. Type the command to play back keystrokes. (See the Keymapping definitions topic for more information.)
    The recorded keystrokes are played back.

Recorded keystrokes can be played back in a different AppBrowser than the one in which they were typed. If, for example, you have more than one project open at the same time, and you record keystrokes in the Content pane of one AppBrowser, you can switch to another project and play back the recorded keystrokes in its Content pane.

Configuring the AppBrowser

Use the AppBrowser page of the Environment Options dialog box to configure the behavior of the AppBrowser. You can control To configure the AppBrowser,
  1. Choose Tools|IDE Options.

  2. Click the AppBrowser tab to display the the AppBrowser page.

  3. Choose the following options:

    Option Description

    Reload Last Opened Project Upon Startup When you start JBuilder, automatically reloads the most recently opened project.
    Grouping Controls the display of the Structure pane. You can choose to separate data members and methods and group items by accessibility (for example, private, protected, public, package).
    Accessor Sorting Rearranges the order in which .java files are displayed in the Structure pane.
    Structure Sorting Rearranges the order in which properties, methods, events, and data members are displayed in the Structure pane.
    Inspector Controls how the Inspector is displayed in the UI Designer. The Inspector can float to the right of the UI Designer or be embedded in it.


The Editor

The JBuilder Editor has many powerful features that enhance your ability to work with text and code. The Editor, in conjunction with JBuilder's three-paned AppBrowser, provides both editing and navigation functions. It is a full-featured, syntax-highlighted programming editor with several popular key mappings.

To display the Editor, first navigate to the text file you want to view or modify. Then click the Source tab at the bottom of the AppBrowser. The file is displayed in the Content pane, ready for editing.

Choose one of the following topics for more information:

Finding text

The JBuilder Editor provides numerous ways to find specific text in a file. Search commands are located on the Search menu.

Task Command

Go to a specific line number Search|Go To Line Number
Browse through a class, interface or package Search|Browse Symbol
Find and replace text Search|Find and Search|Replace
Search for text incrementally, as you type in the search string Search|Incremental Search. The search begins from the cursor's location in the file. It does not start from the beginning of the file.
Search for text across all files in selected path(s) Search|Search Source Path
Set bookmarks and return to them Key combinations, listed in keymap files

Using Code Insight

JBuilder's Code Insight enhancements display context-sensitive popup windows within the Editor. Code Insight provides code completion, parameter lists, and tool tip expression evaluation. Code Insight will try to highlight illegal class references and statements that import packages not on the Class Path.

Choose one of the following topics for more information:

Code completion

Code completion is a quick way to select all appropriate method calls for any given reference prefix. You can also enter a class name to see valid method, property, and event names. The code completion feature can also be used to complete assignment statements.

To activate code completion,

Code Insight will determine the symbolic reference at the point of the cursor and display a list of appropriate choices. When the helper window is displayed, choose the item you want to insert in your code, then press Enter or double-click.

Package browser
The Package browser is a dialog that lists all available packages. To display the browser, press Ctrl+Alt+Space when you are editing source code.

When the browser is displayed, choose the name of the package you want to insert in your code and press Enter or double-click.

Parameter lists

When you are coding a property, method or event, a list of expected parameters, with the correct syntax, can be displayed. All possible parameters are displayed, including overloaded ones.

To display the parameter list, type a property, method, or event and press Ctrl+Shift+Space. When the list is displayed, choose the item you want to insert in your code, then press Enter or double-click.

Tool tip expression evaluation

When you are debugging a program, you can place the mouse cursor over any variable in the Editor to display its value. The value is displayed in a small popup window that looks like a tool tip.

Configuring Code Insight

Use the Code Insight page of the Environment Options dialog box (Tools|IDE Options) to configure Code Insight options.

To configure Code Insight,

  1. Choose Tools|IDE Options.

  2. Click the Code Insight tab to display the the Code Insight page.

  3. Choose the following options:

    Option Description

    Syntax Highlight Declaration Errors Code Insight willl automatically use the color specified for the Illegal element on the Colors page of the Environment Options dialog to highlight declaration errors in your code.
    Parse Delay Sets the duration of the pause before the prefix is parsed.
    Auto Completion Enabled Activates the code completion feature.
    Auto Parameter List Enabled Activates the parameter list display.

To fully customize Code Insight, you should set the color for illegal references. To set this color,
  1. Choose Tools|IDE Options.

  2. Click the Colors tab to display the the Colors page.

  3. Scroll to the bottom of the Elements list and choose the Illegal option.

  4. In the Colors box, left-click on the red square.
    FG now displays in the red square, indicating that illegal references will be displayed in red.

Customizing your coding style

You can now customize your coding style on a project-by-project basis, using options on the Code Style page of the Project Properties dialog box. To set coding style options for all new projects, use the Default Project Properties dialog box (Tools|Default Project Properties).

To customize your coding style,

  1. Choose File|Project Properties.

  2. Click the Code Style tab to display the the Code Style page.

  3. Choose the following options:

    Option Description

    Braces Determines how braces are inserted. Choose End Of Line to append the right brace to the end of the existing line. The Next Line option inserts the brace at the beginning of the following line.
    Event Handling Determines how event handlers are created. Choose Anonymous Adapter to to create event handlers using anonymous inner classes. Choose Standard Adapter to use separate adapter classes. The Match Existing Code option creates event handlers using the existing method.
    For more information about anonymous adapters, see the topic Using anonymous adapters in the "Working with events" chapter of the Component Writer's Guide.
    Use Beans.instantiate() You can instantiate objects by using Beans.instantiate() as well as new.
    For more information, see the Instantiating serializable JavaBeans in the "Serializing JavaBeans" chapter of the Component Writer's Guide.


Setting Editor options

You can customize the editing environment in JBuilder to suit your own preferences using the Environment Options dialog box (Tools|IDE Options). The Environment Options dialog has the following pages related to editing:


The Object Gallery

The Object Gallery contains shortcuts that create skeletal instances of many objects. To display the Object Gallery, choose File|New. To use a shortcut or template, click the icon. JBuilder creates the skeletal code in a .java file and adds the file to your project.

To add your own files to the Object Gallery,

  1. Select the page of the Object Gallery on which you want the file to appear.
  2. Right-click and choose Add Snippet.
    The Add Snippets dialog is displayed.
  3. In the Object Gallery description field, enter a brief description of the snippet.
  4. Specify the name of the snippet file.
  5. Specify the name of the image to display in the Object Gallery and click OK.
See the example snippets file in the snippets directory for advanced options.


BeansExpress

BeansExpress is accessible from the Bean tab on the lower right side of the AppBrowser, next to the Design tab. This tab includes four designers, which you can use to create properties and events for a bean, create property editors, and expose and edit properties. There is also an informational display.

To create a bean,
  1. Choose File|New and double-click the JavaBean icon.
    The JavaBean Wizard is displayed.

  2. If you want the bean to be in the current package, don't change the name in the Package field. Otherwise, change the name to the package you want.
  3. In the Name Of New JavaBean field, enter the name of the bean (this is the bean's class name).
  4. In the Base Class to Inherit From field, choose the name of the class that this bean will inherit from.
  5. Click OK to create the bean.
To examine your bean, choose Wizards|BeanInsight. BeanInsight examines a Java class and reports whether the class is a valid JavaBean. If your class fails as a JavaBean, BeanInsight reports why it failed. It identifies all the propeties, customizers, and property editors it finds for the class and also reports whether the property information is obtained through a BeanInfo class or through introspection.

For more information, see Creating JavaBeans with BeansExpress.


Wizards

Wizards save you time by writing code for you. These are the types of wizards in JBuilder:

The following table presents an overview of the wizards. For more information on a specific wizard tool, display the wizard and click the Help button or press F1.

File wizards

Wizard Description

JavaBean Wizard Creates a JavaBean ready for you to customize with BeansExpress.
Project Wizard Creates a new project. If you invoke any of the other File wizards when you don't have a project open, the Project Wizard is automatically invoked first.
Application Wizard Creates a new Java application shell which contains a Frame.
Applet Wizard Creates a minimal applet and HTML file which contains the applet.
New Frame Wizard Creates a new frame.
New Dialog Wizard Creates a new dialog.
New Panel Wizard Creates a new panel.
New DataModule Wizard Creates a new data module.
New Class Wizard Creates a new class.
HTML Wizard Creates an HTML file. (This wizard does not have a user interface.)
Servlet Wizard Creates a servlet.

Utility wizards

Wizard Description

Override Methods Wizard Creates skeletal code to override a method in a superclass.
Implement Interface Wizard Creates skeletal code that tells other objects that the selected class can be accessed via a certain Java interface.
Resource Strings Wizard Bundles resources into separate classes to enable localization.
Deployment Wizard Creates a .jar or .zip archive file of all the specified project files.
Use DataModule Wizard References a selected data module in your application.
Data Migration Wizard Migrates data between desktop database tables and SQL database servers.
BeanInsight Examines a class to determine if it is a valid JavaBean.
Enterprise JavaBean Wizard Creates an enterprise JavaBean component.

Remote Objects wizard

Wizard Description

Generate CORBA Server Wizard Creates a CORBA server that makes the CORBA object available to the ORB.