Quantcast
Channel: JavaTechniques
Browsing latest articles
Browse All 10 View Live

Testing Strings for Equality

Strings are Objects in Java, but the ability to use literals, along with the String concatenation operator, make them somewhat similar to primitive types. Java also automatically “interns” String...

View Article



Lucene In-Memory Search Example

Apache’s Lucene text search library provides powerful and flexible tools for searching collections of text. While the indexes that Lucene builds are often stored on disk, the libary includes the...

View Article

Compressing Socket Data

The java.util.zip package includes classes for compressing and decompressing data using the ZLIB algorithms. The stream classes in the package are well-suited for accessing files and other bounded...

View Article

Profiling WebStart Apps with JProfiler on OSX

JProfiler is a great tool for tracking down pesky memory leaks and performance problems. Here’s a trick for configuring JProfiler for use with remote Java Web Start applications on OSX.

View Article

A Simple GridBagLayout Example: Forms

GridBagLayout is, at times, a little too flexible. This simple example illustrates the use of GridBagLayout to generate nicely aligned forms for entering data.

View Article


Checking out Apache’s FeedParser

In searching for a Java library to parse RSS and Atom feeds I ran across FeedParser from the Apache Jakarta Project. From a few quick experiments this looks pretty slick, but is unfortunately marked as...

View Article

Generating a Stack Trace with jdb

Every once in a while I run into a situation where the usual means for generating a thread dump does not work, making it difficult to track down pesky deadlocks. Rather than actually figuring out why...

View Article

Opening Java WebStart from the Command Line

For scripting or debugging it is sometimes useful to be able to launch WebStart from the command line, rather than from a web browser. “Launching Java WebStart from the Command Line” describes several...

View Article


Headless Exception Work-Around

On upgrading a piece of (1.4-dependent) server-side software from 1.4.2_01 to 1.4.2_14, I began seeing errors that looked like: java.awt.HeadlessException at...

View Article


Software Demo Movies

I’ve added some notes on video screen capture for software demos over on Random Tech Notes. This isn’t strictly Java-related, though I’ve been experimenting with screen recording in the context of...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images