devxlogo

Tip Bank

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,

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

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

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

Extended user interface for combo boxes

Apart from the different kind of combo boxes you can obtain by manipulating the Style property, another feature is made available by Windows when dealing with combo box controls, the

Move focus with Up and Down keys

In all standard controls, Up and Down arrow keys move the focus on the previous or next control in the TabIndex order, respectively. This contrasts with text boxes, where these

Mutually exclusive list boxes

Many Windows programs use two adjacent list box controls to let the user select a number of items from a list of available values; such list boxes are mutually exclusive,

Incremental searches within list boxes

The DBList and DBCombo controls expose a MatchEntry property, that – when set to True – permits to perform quick incremental searches by simply typing the searched sequence of characters.