| Java Doc By Examples | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.swing.border.AbstractBorderjavax.swing.border.EmptyBorderjavax.swing.plaf.BorderUIResource.EmptyBorderUIResourceField Summary |
Fields inherited from class javax.swing.border.EmptyBorder | |
bottom, left, right, top | |
Constructor Summary | |
| |
| |
Method Summary |
Methods inherited from class javax.swing.border.EmptyBorder | |
getBorderInsets, getBorderInsets, getBorderInsets, isBorderOpaque, paintBorder | |
Methods inherited from class javax.swing.border.AbstractBorder | |
getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder | |
Methods inherited from class java.lang.Object | |
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait | |
public EmptyBorderUIResource(int top, int left, int bottom, int right)
Creates an empty border with the specified insets.
- Parameters:
top- the top inset of the borderleft- the left inset of the borderbottom- the bottom inset of the borderright- the right inset of the border
1: final BorderUIResource.EmptyBorderUIResource emptyBorderUI 2: = new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0); 3: defaults.put("SplitPane.border", emptyBorderUI); 4: defaults.put("Table.scrollPaneBorder", emptyBorderUI); 5: defaults.put("ComboBox.border", compBorder);
1: "OptionPane.background", new ColorUIResource(Color.lightGray), 2: "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), 3: ... 4: "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), 5: "OptionPane.cancelButtonText", "Cancel", 6: ... 7: "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")), 8: "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0), 9: "OptionPane.messageForeground", new ColorUIResource(Color.black),
public EmptyBorderUIResource(Insets insets)
Creates an empty border with the specified insets.
- Parameters: