Tip Bank

DevX

Add a Hyperlink Listener in Java

To add a hyperlink listener in Java, add it to the JEditorPane and set its contents. A lot of errors may be thrown, but this is how the hyperlink listener

DevX

The Default Value Returned From main()

In this example, main() is missing an explicit return statement. int main() { printf(“hello world”); } In C, when control reaches the end of main() without encountering a return statement,

DevX

Create ODBC DSNs Dynamically

You can use Visual Basic to create ODBC Data Sources Names (DSNs) dynamically for MS SQL Server. Simply place this line in a module: Declare Function SQLConfigDataSource Lib “odbccp32.dll” (ByVal

DevX

Avoid Empty Exception Handlers

One of the most frustrating experiences when running a Java program is an empty line where you expect information about a thrown exception. The programmer probably meant to catch the

DevX

Delete an Item From Favorites

Question: How do I delete an item from Favorites under Windows NT 4.0? Answer: Under Windows NT 4.0, the favorites are saved in this folder: C:WINNTProfilesFavorites You can delete items

DevX

Netscape Displays a Blank Page

Question: My Web page works fine using Internet Explorer but if view with Netscape it displays a blank page. I think it has something to do with the table commands,

DevX

Pre-Fill a User Form

Question: I’d like to implement a script on my Web site that I’ve seen on other sites. This script asks visitors to register for free through a form as a