// ResourceModExample.java
// An example of using UIManager resources to tweak the look of applications.
//
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class ResourceModExample {
public static void main(String[] args) {
// A custom border for all buttons
Border border = BorderFactory.createRaisedBevelBorder();
Border tripleBorder = new CompoundBorder(new CompoundBorder(
border, border), border);
UIManager.put("Button.border", tripleBorder);
// Custom icons for internal frames
UIManager.put("InternalFrame.closeIcon",
new ImageIcon("close.gif"));
UIManager.put("InternalFrame.iconizeIcon",
new ImageIcon("iconify.gif"));
UIManager.put("InternalFrame.maximizeIcon",
new ImageIcon("maximize.gif"));
UIManager.put("InternalFrame.altMaximizeIcon",
new ImageIcon("altMax.gif"));
// A custom internal frame title font
UIManager.put("InternalFrame.titleFont",
new Font("Serif", Font.ITALIC, 12));
// Make scrollbars really wide
UIManager.put("ScrollBar.width", new Integer(30));
// Throw together some components to show what weâ |