September 11, 2001

DevX - Software Development Resource

How to Make a Private Member Public

You can make a privately inherited member public by specifying its access modifier in the derived class. For example: #include class base{ public: int a; int b; base() { a=10;

DevX - Software Development Resource

Executing a Java Application in an End User System

The Java 2 Runtime Environment is the minimum standard Java computing environment for running applications written in the Java programming language. It contains the Java virtual machine, Java core classes,

DevX - Software Development Resource

Using the Java Robot Class

This tip demonstrates a user interaction (mouse move & mouse click) using native Robot methods.Here’s the algorithm of the program:1. Quickly to move the mouse cursor to the upper left

DevX - Software Development Resource

Use Mouse Wheel to Control JSpinner

Merlin (JDK1.4) introduces two new features: JSpinner and MouseWheelListener. Sometimes it is convenient to control the spinner values with the mouse wheel. Here’s an example: import javax.swing.*;import java.awt.event.*;public class TestSpinner

DevX - Software Development Resource

Create a Thread to Execute Short Code

Sometimes you want to create a thread to run something trivial, like when you’re debugging your code. This is a quick way to do it: new Thread(new Runnable() { public