Similar Articles |
|
JavaWorld February 2002 David Geary |
Take control with the Proxy design pattern The Proxy design pattern in Java lets you substitute a proxy for an object. In that capacity, proxies prove useful in many situations, ranging from Web services to Swing icons... |
JavaWorld March 2003 David Geary |
An inside view of Observer The Observer pattern lets you build extensible software with pluggable objects by allowing communication between loosely coupled objects. The author explores the Observer pattern, how it's used throughout the Java 2 SDK, and how you can implement the pattern in your own code. |
JavaWorld November 14, 2003 Allen Holub |
Create client-side user interfaces in HTML, Part 2 This "Create Client-Side User Interfaces in HTML" series continues by examining the HTMLPane sources. Part 2 offers examples of how to customize the JEditorPane to support custom tags and also provides an extended description of the Factory Method design pattern. |
JavaWorld October 3, 2003 Allen Holub |
Create client-side user interfaces in HTML This article presents a variant on Swing's JEditorPane that makes it possible to specify an entire screen of your client-side user interface (UI) in HTML. |
JavaWorld April 2002 David Geary |
Strategy for success The Strategy design pattern embodies two fundamental tenets of object-oriented design: encapsulate the concept that varies and program to an interface, not an implementation. This article shows how to use the Strategy pattern to implement an extensible design... |
JavaWorld July 25, 2003 David Geary |
Make your apps fly Allocating numerous objects can degrade your application's performance. This article shows how to implement the Flyweight design pattern to greatly reduce the number of objects your application creates, which decreases your app's memory footprint and increases performance. |
JavaWorld December 2002 David Geary |
A first look at JavaServer Faces, Part 2 JavaServer Faces, with a well-defined request processing lifecycle and a rich component hierarchy, will profoundly affect the development of J2EE applications. Part 1 of this two-part series introduced JavaServer Faces and explored its fundamental concepts. Part 2 examines more advanced concepts such as custom validation, internationalization, and custom component implementation. |
JavaWorld November 2000 Geoff Friesen |
Applications, applets, and hybrids This article establishes our bearings and sets sail to the land of applications, applets, and hybrids (an unusual category of Java programs)... |
JavaWorld December 2000 Victor Okunev |
Validation with pure Java The importance of employing a good data-validation framework cannot be overestimated. The core Java API has everything you need to solve this problem in the most elegant way. |
JavaWorld September 2000 Michael C. Daconta |
Steer clear of Java pitfalls Avoiding Java programming problems can save you considerable time and frustration when developing programs. This month, Michael Daconta presents two API pitfalls and a long-standing bug. |
JavaWorld February 2001 Brian Goetz |
Design for performance, Part 2: Reduce object creation Many common Java performance problems stem from class design decisions made early in the design process, long before most developers even start thinking about performance. The author discusses some techniques for reducing temporary object creation... |
JavaWorld November 2001 John Chamberlain |
Implement a J2EE-aware application console in Swing Learn the fundamentals of Swing while creating a command console to control complex enterprise applications. A console provides a window into a system's operation and allows operators to configure, monitor, and control the system in real time... |
JavaWorld September 19, 2003 Brian Connolly |
Client quality reporting for J2EE Web services This article implements a general-purpose architecture for recording client response times for J2EE Web services. The sample implementation was built using the Sun ONE Application Server and IDE, but the general approach can be easily adapted to other J2EE implementations. |
JavaWorld May 2000 Michael T. Nygard & Tracie Karsjens |
Test infect your Enterprise JavaBeans Software can never be tested sufficiently, and testing usually starts too late, particularly for J2EE applications. This article presents unit testing techniques and how to apply unit testing to Enterprise JavaBeans (EJBs). |
JavaWorld December 5, 2003 Borislav Iordanov |
Dynamic server includes with local runtime context This article shows how to achieve true black-box reuse of frontend logic in the form of JSP pages or Java servlets, by wrapping the servlet request object and effectively creating a local runtime context for an included resource. |
JavaWorld October 2002 Fraser & Harris |
Speed up your Swing GUI construction with better building blocks Developing a Swing-based user interface with many dialogs can be slow and tedious if each dialog has to be hand coded or hand constructed using an IDE's screen designer. This article presents a quicker alternative using helper classes to handle the common layout of dialogs. |
JavaWorld February 2001 Slav Boleslawski |
Speed up file searching in JFileChooser Traditionally, users choose files by scrolling the file chooser's list with their mice. You can speed that process by enhancing JFileChooser with a type-ahead method: the user just types the first few characters of a filename to select the desired file. This article shows you how to do just that. Plus, you'll learn how to register listeners on a compound component's descendants to extend JFileChooser's functionality. |
JavaWorld March 2002 James Carman |
Write once, persist anywhere Most J2EE applications strive to abstract the database tier by employing the Data Access Object design pattern. This article shows you a DAO pattern framework that you can reuse on all your projects, regardless of object type... |
JavaWorld October 2002 Jeff Friesen |
Java's character and assorted string classes support text-processing Text-processing is one of the more frequent activities in which computer programs engage. Java supports that activity via the Character, String, StringBuffer, and StringTokenizer classes. This article explores each class and introduces you to an assortment of those classes' methods. |
JavaWorld October 2001 David Geary |
Amaze your developer friends with design patterns Design patterns are proven techniques for implementing robust, malleable, reusable, and extensible object-oriented software. This article introduces design patterns to Java developers and explores Strategy, Composite, and Decorator -- three common, yet powerful, design patterns in the JDK... |
JavaWorld February 2001 Robert Nielsen |
Learn Java from Ben Franklin While Benjamin Franklin never wrote a line of Java code, his techniques for better writing can be applied to writing Java. Anyone with at least a basic grasp of Java can use Franklin's learning methods... |
JavaWorld May 30, 2003 David Geary |
Facade clears complexity The Facade design pattern simplifies complex APIs by providing a simplified interface to a complex subsystem. This article explores a built-in Swing facade for creating dialog boxes and a custom facade for getting a Swing application off the ground. |
JavaWorld April 25, 2003 Anthony Karre |
A do-it-yourself framework for grid computing Large-scale grid computing frameworks can be successfully used to build computational grid infrastructures, but their sophistication can also be a barrier for software designers experimenting with entry-level grid computing. |
JavaWorld February 2002 Dirk Reinshagen |
Connect the enterprise with the JCA, Part 2 This article demonstrates a simple JCA (J2EE Connector Architecture) adapter implementation. After you read this article, you'll possess a good understanding of how to build your own JCA adapter... |
JavaWorld September 2001 Michael L. Perry |
Automate dependency tracking, Part 2 Automatic dependency tracking simplifies application development and maintenance. Here's how to achieve these worthwhile benefits... |
JavaWorld August 2000 Samudra Gupta |
JDK 1.2 breaks the Java sound barrier This article shows how to implement high-quality audio formats through applets and presents the communication possibilities between JavaScript and Java 2 applets... |
JavaWorld July 18, 2003 James Carman |
Get down to business In this article, you will learn how to structure your applications such that modifications to the business object implementation do not require changes to the user interface using a simple framework for accessing your business objects. |
JavaWorld October 2001 Tony Loton |
JavaMail quick start This article shows the first steps on the road to building Java-based email applications. If you fancy building your own email client to replace Microsoft Outlook, or a Web-based email system to rival Hotmail, this is the place to start... |
JavaWorld July 2002 Rinaldo Di Giorgio |
Serve clients' specific protocol requirements with Brazil, Part 6 This article demonstrates how to use the following technologies with the Brazil toolkit: Jini, BeanShell, and the Java API for XML Messaging (JAXM), Xalan-Java, servlets, Velocity, and LDAP. It also discusses the larger purpose of this series: to demonstrate how to use Brazil to support new technologies and APIs in ways that API developers might not have considered. |
JavaWorld June 2001 Michael Daconta |
An API's looks can be deceiving When you examine an API, your first impressions are often wrong. The author examines two cases where an intuitive model of how an API should work trips over the complexity of implementation details... |
JavaWorld March 2002 Dennis M. Sosnoski |
XML documents on the run, Part 2 Frameworks for event-driven programming simplify working with complex document structures in SAX2 (Simple API for XML). This article extends the handling approach introduced in Part 1 by making it fully modular and easily extensible for nested document components... |
JavaWorld August 2002 Greg Holling |
Put Java in the fast lane This article presents some techniques for locating performance bottlenecks in Java applications and offers suggestions for improving Java performance. Along the way, you'll look at some of the classes in the new java.nio package. |
JavaWorld November 2000 Brett McLaughlin |
Validation with Java and XML schema, Part 3 Taking validation beyond simple if-then-else structures, XML schemas can provide a better way to validate data in Java applications. You'll learn to parse the XML schema, build up Java representations of the schema's constraints, and apply those constraints to an application's data... |
JavaWorld December 2000 Todd Sundsted |
Secure thread collaboration across protection domains When threads collaborate across protection domains, they introduce interesting wrinkles into the science of building secure applications. This month, we present these scenarios and shows how to use the AccessControlContext and GuardedObject classes to build solid solutions... |
JavaWorld November 2000 Abhilash Koneri |
Eliminate tedious programming: Recover data with XML and Reflection The parsing of ResultSets forms one of the most significant tasks involved in retrieving data from a database. But, as a repetitious and uninteresting assignment, it is not a favorite among developers. How to supplant ResultSet parsing in the data access objects... |
JavaWorld July 2000 Patrick Sean Neville |
Crafting Metadata Like a classic plot retold in a new setting, software applications have extended lifetimes when decoupled from their contextual details. This article exposes how traditional configuration files, XML-based properties, and cryptography help keep such details out of code. |
JavaWorld January 2, 2004 Allen Holub |
More on getters and setters This article provides one of several possible programmatic solutions to the get/set-elimination problem. In particular, it demonstrates how to construct both Web-based and client-side user interfaces without exposing your object's implementation to the entire program. |
JavaWorld January 2001 Jean-Pierre Dube |
Printing in Java, Part 3 Part 3 of our series on Java printing introduces you to the print framework. Working on top of the Java Print API, the framework will make printing pages much easier by providing such features as a print-preview facility, a portable page-setup dialog, and graphics primitives... |
Linux Journal June 1, 2007 Ariel Ortiz |
An Introduction to Metaprogramming How to write programs that write programs. Metaprogramming at first may seem to be an advanced topic, suitable only for programming language gurus, but it's not really that difficult once you know how to use the adequate tools. |
JavaWorld August 2001 Jeff Friesen |
Object-oriented language basics, Part 5 Every Java class has a superclass. In the absence of an extends keyword, Object is that superclass. Object takes center stage as this article presents its 11 methods... |
JavaWorld January 2002 Jason Cai |
Combine the Session Facade pattern with XML This article explores the benefits and advantages of using the Session Facade pattern. The author discusses when to use the pattern with value objects, and when to use it with XML. He also provides a detailed implementation of the Session Facade pattern integrated with XML... |
JavaWorld June 2002 Dirk Laessig |
Score big with JSR 77, the J2EE Management Specification The specification's core is based on the model of managed objects, explained in this article. JSR 77 also defines an Enterprise JavaBeans (EJB) component for easily accessing these managed objects. |
JavaWorld September 2002 Erik Eide |
Manage your software with the Java Product Versioning Specification This article introduces the Java Product Versioning Specification and functionality built into the Java platform designed to support the evolution of software products and components in a simple, standardized manner. |
JavaWorld February 2002 Jeff Friesen |
Classes within classes As with fields and methods, Java allows classes to be members of other classes. This article explores Java's support for class nesting... |
JavaWorld November 2001 Michael C. Daconta |
Practice makes perfect One pitfall stumbled on while porting an Extensible User Interface Language (XUL) game to Java and two pitfalls sent in by readers... |
JavaWorld January 2001 Brian Goetz |
Design for performance, Part 1: Interfaces matter Many common Java performance problems stem from class-design decisions made early in the design process, long before most developers even start thinking about performance... |
JavaWorld October 2000 Robert Hustead |
Mapping XML to Java, Part 2 This article develops a SAX API-based class library that is easily extended to create XML-to-Java mapping code. First, we explore the important ideas that drive the need for the class library. Then we develop a basic approach for implementing the library as well as a few samples that demonstrate some more advanced topics on parsing XML with the SAX API... |
JavaWorld June 2000 |
Letters to the Editor (June 23, 2000) Jason Hunter addresses a gripe with calling instanceof when using JDOM; Mark Johnson responds to feedback on his XML series; reader challenges Tony Sintes about whether it truly is impossible to write a swap method... |
JavaWorld December 2000 Michael C. Daconta |
When Runtime.exec() won't This installment of Java Traps discusses one new pitfall and revisits another from the previous column. Originating in the java.lang package, the pitfall specifically involves problems with the Runtime.exec() method. |
JavaWorld June 2000 Paul Corazza |
Using the if-then-else framework, Part 3 In this final part of a three-part series, Paul Corazza analyzes the if-then-else framework's performance and shows you how to optimize algorithms and implementation choices and minimize the risks involved in using the framework in larger-scale projects. The final product is a sleek, industry-ready upgrade of the prototype presented in previous articles, complete with new user options, a performance test harness, and automated safety features capable of handling thousands of conditions and rules. |