Database Reference
In-Depth Information
Now you might be asking how the Login screen became visible in the first place, and what happens
when it is no longer visible. The Login screen is called from an application, and control is returned to the
application after the Login screen process, but I'm getting ahead of myself, and we will see this in the
next section.
Listing 12-9. Closing the Login and Exiting the Application
private void this_windowClosing(WindowEvent e) {
System.exit(0);
}
Security Administration Menu
We will build an application that uses all the security features we've described in this topic, and we will
use the application to manage the security features—we will “eat our own dog food,” so to speak. We can
call this application OracleJavaSecure (OJS) administration and it will consist of a Menu, shown in
Figure 12-2, and several Functional screens.
Figure 12-2. Security administration menu
The menu will reside in a class named OJSAdmin , and that class has a main() method that simply
instantiates a new OJSAdmin class. See Listing 12-10. On instantiation, the OJSAdmin class runs through its
JavaBeans initialization method, jbInit() and our additional initialization in the ojsInit() method.
 
Search WWH ::




Custom Search