FileDocCategorySizeDatePackage
WindowsBorders.javaAPI DocJava SE 5 API10144Fri Aug 26 14:54:48 BST 2005com.sun.java.swing.plaf.windows

WindowsBorders

public class WindowsBorders extends Object
Factory object that can vend Borders appropriate for the Windows 95 L & F.
version
1.30 12/19/03
author
Rich Schiavi

Fields Summary
Constructors Summary
Methods Summary
public static javax.swing.border.BordergetFocusCellHighlightBorder()
Returns an new instance of a border used to indicate which cell item has focus.

return
a border to indicate which cell item has focus
since
1.4

        return new ComplementDashedBorder();
    
public static javax.swing.border.BordergetInternalFrameBorder()

        UIDefaults table = UIManager.getLookAndFeelDefaults();
        Border internalFrameBorder = new
            BorderUIResource.CompoundBorderUIResource(
                BorderFactory.createBevelBorder(BevelBorder.RAISED,
                    table.getColor("InternalFrame.borderColor"),
                    table.getColor("InternalFrame.borderHighlight"),
                    table.getColor("InternalFrame.borderDarkShadow"),
                    table.getColor("InternalFrame.borderShadow")),
                new WindowsBorders.InternalFrameLineBorder(
                    table.getColor("InternalFrame.activeBorderColor"),
                    table.getColor("InternalFrame.inactiveBorderColor"),
                    table.getInt("InternalFrame.borderWidth")));

        return internalFrameBorder;
    
public static javax.swing.border.BordergetProgressBarBorder()
Returns a border instance for a Windows Progress Bar

since
1.4

	UIDefaults table = UIManager.getLookAndFeelDefaults();
	Border progressBarBorder = new BorderUIResource.CompoundBorderUIResource(
					 new WindowsBorders.ProgressBarBorder(
					      table.getColor("ProgressBar.shadow"),
  				              table.getColor("ProgressBar.highlight")),
					      new EmptyBorder(1,1,1,1)
					);
	return progressBarBorder;
    
public static javax.swing.border.BordergetTableHeaderBorder()

	UIDefaults table = UIManager.getLookAndFeelDefaults();
        Border tableHeaderBorder = new BorderUIResource.CompoundBorderUIResource(
			   new BasicBorders.ButtonBorder(
					   table.getColor("Table.shadow"),
                                           table.getColor("Table.darkShadow"),
                                           table.getColor("Table.light"),
                                           table.getColor("Table.highlight")),
	       			     new BasicBorders.MarginBorder());
	return tableHeaderBorder;
    
public static javax.swing.border.BordergetToolBarBorder()
Returns a border instance for a Windows ToolBar

return
a border used for the toolbar
since
1.4

	UIDefaults table = UIManager.getLookAndFeelDefaults();
	Border toolBarBorder = new WindowsBorders.ToolBarBorder(
					table.getColor("ToolBar.shadow"),
					table.getColor("ToolBar.highlight"));
	return toolBarBorder;