All java.net Articles
1 to 30 of 170
Next
Breaking the Last Dependency
All of the factory patterns "encapsulate" the instantiation of concrete classes and help to minimize (as well as localize) the dependencies your code has on those concrete classes. This articles explains what "breaking the last dependency" means, how it relates to the Factory pattern, and why you should care.
by Elisabeth Freeman
and Eric Freeman
Java Tech: Acquire Images with TWAIN and SANE, Part 3
TWAIN is the standard for image acquisition from scanners and digital cameras, but its GUI assumptions make it ill-suited for Linux and other *nix operating systems. In part three of his series looking at image acquisition in Java, Jeff Friesen looks at the SANE alternative, and how to use it with Java.
by Jeff Friesen
Using the Strategy Design Pattern for Sorting POJOs
You have some plain ol' Java objects and you want to sort them. By what field? Well, by which ever one the user wants. But that implies different kinds of search logic, and how will you keep it straight? Olexiy Prohorenko shows how the Strategy design pattern is perfectly suited to solve this problem.
by Olexiy Prohorenko
April Fools 2005
What Java/technology April Fools stories would you have run this year?
by Daniel H. Steinberg
Web Wizard Component, Part 2: The View
A GUI wizard is something that's surprisingly tricky to get right in a web application. In the conclusion of this series, Michael Jouravlev takes the model from part one and builds out the user interface with Struts, addressing some interesting web usability problems along the way.
by Michael Jouravlev
Boxing Conversion in J2SE 5.0
J2SE 5.0's autoboxing feature liberates you from the hassle of bundling your primitives into wrapper objects in various situations (like putting them in collections), but autoboxing doesn't always behave as you might expect. Krishna Srinivasan has details on how this milestone feature really works.
by Krishna Srinivasan
Laszlo: An Open Source Framework for Rich Internet Applications
William Grosso gives you a quick overview of Laszlo, an open source rich internet applications development platform. After a high-level overview of what Laszlo is and how it works, you'll get a quick tour through some of the basic features of Laszlo, and see what's involved in building a very application in Laszlo. Finally, he looks at where it does and does not make sense to use Laszlo.
by William Grosso
Web Wizard Component, Part 1: The Model
A GUI wizard is something that's surprisingly tricky to get right in a web application. In this first article of a two-part series, Michael Jouravlev shows how to build a suitable data model for managing the wizard behavior from the server side.
by Michael Jouravlev
Principles, Patterns, and Practices: The Factory Pattern
There are several design patterns allow us to hide the type of an object even from those who seek to create it. These patterns are known as Factories.
by Robert C. Martin
Streamline Your Portlet Development with MVCPortlet Framework
This article presents an overview of MVCPortlet, an MVC framework for developing JSR-168-compliant portlets.
by Padmanabh Dabke
A Starter's Guide to the Eclipse IDE, Part 1: Installation and Projects
Installing Eclipse and working with basic Java
projects.
by Satya Komatineni
JBoss At Work, Part 1: Installing and Configuring JBoss
In this first article of a series, you'll learn how to download and install JBoss. Tom Marrs and Scott Davis, authors of the upcoming JBoss At Work: A Practical Guide, explore the directory structure and show you how to add and remove services and how to deploy an application to JBoss.
by Tom Marrs
and Scott Davis
Robotics: Using Lego Mindstorms and Java
In this article we will explore the brain of Lego Mindstorms that will enable us to program the robot to perform the functions we intend. You will look at installing and using the Java-based leJOS firmware.
by Krishnan Viswanath
Integrating Java Open Single Sign-On in Pluto
This article shows how to integrate Java Open Single Sign-On in Apache's Pluto portlet container.
by Gianluca Brigandi
FlyingGuns: A Distributed Realtime Simulation Game
FlyingGuns is a game as well as a demo for a technology created for distributed simulations that can be found in applications of various fields where data has to be distributed at high rates.
by Joerg Plewe
Timing is Everything
Chet Haase considers what it now takes to add dynamic effects, animations, or time-based events to a Java application and proposes and details a timing framework.
by Chet Haase
IoC Container Face-Off
Ken Ramirez looks at resolving component dependency resolution using the Inversion of Control pattern and compares PicoContainer and HiveMind.
by Ken Ramirez
J2ME Tutorial, Part 1: Creating MIDlets
Java 2 Micro Edition (J2ME) combines a resource-constrained JVM and a set of Java APIs for developing applications for mobile devices. Here is a step-by-step guide to creating MIDlets,
testing and deploying these MIDlets, and a look at the lifecycle of a MIDlet.
by Vikram Goyal
Low-Level Display Access in MIDlets
In part four of his series on mobile application development with J2ME, Thomas Künneth looks at the Canvas, which gives developers of games, multimedia, 3D and other applications the ability to render directly to the display instead of by way of a set of widgets.
by Thomas Künneth
Asserting Control Over the GUI: Commands, Defaults, and Resource Bundles
A simple combination of the current J2SE classes are sufficient to
bind Swing GUI components to actions in a declarative form
that's easily localized.
by Hans Muller
Java Tech: Acquire Images with TWAIN and SANE, Part 2
With his first JTwain library, Jeff Friesen got image acquisition working, but with limited functionality and many inefficiencies. In this installment of the series, he builds a better JTwain by introducing TWAIN "capabilities."
by Jeff Friesen
Your Hibernate-Powered Application is Ready for CMT
Using Hibernate with container-managed transactions is so simple that Hibernate's FAQ practically brushes off the question. Yet many report having a hard time getting it working. In this article, Olexiy Prohorenko shows how.
by Olexiy Prohorenko
Scheduling a Golf Tournament
This article shows how to solve a hard
scheduling problem (scheduling a golf tournament), using Koalog Constraint
Solver, a Java library for constraint programming.
by Yan Georget
Struts Live Excerpt
In this excerpt, Jonathan Lehr takes you through integrating ActionForms with POJOs. He writes that one of the complaints about Struts "is that unlike some of the newer web application frameworks (Spring, WebWork, JavaServer Faces, etc.), it can't deal directly with POJOs. As a result, people developing Struts applications often feel forced to spend a considerable amount of time and energy devising solutions to bridge the gap."
by Jonathan Lehr
Holiday Party Guide to Patterns
A survey of some of the Gang of Four design patterns: Composite, Singleton, Factory, Adapter, Decorator, Facade, and MVC.
by Elisabeth Freeman
and Eric Freeman
Ten for the Holidays
Greg Wilson reviews books for programmers and selects ten (or more) for your holiday reading.
by Greg Wilson
Duke's Vacation 2004
Here are some of the pictures readers sent us of Duke on vacation.
by Daniel H. Steinberg
(Not So) Stupid Questions 3: Private Access
This "stupid question" is about how objects of the same type can see each other's privates.
Refactoring in Java
This excerpt from Joshua Kerievsky's Refactoring to Java shows you an alternate technique for introducing a Null Object, rather than that shown in Martin Fowler's Refactoring book.
by Joshua Kerievsky
Testing Your Enterprise JavaBeans with Cactus
Test-driven development is an important technique, but Enterprise JavaBeans can be difficult to test in isolation. Cactus, from Apache's Jakarta project, makes this easy by bridging JUnit unit tests to server-side application containers. Olexiy Prohorenko shows how it works.
by Olexiy Prohorenko
1 to 30 of 170
Next
|