BorderFactory Class
Package: javax.swing
The BorderFactory
class creates decorative borders that are used to visually group components. The frame in Figure 5-1 shows some radio buttons and check boxes inside borders.
Figure 5-1
You can apply a border to any object that inherits JComponent
, but the usual technique is to apply the border to a panel and add to that panel any components you want to appear within the border.
Methods
Method |
Description |
|
Get Java For Dummies Quick Reference 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.