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 ...

Get Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.