I l@ve RuBoard |
![]() ![]() |
8.3 Basic RootPaneContainersFor the rest of this chapter, we'll look at some basic containers (JFrame, JWindow, and JApplet) that implement RootPaneContainer and use JRootPane. First, we'll take a quick look at a simple interface called WindowConstants. 8.3.1 The WindowConstants InterfaceWindowConstants is a simple interface containing only constants. It is implemented by JFrame, JDialog, and JInternalFrame. 8.3.1.1 ConstantsThe constants defined in WindowConstants specify possible behaviors in response to a window being closed. These values are shown in Table 8-7.
In the next section, we'll look at a strategy for exiting the application in response to a frame being closed . |
I l@ve RuBoard |
![]() ![]() |