Basic HTML version of Foils prepared 18 May 97

Foil 52 Some Further AWT Components -- Canvas, Window - II

From Java Tutorial - Spring 1997 Part 3:Graphics and the Abstract Windowing Toolkit Peking Tutorial, Web Certificate -- Spring-Summer 1997. by Nancy J. McCracken,Geoffrey C. Fox


A Frame has a set of classes to define MenuBars and Menus:
  • MenuBar(); // defines a menubar which can be used in a frame
  • Menu("Type"); // defines a menu which can itself have hierarchically defined submemus
Another type of separate window is the Dialog box, which is not so elaborate as a frame.
  • Dialog(Frame, String Title, boolean mustbeansweredatonceornot); // defines a dialog box
Dialog boxes are used for transient data
  • Issue warning to user or require (third argument true) user to verify some action etc.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998