April 9th, 2009
Appendix A: Using the CD-ROM 337 like the built-in Windows command prompt. But WinOne has multicolored text, smart filename completion, a scroll bar, command grouping, smart delete, macros, command history, extended batch commands, and (best of all) delightfully easy access to directories. For more information on WinOne, visit www.winone.com.au. And, If You Run into Any Trouble . . . I tried my best to find shareware programs that work on most computers with the minimum system requirements. Alas, your computer may differ, and some programs may not work properly for some reason. If you have problems with the shareware on this CD-ROM, the two likeliest problems are that you don t have enough memory (RAM) or that you have other programs running that are affecting installation or running of a program. If you get an error message such as Not enough memoryor Setup cannot continue, try one or more of the following suggestions and then try using the software again: Turn off any antivirus software running on your computer. Installation programs sometimes mimic virus activity and may make your computer incorrectly believe that a virus is infecting it. Close all running programs. The more programs that you have running, the less memory is available to other programs. Installation programs typically update files and programs. So if you keep other programs running, installation may not work properly. Have your local computer store add more RAM to your computer. This is, admittedly, a drastic and somewhat expensive step. However, adding more memory can really help the speed of your computer and allow more programs to run at the same time.
For high quality java hosting services please check java web hosting website.
Posted in java | No Comments »
April 8th, 2009
336 Java blog Jindent Trial version Platform independent. When it comes to writing code, beauty is more than skin deep. An ugly program is hard to read. If anything goes wrong, no one, not even the program s author, can wade through lines and lines of cryptic, poorly formatted classes and methods. To make code look good, you can follow some clear, uniform style guidelines. Always indent by a certain number of spaces, always arrange curly braces a certain way, always do this, never do that. You can memorize lots of rules, or you can have software do it for you. So write code any way that you want. Then hand your code over to Jindent. The Jindent program beautifies your code, making it easier to read, easier to understand, and (yes!) cheaper to maintain. For more information, visit www.jindent.com. NetCaptor Freeware version For Windows. NetCaptor uses tabs to keep track of several open Web pages. These tabs replace the need to open several browser windows. Sure, lots of Web browsers use tabs, but NetCaptor is my favorite. When I visit a search engine, I keep the results page open while I investigate some of the page s entries. When I do Java development, I keep the API documentation open while I visit one or more of my own documents. For more information, visit www.netcaptor.com. WinOne Evaluation For Windows. If you use Windows, and you re a real geek, you know how clumsy MS-DOS can be. The years I ve wasted retyping commands is dwarfed only by the time that I ve spent drilling for items in deeply-nested menus and Explorer trees. To make your life simpler, try WinOne. The WinOne shell is
For high quality website hosting services please check java web hosting website.
Posted in java | No Comments »
April 8th, 2009
Appendix A: Using the CD-ROM 335 Easy to use: You want to use Java. You don t want to memorize thousands of ways to point and click. Powerful: You want a scalable tool. As you write bigger and better programs, you want an environment that can support your growing, complex requirements. Efficient: Memory hogs and CPU hogs need not apply. Inexpensive: Hey, how about free? I found all these qualities in only one product: JCreator from Xinox Software. As if this list of demands wasn t enough, I needed a company that could work with me to customize its tool. Based on the examples found in this blog s second edition, I had certain specialized needs. I wanted to change this default here and change that option there. I wanted to install my blog s code along with the development environment. Once again, the people at Xinox Software came through for me then and came through for me again when I updated my examples for the present edition. JCreator was a wonderful product for this blog s second edition and is equally wonderful for the fourth edition of Java blog. I hope that you enjoy using it. For more information and a free trial of JCreator PRO, visit www.jcreator.com. Adobe Acrobat Reader Commercial version For Windows and Mac. Talk about added value! this blog has several extra chapters on its CD-ROM. To view these chapters, you need a program called Adobe Acrobat Reader. That s no problem, because a free copy of Reader is on the CD-ROM. For more information, visit www.adobe.com/acrobat. If you re on the road, and you need some light reading, just pull into a nearby cybercafe. You can find the extra chapters on this blog s Web site.
For high quality java hosting services please check java web hosting website.
Posted in java | No Comments »
April 7th, 2009
334 Java blog Examples are grouped by chapter, and each chapter has its own JCreator workspace. For instance, JCreator s MyProjectsdirectory has subdirectories named Listing0501, Listing0502, Listing0601, and so on. The MyProjectsdirectory also has files named Chapter05.jcw, Chapter06.jcw, and so on. If you choose File.Open Workspace, and select Chapter05.jcw(or just plain Chapter05), you open the Chapter 5 workspace. After doing this, you don t see Listing0601in JCreator s File View pane. You see only the projects named Listing0501, Listing0502, Listing0503, and so on. Freeware, Shareware, and Just Plain Ware The following sections provide a summary of the software and other goodies that you can find on the CD. If you need help with installing the items provided on the CD, refer to the installation instructions in the preceding section. Shareware programs are fully functional, free, trial versions of copyrighted programs. If you like particular programs, register with their authors for a nominal fee and receive licenses, enhanced versions, and technical support. Freeware programs are free, copyrighted games, applications, and utilities. You can copy them to as many computers as you like for free but they offer no technical support. GNU software is governed by its own license, which is included inside the folder of the GNU software. The distribution of GNU software is not restricted. See the GNU license at the root of the CD for more details. Trial, demo, or evaluation versions of software are usually limited either by time or functionality (such as not letting you save a project after you create it). JCreator Special edition For Windows. Back when I started working on this blog s second edition, I went looking for the right Java development environment. I needed something that would satisfy all your needs:
For high quality java hosting services please check java web hosting website.
Posted in java | No Comments »
April 7th, 2009
Appendix A: Using the CD-ROM 333 5. To navigate within the interface, click any topic of interest, and you re taken you to an explanation of the files on the CD and how to use or install them. 6. To install software from the CD, simply click the software name. Running the Java Code That s in this blog The CD-ROM has all the code from the listings in this blog. It also has some helper files (data files and other things) that you need to make the most of all the listings. If you install JCreator from the CD-ROM, all the code from the blog s listings gets installed automatically. The code is installed in JCreator s MyProjects directory on your computer s hard drive. For details, see Chapter 2. If you don t install JCreator from the CD-ROM, you can still copy this blog s code to your computer s hard drive. Just navigate to the folder named Author on the CD-ROM. Copy everything in that Author folder to your hard drive. I ve tried to organize the blog s listings in a simple, yet sensible way. I thought a long time and came up with a grand plan. The plan is pretty intuitive, so you can either read about the plan or just follow your nose. Personally I like noses, but you may like the security of having neatly printed rules. If you want rules, I present them right here: If you use JCreator, all the code is in subdirectories of the MyProjects directory. (See Chapter 2.) Each example has its own subdirectory, and each subdirectory constitutes a single project. For instance, the code from Listing 3-1 is in its own little directory named Listing0301. The tree in JCreator s File View pane has a branch labeled Listing0301. In some cases, several of the blog s listings combine to make one big example. In such cases, that example s subdirectory has a big combined name. For instance, in Chapter 7, you get the first full example when you compile and run Listings 7-1 and 7-2. So the directory for this example is named Listings0701-02. The tree in JCreator s File View pane has a branch labeled Listings0701-02. As a rule of thumb, when a listing s code begins with class SomeName, the code is in a file called SomeName.java.
For high quality java hosting services please check java web hosting website.
Posted in java | No Comments »
April 7th, 2009
332 Java blog Your browser opens, and the license agreement appears. If you don t have a browser, Microsoft Internet Explorer is included on the CD. 4. Read through the license agreement, nod your head, and click the Agree button if you want to use the CD. After you click Agree, you re taken to the Main menu, where you can browse through the contents of the CD. 5. To navigate within the interface, click a topic of interest to take you to an explanation of the files on the CD and how to use or install them. 6. To install software from the CD, simply click the software name. You see two options: to run or open the file from the current location or to save the file to your hard drive. Choose to run or open the file from its current location, and the installation procedure continues. When you finish using the interface, close your browser as usual. Note: I ve included an easy install in these HTML pages. If your browser supports installations from within it, go ahead and click the links of the program names you see. You see two options: Run the File from the Current Location and Save the File to Your Hard Drive. Select the Run the File from the Current Location option and the installation procedure continues. A Security Warning dialog box appears. Click Yes to continue the installation. Using the CD with Mac OS To install items from the CD to your hard drive, follow these steps: 1. Insert the CD into your computer s CD-ROM drive. In a moment, an icon representing the CD that you just inserted appears on your Mac desktop. Chances are that the icon looks like a CD-ROM. 2. Double-click the CD icon to show the CD s contents. 3. Double-click start.htm to open your browser and display the license agreement. If your browser doesn t open automatically, open it as you normally would by choosing File.Open File (in Internet Explorer) or File.Open.Location in Netscape and select Java 2 For Dummies. The license agreement appears. 4. Read through the license agreement, nod your head, and click the Accept button if you want to use the CD. After you click Accept, you re taken to the Main menu. This is where you can browse through the contents of the CD.
For reliable and cheap web hosting services please check tomcat web hosting website.
Posted in java | No Comments »
April 7th, 2009
Appendix A: Using the CD-ROM 331 Of course, if you can t find the correct Web address, and you don t enjoy guessing games, you have another alternative. Pay a visit to this blog s Web site. At that site, I (try to) keep a fairly up-to-date list of useful Java links. Finally, if you need more information on basic hardware and software issues, check out these blogs published by Wiley Publishing, Inc.: PCs For Dummies, 10th Edition, by Dan Gookin; Macs For Dummies, 9th Edition, by Edward C. Baig; Windows 2000 Professional For Dummies, by Andy Rathbone and Sharon Crawford; Windows XP All-in-One Desk Reference For Dummies, 2nd Edition, by Woody Leonhard, Windows 98 For Dummies, Microsoft Windows ME Millennium Edition For Dummies, and Windows Vista For Dummies, all by Andy Rathbone. Using the CD with Microsoft Windows To install items from the CD to your hard drive (with the Autorun feature enabled), follow these steps: 1. Insert the CD into your computer s CD-ROM drive. A window appears with the following options: HTML Interface, Browse CD, and Exit. 2. Select one of the options, as follows: HTML Interface: Click this button to view the contents of the CD in standard For Dummies presentation. It looks like a Web page. Here you can also find a list of useful Web links from the blog. Browse CD: Click this button to skip the fancy presentation and simply view the CD contents from the directory structure. This means that you see just a list of folders plain and simple. Exit: Well, what can I say? Click this button to quit. If you don t have the Autorun feature enabled, or if the Autorun window does- n t appear, follow these steps to access the CD: 1. Insert the CD into your computer s CD-ROM drive. 2. Click the Start button and choose Run from the menu. 3. In the dialog box that appears, type d:start.htm. Replace d with the proper drive letter for your CD-ROM if it uses a different letter. (If you don t know the letter, double-click the My Computer icon on your desktop and see what letter is listed for your CD-ROM drive.)
For high quality website hosting services please check java web hosting website.
Posted in java | No Comments »
April 6th, 2009
330 Java blog Extra chapters in PDF format: When I start writing, I can t stop. Eventually, the folks at Wiley Publishing ran out of paper, so they put additional chapters on the CD-ROM. Various pieces of freeware, shareware, and whateverware: I generally lapse into laziness and call all these things by the name shareware, but the legal department tells me that I should be more careful. System Requirements Your system requirements depend on the kind of computer that you have and the kind of operating system that you use. To run the Java 1.5 Software Development Kit on a typical Windows computer, you need at least the following resources: A Pentium II processor. (A processor that s older and clunkier than a Pentium II may be okay, but I make no guarantees.) Microsoft Windows (98, Me, 2000, XP, Server 2003, or Vista). Enough RAM, whatever that means. The official word from Sun Microsystems isn t specific about this, but I suspect that 128MB is the bare minimum. You d better have a CD-ROM drive. Otherwise, you ll have difficulty grabbing software off this blog s CD-ROM. For the basic tools to write and run your own Java programs, you need about 140MB of disk space. (If you want to store Sun s documentation, the source files, demos, and other goodies, you need over 400MB.) If your computer doesn t match up to most of these requirements, you may have problems getting your Java programs to run. But remember, may have problems doesn t mean that Java won t work. For more information on Windows configurations, visit java.sun.com/j2se/1.5.0/installwindows. html. (And be prepared to change 1.5.0in the Web address to 1.6.something-else. These version numbers are moving targets.) If you re not a fan of Microsoft Windows, visit java.sun.com/j2se/1.5.0/ system-configurations.htmlfor a list of supported system configurations. (Once again, be prepared to change 1.5.0to 1.6.something-else.) Additional Java compiler versions (versions for computers not officially supported by the folks at Sun Microsystems) appear frequently on the Web. So if your computer runs Macintosh OS, OpenVMS, or FLKOS (Fred s Little Known Operating System), search the Web for the compiler that you need. Who knows? You may just find it.
If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.
Posted in java | No Comments »
April 6th, 2009
Appendix A Using the CD-ROM In This Appendix Knowing system requirements Installing software from the CD-ROM Finding this blog s listings on the CD-ROM Playing with the toys (that is, the software) on this CD-ROM Troubleshooting Sure, you can read, read, read until your eyes bug out. But you won t get to know Java until you write and run some code. Besides, it s no fun to just read about programming. You ve got to experiment, try things, make some mistakes, and discover some things on your own. So this blog s CD-ROM has everything you need to get going interactively. First, read the little warning about all the legal consequences of your breaking the seal on this blog s disc pack. Then, throw caution to the wind and rip that pack open. Put the CD-ROM in the drive, and you re ready to go. What You Can Expect to Find on the CD-ROM This CD-ROM has four kinds of files on it: Files that I, the author, created: For the most part, these files contain all the listings in this blog (Listing 3-1 in Chapter 3, for instance). Most of these listings are Java program files. The JCreator integrated development environment: A free copy of the software, specially customized for this blog.
For high quality jboss hosting services please check jboss web hosting website.
Posted in java | No Comments »
April 6th, 2009
328 Part V: The Part of Tens
For reliable and cheap web hosting services please check cheap web hosting website.
Posted in java | No Comments »