Keep OSNews alive by becoming a Patreon, by donating through Ko-Fi, or by buying merch!

Java Archive

Ajax for Java Developers: Ajax with Direct Web Remoting

In the simplest terms, DWR is an engine that exposes methods of server-side Java objects to JavaScript code. Effectively, with DWR, you can eliminate all of the machinery of the Ajax request-response cycle from your application code. This article shows you how to use Direct Web Remoting (DWR) to expose JavaBeans methods directly to your JavaScript code and automate the heavy-lifting of Ajax.

Sun Offers Java Studio Creator, Java Studio Enterprise for Free

Sun is offering its high-end Java IDEs, Sun Java Studio Creator and Java Studio Enterprise, at no cost. Java Studio Enterprise 8 is the commercial IDE, which is based on open-source Netbeans 4.1. Java Studio Enterprise is capable to generate UML diagrams from your source code and vice versa. It has also a built-in collaboration tool that allows better team-work. Java Studio Creator is the Sun's Visual Basic Studio. It allows you to develop J2EE-App using Java Server Faces as front end.

Java: Cocoa Subclasses, Delegates; A Taste of the I/O Package

Coming from his background in Java development, the concept of using delegates and categories, as opposed to subclassing, was a bit foreign to Marcus Zarra. In Java subclassing, nearly everything was quite common. So common in fact, that Sun provided generic subclasses in quite a few cases. Objective-C and Cocoa, however, have a different approach. Marcus walks you through the different approaches used in Objective-C programming. Also: the Java platform includes a number of packages that are concerned with the movement of data into and out of programs. These packages differ in the kinds of abstractions they provide for dealing with I/O (input/output). This chapter covers primarily the stream-based model of the java.io package.

Best Practices for Embedded Applications with eSWT

"Because of the limits of embedded devices (for example, memory and screen size), there are some differences between the SWT widgets and eSWT widgets that greatly influence how you use them. This article shows you how the embedded Standard Widget Toolkit differs from the usual SWT Toolkit and provides best tips and practices for using it as you develop your own eSWT application based on the Model-View-Controller framework."

Java Generics Support in Eclipse v3.1

The generics support in the Java programming language is the most significant syntax change in its history. This article highlights how Eclipse has responded and the changes wrought by generics to the Java language. It shows how to take full advantage of generics within Eclipse, including support in Quick Assist, Quick Fix, refactoring, and project preferences. It also shows some subtle and important aspects of a fully generic language.

Using Java Web Start with SWT

"SWT is a growing Java GUI toolkit that is making inroads into commercial and corporate development because of its cross-platform interface to the operating system's native GUI toolkits. However, deploying SWT applications across an enterprise environment can be tricky and tedious if not done correctly. Using Java WebStart can bring these great looking applications to the desktop while eliminating manual deployment and updates for the IT department and end users."

Java Urban Performance Legends

Programmers agonize over whether to allocate on the stack or on the heap. Some people think garbage collection will never be as efficient as direct memory management, and others feel it is easier to clean up a mess in one big batch than to pick up individual pieces of dust throughout the day. This article pokes some holes in the oft-repeated performance myth of slow allocation in JVMs.

Java Object Serialization for Ajax

If you're doing Java Web development using Asynchronous JavaScript and XML, then delivering data from the server to the client is probably your top concern. This article focuses on what matters most for many Java Web developers, producing data for the client, and walks you through five approaches to Java object serialization. It will give you all the information you need to choose the data format and technology best suited to your application.

What Is Quartz

Quartz is an open source job-scheduling framework written entirely in Java and designed for use in both J2SE and J2EE applications. It offers great flexibility without sacrificing simplicity. You can create simple or complex schedules for executing any job. It includes features such as database support, clustering, plugins, prebuilt jobs for EJB, JavaMail and others, support for cron-like expressions, and many more.