devxlogo

November 10, 1998

Function Try Blocks

A function try block is a function whose body consists of a try block with its associated handlers (catch-statements). A function try block is probably most often used in a

Square Buttons in the JToolBar

When placing JButtons in the JToolBar, use gif icons that are 25 x 25 pixels. Then create a ToolButton class that sets the insets to zero so that the buttons

Alternative Java Coding Environment

For quick Java development, consider using MicroEdge’s Visual SlickEdit (http://www.slickedit.com) instead of an IDE. It recognizes and highlights Java keywords and inserts braces and indents code correctly. To make it

Alpha to Integer Conversion

C and C++ programmers are accustomed to using the atoi() function to convert strings to numeric integer values. Although Java doesn’t have an atoi() method, it provides the same capability