@Override public Component getNextComponent(Container container, Component component, FocusTraversalDirection direction) { assert (container instanceof Window) : "container is not a Window"; if (direction == null) { throw new IllegalArgumentException("direction is null."); } Window window = (Window)container; return window.getContent(); } }
@Override public Component getNextComponent(Container container, Component component, FocusTraversalDirection direction) { assert (container instanceof Window) : "container is not a Window"; if (direction == null) { throw new IllegalArgumentException("direction is null."); } Window window = (Window)container; return window.getContent(); } }
@Override public int getPreferredHeight(int width) { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredHeight(width) : 0; }
@Override public int getPreferredWidth(int height) { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredWidth(height) : 0; }
@Override public int getPreferredWidth(int height) { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredWidth(height) : 0; }
@Override public int getPreferredHeight(int width) { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredHeight(width) : 0; }
@Override public void layout() { Window window = (Window)getComponent(); Component content = window.getContent(); if (content != null) { content.setSize(window.getSize()); } }
@Override public void layout() { Window window = (Window)getComponent(); Component content = window.getContent(); if (content != null) { content.setSize(window.getSize()); } }
@Override public Dimensions getPreferredSize() { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredSize() : new Dimensions(0, 0); }
@Override public Dimensions getPreferredSize() { Window window = (Window)getComponent(); Component content = window.getContent(); return (content != null) ? content.getPreferredSize() : new Dimensions(0, 0); }