Chapter 14. Laying Out a User Interface
WHAT YOU’LL LEARN IN THIS HOUR:
Creating a layout manager
Assigning a layout manager to a container
Using panels to organize components in an interface
Working with unusual layouts
Creating a prototype for a Java application
When you begin designing graphical user interfaces (GUI) for your Java programs, one obstacle you face is that your components can move around. Whenever a container changes size—such as when a user resizes a frame—the components it holds rearrange themselves to fit its new dimensions.
This fluidity works in your favor because it takes into account the differences in how interface components are displayed on different operating systems. A clickable button ...
Get Sams Teach Yourself Java™ in 24 Hours, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.