FileDocCategorySizeDatePackage
ResourceModExample.javaAPI DocExample2093Thu Oct 24 20:14:28 BST 2002None

ResourceModExample

public class ResourceModExample extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.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â