Here's a little demo of how to handle a few different user interface issues (How to make menus, how to use layout managers, how to handle events). The UI class has the interesting feature that it can either be run standalone (java UI) or created from within an applet (as is done on this page). Admittedly, it's not the world's prettiest interface, but it shows how you can use some of the simpler LayoutManagers (this demo uses the BorderLayout layout manager for the top-level window and panels with the GridLayout layout manager for the button bars). So there's a lot going on in this example; you get a lot of "bang for the buck." :-)


Source for the UIApplet
Source for the UI class