public void install(Component container) { if (this.container != null) { throw new IllegalStateException("already initialized"); } this.container = container; container.addMouseListener(this); container.addMouseMotionListener(this); station.addDockHierarchyListener(this); setController(station.getController()); }