KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > awt > BorderLayout

java.awt
Class BorderLayout

java.lang.Object
  extended by java.awt.BorderLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable
See Also:
Top Examples, Source Code

public void addLayoutComponent(Component comp,
                               Object constraints)
See Also:
Container.add(java.awt.Component, java.lang.Object), IllegalArgumentException, LayoutManager2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void addLayoutComponent(String name,
                                          Component comp)
See Also:
LayoutManager
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String AFTER_LAST_LINE
See Also:
PAGE_END
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String AFTER_LINE_ENDS
See Also:
LINE_END
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String BEFORE_FIRST_LINE
See Also:
PAGE_START
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String BEFORE_LINE_BEGINS
See Also:
LINE_START
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


[1842]Simple SWING "Hello World" app
By Anonymous on 2006/11/15 14:22:34  Rate
// Hello.java  ( Java SE 5 )  
 import java.awt.BorderLayout; 
 import javax.swing.*; 
  
  
 public class Hello extends JFrame  {  
    public Hello (  )   {  
       super ( "hello" ) ; 
       setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE ) ; 
       setLayout ( new BorderLayout (  )  ) ; 
       add ( new JLabel ( "Hello, world!" )  ) ; 
       pack (  ) ; 
     }  
  
  
    public static void main ( String [  ]  args )   {  
       new Hello (  ) .setVisible ( true ) ; 
     }  
  } 


public BorderLayout(int hgap,
                    int vgap)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String CENTER
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String EAST
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getConstraints(Component comp)
See Also:
addLayoutComponent(java.awt.Component, java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public float getLayoutAlignmentX(Container parent)
See Also:
LayoutManager2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getLayoutAlignmentY(Container parent)
See Also:
LayoutManager2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getLayoutComponent(Container target,
                                    Object constraints)
See Also:
addLayoutComponent(java.awt.Component, java.lang.Object), NullPointerException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getLayoutComponent(Object constraints)
See Also:
addLayoutComponent(java.awt.Component, java.lang.Object), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public void invalidateLayout(Container target)
See Also:
LayoutManager2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void layoutContainer(Container target)
See Also:
Container.doLayout(), LayoutManager
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String LINE_END
See Also:
Component.getComponentOrientation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String LINE_START
See Also:
Component.getComponentOrientation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension maximumLayoutSize(Container target)
See Also:
preferredLayoutSize(java.awt.Container), minimumLayoutSize(java.awt.Container), LayoutManager2
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension minimumLayoutSize(Container target)
See Also:
Container.getMinimumSize(), preferredLayoutSize(java.awt.Container), LayoutManager
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String NORTH
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String PAGE_END
See Also:
Component.getComponentOrientation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String PAGE_START
See Also:
Component.getComponentOrientation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Dimension preferredLayoutSize(Container target)
See Also:
Container.getPreferredSize(), minimumLayoutSize(java.awt.Container), LayoutManager
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeLayoutComponent(Component comp)
See Also:
Container.removeAll(), Container.remove(java.awt.Component), LayoutManager
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setHgap(int hgap)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setVgap(int vgap)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String SOUTH
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final String WEST
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags