< prev index next >

src/java.desktop/share/classes/java/awt/LayoutManager.java

Print this page

        

*** 24,53 **** */ package java.awt; /** * Defines the interface for classes that know how to lay out ! * <code>Container</code>s. * <p> * Swing's painting architecture assumes the children of a ! * <code>JComponent</code> do not overlap. If a ! * <code>JComponent</code>'s <code>LayoutManager</code> allows ! * children to overlap, the <code>JComponent</code> must override ! * <code>isOptimizedDrawingEnabled</code> to return false. * * @see Container * @see javax.swing.JComponent#isOptimizedDrawingEnabled * * @author Sami Shaio * @author Arthur van Hoff */ public interface LayoutManager { /** * If the layout manager uses a per-component string, ! * adds the component <code>comp</code> to the layout, * associating it ! * with the string specified by <code>name</code>. * * @param name the string to be associated with the component * @param comp the component to be added */ void addLayoutComponent(String name, Component comp); --- 24,53 ---- */ package java.awt; /** * Defines the interface for classes that know how to lay out ! * {@code Container}s. * <p> * Swing's painting architecture assumes the children of a ! * {@code JComponent} do not overlap. If a ! * {@code JComponent}'s {@code LayoutManager} allows ! * children to overlap, the {@code JComponent} must override ! * {@code isOptimizedDrawingEnabled} to return false. * * @see Container * @see javax.swing.JComponent#isOptimizedDrawingEnabled * * @author Sami Shaio * @author Arthur van Hoff */ public interface LayoutManager { /** * If the layout manager uses a per-component string, ! * adds the component {@code comp} to the layout, * associating it ! * with the string specified by {@code name}. * * @param name the string to be associated with the component * @param comp the component to be added */ void addLayoutComponent(String name, Component comp);
< prev index next >