/** Updates and repaints the title bar. */ void updateTitleBar() { titleBar.update(window.getTitle()); }
/** * Sets the window and initializes the title bar. * * @param window The window to set. */ private void initialize(TinyDialog window) { if (window == null) throw new NullPointerException("No window."); this.window = window; titleBar = new TitleBar(window.getTitle(), window.getButtonIndex()); }