Example #1
0
 /** Updates and repaints the title bar. */
 void updateTitleBar() {
   titleBar.update(window.getTitle());
 }
Example #2
0
 /**
  * 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());
 }