magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 01 > Java@Work

Split-Personality Applets

Teaching classes and consulting, I travel a lot. Because of this, I'm becoming quite fond of Internet-based services. I check my mail on Hotmail. I keep my calendar on Yahoo. I even share files with clients using a couple of online services -- FreeDrive and the very cool involv. These are great, because I can access them no matter where I am. Well, almost. (see " Online")

I do a lot of work on airplanes. Yes, there are phones on planes now, but I really don't want to pay $3 a minute for a slow Internet connection. Other times I'll be in a classroom that doesn't have a connection (although that's getting less common all the time). What can I do then? It would be nice if I could have Web-enabled applications that could also run without a Web connection.

With that in mind, I decided to create a simple applet that displays a phone book of names and phone numbers from a server. Although the program runs as an applet, you can download the exact same class file and use it as an application. When you run it on the local machine, the program reads its data from a local file (which, of course, you can download from the server). Applets can't access the local file system, so they read the same data from the server.

The Core Applet

The basic applet is straightforward (the PhBook applet is available electronically; see "



  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2