O'Reilly logo

Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ by Dan Scott, George Baklarz, Paul C. Zikopoulos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

YMLD Initialization

The main() method of the YMLD program calls FrameLauncher(). This method is part of the Thinlet GUI library, and it sets up the environment in which the panels are to be displayed. The arguments to this method include the title of the application, the method that will be invoked to display the first panel, and the height and width dimensions of the screen.

public static void main(String[] args) throws Exception {
  new FrameLauncher("Your Momma Loves Drama", new YMLD(), 580, 375);
}

The YMLD() method displays two panels when it is invoked.

public YMLD() throws Exception {
  Object panel = parse(ymldMain);
  add(panel);
  panel = parse(ymldConnect);
  add(panel);
  requestFocus(find(panel,"bConnect"));
}

The parse() and add() methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required