Tip Bank

DevX - Software Development Resource

Changing Button Captions

Question: How do you change a button’s caption after it is created? Answer: Java’s Button class defines two methods for getting and setting a button’s caption. They are getLabel() and

DevX - Software Development Resource

Accessing a C Library from Java Applet

Question: I want to be able use a Web frontend for a databaseapplication. I would like to use Java to process theuser input and C for accessing the database. Myquestion

DevX - Software Development Resource

Integer-to-string Conversions

Question: I want to convert an integer into a string. Is there anything in Java similar to the itoa() function in C? Answer: To convert a number (or in fact,

DevX - Software Development Resource

TIniFile’s Hidden Limitation

Question: I have an INI file that is approximately 20K with all entries in one section. If I use TIniFile’s ReadSection method, only part of the section gets loaded. Why?

DevX - Software Development Resource

Creating a LIST_SELECT Event

Question: How do I create a LIST_SELECT event? Specifically, what should I put in the fields of the statement: Event anevent = new Event(mylst, event.when, event.LIST_SELECT, ?, ? event.key, event.modifiers,?)