devxlogo

Tip Bank

Dynamically Creating Controls in Palm OS

Creating controls in Palm OS is very useful. It gives vital power to the programmer in creating applications. There are various controls in Palm OS like buttons, check boxes, radio

Generating Unique Numbers

Here is sample code: import java.security.SecureRandom;public class UniqueNumberGenerator{ static final SecureRandom random = new SecureRandom(); static final StringBuffer buffer = new StringBuffer(30); static { random.nextInt(); } public static String getNextUID()

Closing JDBC ResultSet Instances Properly

Many books about JDBC and most of JDBC-related sample code floating around seems to assume that JDBC is used directly, meaning that database connection is established by the DriverManager, and

When To Use equalsIgnoreCase

The equals() method in the String class is commonly used to compare two strings for equality. However, this method returns true only if the argument is not null and is

Load a Combobox/Listbox From a Recordset

This is a fast and versatile function for loading comboboxes.I have not included a ComboBox.Clear, to make it possible to load multiple recordsets to the combobox. This makes it more