Chapter 16 Database Client

Explanation of Code

The MDI class

The setup() method calls the createMenuComponents() method to create menus. Further, it gets a reference to the remote object. The getServerObject() method returns a reference to the remote object. The createMenuComponents() method is used to create a menu bar, menus, and menu items. The setMDISize() method is used to set the size of the main window to the current screen size. This method gets a ToolKit object to interact with the operating system. The main() method simply creates an instance of the MDI class.


The MenuHandler class

The MenuHandler class is an inner class used to handle action events generated by menu items. When the user presses a menu item, the actionPerformed() method is invoked. The showForms() method shows an internal frame.


 

 

RMI BOOK MAIN PAGE                Top

  
Copyright © 2001 www.universalteacher.com