Lines Matching refs:border

60 import javax.swing.border.*;
128 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html">How
253 private Border border;
930 * Paints the component's border.
945 Border border = getBorder();
946 if (border != null) {
947 border.paintBorder(this, g, 0, 0, getWidth(), getHeight());
979 * paint in the insets area allocated to the border. Subclasses can
1235 * Prints the component's border. This is implemented to invoke
1237 * wish to print the border differently that it is painted.
1760 * Sets the border of this component. The <code>Border</code> object is
1763 * for optionally rendering any border decorations within the
1770 * Although technically you can set the border on any object
1774 * when you want to set a border on a standard Swing
1777 * and set the border on the <code>JPanel</code>.
1781 * @param border the border to be rendered for this component
1788 * description: The component's border.
1790 public void setBorder(Border border) {
1791 Border oldBorder = this.border;
1793 this.border = border;
1794 firePropertyChange("border", oldBorder, border);
1795 if (border != oldBorder) {
1796 if (border == null || oldBorder == null ||
1797 !(border.getBorderInsets(this).equals(oldBorder.getBorderInsets(this)))) {
1805 * Returns the border of this component or <code>null</code> if no
1806 * border is currently set.
1808 * @return the border object for this component
1812 return border;
1816 * If a border has been set on this component, returns the
1817 * border's insets; otherwise calls <code>super.getInsets</code>.
1823 if (border != null) {
1824 return border.getBorderInsets(this);
1847 if (border != null) {
1848 if (border instanceof AbstractBorder) {
1849 return ((AbstractBorder)border).getBorderInsets(this, insets);
1851 // Can't reuse border insets because the Border interface
1853 return border.getBorderInsets(this);
3773 * Recursively search through the border hierarchy (if it exists)
3777 * but not very pretty outside borders in compound border situations.
3821 // fallback to the titled border if it exists
3968 * Returns the titled border text
3970 * @return the titled border text, if supported, of the object;
3975 Border border = JComponent.this.getBorder();
3976 if (border instanceof TitledBorder) {
3977 return ((TitledBorder)border).getTitle();
5552 String borderString = (border == null ? ""
5553 : (border == this ? "this" : border.toString()));
5558 ",border=" + borderString +