Owl Teach Yourself Java 2 in 21 Days, Second Edition
HOME / ORDER THE BOOK / OTHER BOOKS / THANKS / PREVIOUS DAY / NEXT DAY

Day 19: Communicating Across the Internet

Notes and Corrections

  • Page 498: To make the WebMenu applet display the buttons as shown in Figure 19.1, you must create a FlowLayout object and make it the layout manager for the applet's content pane. This is illustrated in WebMenu.java, which you can download from this site.

Source Files

Reader Questions

  • None.

Activities

  • Solution #1: RandomWeb.java, RandomWeb.class, WebButton.class, and RandomWeb.html. To see this applet in a Web browser using the Java Plug-in, open RandomWebPlugIn.html. (One word of caution: Because this applet opens randomly selected domains with three-letter names when you click a button, you may encounter sites that are adult-oriented or otherwise indelicate.)
  • Solution #2: FingerServer.java, FingerServer.class, agore.plan, gwbush.plan, and rcade.plan. To run this application on a Windows system, open an MS-DOS window and type java FingerServer at a command line. You can test the server using the Finger program you created during Day 19. Open a second MS-DOS window and use one of the following commands:
    • java Finger agore@localhost
    • java Finger gwbush@localhost
    • java Finger rcade@localhost
HOME / ORDER THE BOOK / OTHER BOOKS / THANKS / PREVIOUS DAY / NEXT DAY

Workbench | Books | RSS Feed | RSS Spec | Copyright 2024 World Readable