The continuation of JavaWorld's most popular long-running series, featuring new and classic Java programming tips from your peers in the Java developer community. Submit a Java programming tip: email@example.com.
Many companies use SharePoint to store and share documents, but relatively few Java developers know how to access SharePoint web services from a Java client. In this Java tip, learn how to use CAML calls for CRUD operations in...
Orthogonality is a concept often used to describe modular and maintainable software, but it's also a design principle found (and broken) in some of our most popular Java utilities. With this short article you'll wrap your head around...
JavaFX 2.0.2 and successor SDKs let you deploy JavaFX
applications in multiple environments including as a standalone app, via
Java Web Start, or embedded in a web page. Jeff Friesen follows up his
recent introduction to JavaFX 2.0...
The Database Schema Browser utility eases the task of database
lookup by providing users with a consolidated list of tables and
their definitions with one simple hit to the servlet. What's more,
you can use the browser's print options...
Swing's ButtonGroup class allows radio button grouping
to ensure single selection; however, the implementation raises many
question marks. You cannot retrieve a reference to the currently
selected button in the group, and the class...
Java 2 Platform, Standard Edition (J2SE) 1.4x uses a new
StrictMath package to perform mathematical
calculations, but many of these math routines are much slower than
the corresponding routines in J2SE 1.3. Luckily, Java...
One way to write Java 2 Platform, Enterprise Edition (J2EE)
applications that produce dynamic content is to use servlets,
JavaBeans, XML, HTML, and XSLT (Extensible Stylesheet Language
Transformations). In this tip, Klaus Berg looks...
Businesses often use surveys for market research, user feedback,
and various evaluation methods. Increasingly, surveys are being
placed online, and good software is needed to make them more
efficient and cost effective. Some surveys...
Empower your JavaBeans to handle data conversion to and from their
XML document format without complicating the code. This tip shows
you how to write and use a component to convert a JavaBean to its
XML document representation and...
When displaying tables with tens of thousands of rows (or more), it
is imperative they quickly respond and display. One way to achieve
this is by using a specialized TableModel that
retrieves data from a server only when it is...
Struts, from the Apache Jakarta Project, implements the
Synchronizer Token pattern to prevent duplicate form submission.
Applying this pattern, you can detect this situation and follow an
alternate course of action when it happens....
Are you still using one big property file? Using multiple property
files instead can also be unwieldy, unless you have the right
tools. You can layer property files easily when you use the
PropDiff utility. Layered property files are...
In contrast to some other languages, Java's simplicity and
consistency allow compilers to detect many more errors. Java
developers learn to rely on their compilers to catch assignments to
incorrect types, calls of nonexistent methods...
Published in early 1997, "
Java Tip 27: Typesafe Constants in C++ and Java" discussed how
to create and use typesafe constants (enums) in both Java and C++.
Since then, various JavaWorld articles have covered how to
To learn part of a new API or even some important Java nuance,
you'll often find it useful to run a short bit of code. In this
Java Tip, Shawn Silverman explains how to easily
and quickly test one or more Java statements. The program...
Over the years many Java developers have asked, "How much memory
does a Java object consume?" In this Java Tip,
Vladimir Roubtsov explains problems with previous solutions. In
addition, based on his experience exploring memory usage,...