To define MovieApplicationLayout
, you can either extend an existing
layout manager, shadowing some of its methods, or define a
class that implements the LayoutManager
interface. That interface
requires you to define, either directly or through an implementing class,
methods that add named components, remove components, perform the layout
operations, and provide minimum and preferred sizes.
public interface LayoutManager { public void addLayoutComponent(String name, Component component) ; public void removeLayoutComponent(Component component) ; public void layoutContainer(Container parent) ; public Dimension minimumLayoutSize(Container parent) ; public Dimension preferredLayoutSize(Container parent) ; }