mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
46 lines
855 B
Java
46 lines
855 B
Java
public class pr26390
|
|
{
|
|
public interface ComponentPeer {
|
|
public void setBounds();
|
|
}
|
|
|
|
public interface ContainerPeer extends ComponentPeer {
|
|
}
|
|
|
|
public interface WindowPeer extends ContainerPeer {
|
|
}
|
|
|
|
public interface FramePeer extends WindowPeer {
|
|
}
|
|
|
|
public static class SwingComponentPeer implements ComponentPeer {
|
|
public void setBounds() {
|
|
}
|
|
}
|
|
|
|
public static class SwingContainerPeer
|
|
extends SwingComponentPeer implements ContainerPeer
|
|
{
|
|
}
|
|
|
|
public static class SwingWindowPeer
|
|
extends SwingContainerPeer implements WindowPeer
|
|
{
|
|
}
|
|
|
|
public static class SwingFramePeer
|
|
extends SwingWindowPeer implements FramePeer
|
|
{
|
|
public void setBounds() {
|
|
super.setBounds();
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
SwingFramePeer s = new SwingFramePeer();
|
|
s.setBounds();
|
|
}
|
|
}
|
|
|