KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > border > AbstractBorder

javax.swing.border
Class AbstractBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
All Implemented Interfaces:
Serializable, Border
Direct Known Subclasses:
BasicBorders.ButtonBorder, BasicBorders.FieldBorder, BasicBorders.MarginBorder, BasicBorders.MenuBarBorder, BevelBorder, CompoundBorder, EmptyBorder, EtchedBorder, LineBorder, MetalBorders.ButtonBorder, MetalBorders.Flush3DBorder, MetalBorders.InternalFrameBorder, MetalBorders.MenuBarBorder, MetalBorders.MenuItemBorder, MetalBorders.OptionDialogBorder, MetalBorders.PaletteBorder, MetalBorders.PopupMenuBorder, MetalBorders.ScrollPaneBorder, MetalBorders.TableHeaderBorder, MetalBorders.ToolBarBorder, TitledBorder
See Also:
Top Examples, Source Code, XMLEncoder

public AbstractBorder()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Insets getBorderInsets(Component c)
See Also:
Border
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[107]JButton border attributes
By Anonymous on 2002/10/18 18:24:34  Rate
void abstractborder (  )   {  
   boolean f; 
   java.awt.Insets n; 
  
  
   javax.swing.JButton c = new javax.swing.JButton ( "AbstractBorder" ) ; 
   myFrame.getContentPane (  ) .add ( c ) ; 
   AbstractBorder b =  ( AbstractBorder ) c.getBorder (  ) ; 
  
  
   f = b.isBorderOpaque (  ) ; // This default implementation returns false. 
   n = b.getBorderInsets ( c ) ; // This default implementation returns the value of getBorderMargins. 
   n = b.getBorderInsets ( c, n ) ; // Reinitialize the insets parameter with this Border's current Insets. 
  
  
  }  
 


public Insets getBorderInsets(Component c,
                              Insets insets)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Rectangle getInteriorRectangle(Component c,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Rectangle getInteriorRectangle(Component c,
                                             Border b,
                                             int x,
                                             int y,
                                             int width,
                                             int height)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isBorderOpaque()
See Also:
Border
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
See Also:
Border
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags