devxlogo

Tip Bank

DevX - Software Development Resource

Printing a Report

Printing a simple report from Java is far from being as simple as you might expect. You use the Toolkit class to create a PrintJob, but the method requires a

DevX - Software Development Resource

Tabbing Between Components

With Java 1.1, the Tab key will cause the focus to step through those Components in a Container which can accept user input. Components such as Labels, which do not

DevX - Software Development Resource

References to Special Characters

It is easy to reference any Unicode character in Java source provided you know its four digit code. For example, the copyright symbol can be placed in a String as

DevX - Software Development Resource

Right-Clicks on a Single Button Mouse

Those of us with a two- or three-button mouse are familiar with the idea of a right-click, but how can you detect which button is pressed from your Java code?

DevX - Software Development Resource

vector<> members must define < and == operators

The STL vector, as well as other standard containers, support comparison and sorting of their members by calling the corresponding standard functions found in the header file. These functions rely

DevX - Software Development Resource

Test templates thoroughly

To write a test routine for a template class or function,you have to choose one concrete type for every formal typeof the template and run all tests on this instantiationof

DevX - Software Development Resource

Uninstallation

Question: I installed NT 4.0 over 95, and now what’s thebest way to uninstall only NT? Leaving 95 asit is. Answer: Yes, you can boot your computer with a Windows