devxlogo

Tip Bank

Add Background Image to JTable

You can easily add a background image to swing’s JTable. The following code shows you how: Note that the image scrolls with the table. public class BackgroundTable { public static

Get Rid Of Unreadable Characters

Line separators are dependent on the operating system. This may cause some annoyance when opening files created on another operating system. For example, if you are using Microsoft Windows, and

Provide Data Tip For JTable Columns

Cell data in a table may exceed the width of its column. It is a good, user-friendly, idea to have ToolTips appear in a cell showing the entire cell data

Java’s Division and Modulus Operations

In Java you take the remainder with the modulus (%) operator, whereby the sign of the remainder follows the dividend, not the divisor. So (+5 % -2) will be, to

CSS Properties: Display vs. Visibility

Browsers Targeted: Internet Explorer 3+ It’s fairly easy to confuse the Cascading Style Sheets (CSS) properties display and visibility, because it would seem that they do much the same thing.

Informix and ODBC

Question: I have an Informix database on a remote server and I’m trying to perform ODBC from my client machine. I have installed the client products on my Windows 98

Finding Sqexplain.out

Question: I can’t find the sqexplain.out file. Where is it? Answer: In UNIX systems, this file is usually placed in the directory from which you called the dbaccess or other

Am I in the IDE?

Question: Is there a simple test that can determine whether a VB program is running in the IDE or as a compiled exe? Answer: Yes there is a very simple

Set Your Pages’ Content Ratings in IIS

Content ratings help your users?especially families?know what type of content your site provides. Microsoft Internet Information Server (IIS) 4 lets you add content ratings to any page. Try this: In