• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Working with Layouts

Recall that several of the sample applets shown in Chapter 37 use layout managers such as CardLayout or GridLayout to manage the placement of components on the screen. You can see the effect of a layout manager by resizing the HelloPlus window. Figure 38.6 shows a maximized window in which the components have room to spread out; in Figure 38.7, the window is tall and narrow—the components appear one above the other.

Figure 38.6. When the components have enough room, they're laid out one beside the other.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint