devxlogo

Tip Bank

DevX - Software Development Resource

Always on top window

Question: Is it possible to create an ‘always on top window’ in java? Answer: The short and perhaps not so sweet answer is “No.” At least not in 100%Java. You

DevX - Software Development Resource

Parsing a string into a date

Question: I’m writing a class that reads a log file containing timestamps.My StringTokenizer returns the timestamp as a String and I then haveto store it in a date container. Should

DevX - Software Development Resource

Tool Tips

Question: How do I get a tool tip to appear in a java application? Answer: Tool tips were not a part of the AWT packages in the 1.0.2 and 1.1releases

DevX - Software Development Resource

Completely hidden application

Question: Here is one that I couldn’t figure out for months!Will I be surprised if anyone can come up with a solution to this. How do you create a program

DevX - Software Development Resource

Printing Components

Question: How do I print out a component? Answer: Java 1.1 introduced the java.awt.PrintJob and java.awt.PrintGraphicsclasses. It also added the print(Graphics) and printAll(Graphics)methods to java.awt.Component, and the printComponents(Graphics) methodto java.awt.Container.

DevX - Software Development Resource

Doubling Quotes in SQL Server

This routine parses a string and returns an equivalent string where all the instances of a given substring are doubled. This is especially useful for doubling quotes within SQL statements

DevX - Software Development Resource

Enhancing Vector’s Performance

Standard vector dynamically allocates the required amount of memory it needs; which saves you the bother of memory management. However, letting vector acquire additional memory slowly one chunk after another