 |
Articles by Topic
Accessibility
|
Vocal Java
Disabled users depend on assistive technologies to help them work with computers, and this technology is built into Swing. In this article, Jeff Friesen shows how to use a free implementation of the Java Speech API to create a program that reads the text of Swing and AWT components as a user mouses over them.
by Jeff Friesen
|
all articles related to this topic
Community
all articles related to this topic
Databases
|
Query by Slice, Parallel Execute, and Join: A Thread Pool Pattern in Java
Pagination is a much-needed feature; one that's harder than it looks. For large datasets, reading all results into memory is impractical, if not dangerous, but only fetching small chunks can make it difficult to apply business logic across all results. Binildas C. A. shows how to combine the database's ROWNUM function with Java SE 5's thread pools to create highly effective pagination.
by Binildas Christudas
| |
Adopting a Java Persistence Framework: Which, When, and What?
Java programmers have a number of persistence frameworks to choose from, and far from being redundant, each is based on significantly different beliefs, assumptions, and ideal use-cases. In this article, Sharad Acharya takes a comparative look at JPA, Entity EJBs, Hibernate, and TopLink, to help you understand which is right for your needs.
by Sharad Acharya
| |
What's New in JDBC 4.0?
Java SE 6 offers a new version of the platform's database support: JDBC 4.0. Sharad Acharya shows off the new features, including simplified driver loading, better exception reporting and handling, support for more data types, and more.
by Sharad Acharya
|
all articles related to this topic
Education
all articles related to this topic
EJB
all articles related to this topic
Extreme Programming
|
UISpec4J: Java GUI Testing Made Simple
GUI's are notoriously difficult to test, and the robot-based approach to automated testing makes agile development difficult, as you need finished GUIs before you can test. The UISpec4J project takes a different approach, and in this article Régis Medina and Pascal Pratmarty show how it works.
by Régis Medina
and Pascal Pratmarty
| |
Code Reviews
Need to be sure your program really runs right? Oh sure, testing's a part of it, but so are code reviews. Sri Sankaran argues that research and experience prove that a standardized, effective code review process mitigates costs and produces better code.
by Srivaths Sankaran
| |
Keep Changes Small: A Happy Jack Story
How do you reconcile the calls from agile processes for constant refactoring and integration with demands to deliver huge new pieces of functionality? In a sort of cubicle-era Socratic dialogue, Michael Ivey shows how developers can learn to do big things with small changes.
by Michael Ivey
|
all articles related to this topic
GUI
all articles related to this topic
JavaOne
all articles related to this topic
JSP
|
Synchronizing Properties with Beans Binding (JSR 295)
The idea of setting up listener relationships between your GUI models, views, and controllers is simple enough, but grinding the same "glue" code dozens or even hundreds of times is wasteful and error-prone. JSR-295, Beans Binding, offers relief from the drudgery. In this article, John O'Conner shows how it works and what it can do for you.
by John O'Conner
| |
Unified Expression Language for JSP and JSF
JSP's expression language is great until you try to also use it with JSF. The limitations and differences between the two technologies has given rise to a "unified" expression language. In this article, Krishna Srinivasan takes a look at how the unified EL works.
by Krishna Srinivasan
| |
Sprinkle Some AJAX Magic in Your Struts Web Application
AJAX offers a richer client-side experience than is offered by the typical reload-the-page cycle of web applications, but do you have to start over to get its benefits? As Paul Browne shows, you can incrementally add AJAX functionality to an existing Struts web app.
by Paul Browne
|
all articles related to this topic
JSR
|
JSR-286: The Edge of Irrelevance
JSR-286 updates the Portlet specification to add new functionality, but has the Portlet ship sailed? In this article, Eric Spiegelberg looks at the history of the Java Portlet spec and argues that the design and philosophy of Java web applications has moved on and left portlets behind.
by Eric Spiegelberg
| |
JSR 310: A New Java Date/Time API
Java SE's Date and Calendar classes leave much to be desired. Will the third time be the charm? JSR 310, tracking for inclusion in Java SE 7, once again tries to offer a comprehensive date and time API, borrowing much of its design from the popular Joda Time API. In this article, Jesse Farnham takes a look at JSR 310's concepts and how they may yet bring sense to dates and times in Java.
by Jesse Farnham
| |
The Open Road: java.nio.file
A file I/O API with reliable and speedy methods for copying and moving files? Getting and preserving file attributes? Filesystems to represent RESTful web servers or the contents of zip files? JSR 203, which may be part of Java 7, offers a totally overhauled approach to File I/O in Java. In this installment of "The Open Road," Elliotte Rusty Harold takes a look at the current spec.
by Elliotte Rusty Harold
|
all articles related to this topic
Linux
all articles related to this topic
Mobility
all articles related to this topic
Programming
|
Real World Java EE Patterns: Rethinking Best Practices
Java Champion Adam Bien talks with java.net editor Kevin Farnham about JavaEE and enterprise computing best practices in this java.net Community Corner 2009 podcast, recorded at JavaOne.
by Adam Bien
| |
Grails and Continuous Integration: An Essential Combo
Grails is an excellent, highly productive development framework that positively encourages good development and testing practices. This article shows how to set up a Continuous Integration build job to compile and test your Grails application in Hudson, for automated continuous integration.
by John Ferguson Smart
| |
Hacking JavaFX Binding
The JavaFX bind operator connects or links variables, through a small framework based on Locations. This article looks at the internal structure of JavaFX binding, and demonstrates how it can be applied as a binding framework for Swing.
by Thomas Künneth
|
all articles related to this topic
Research
|
The Open Road: Building the JDK
Ready to work with the GPLed JDK from the OpenJDK project? Your first order of business will probably be getting the code compiled and running on your machine. And that's not an easy process. In this installment of The Open Road, Elliotte Rusty Harold relates the step-by-step process of building the JDK on Linux.
by Elliotte Rusty Harold
| |
Code Reviews
Need to be sure your program really runs right? Oh sure, testing's a part of it, but so are code reviews. Sri Sankaran argues that research and experience prove that a standardized, effective code review process mitigates costs and produces better code.
by Srivaths Sankaran
| |
Smooth Moves
Animation quality is a subjective perception, and that makes it somewhat more of an art than a science. Chet Haase has taken a look at some of the things that make animation look choppy, and offers programmatic approaches to improving the appearance of Java animations.
by Chet Haase
|
all articles related to this topic
Search
|
MarkMail's java.net Email Search
Clark Richey talks about the java.net email search capabilities provided by MarkMail.org.
by Clark D. Richey, Jr.
| |
Introduction to Nutch, Part 2: Searching
In the second part of this look at the Nutch web indexing and search engine, Tom White looks at how to perform searches on the index generated in part one's crawl, and shows how to integrate Nutch's search capabilities with your applications through direct Java calls to its API or via the OpenSearch API.
by Tom White
| |
Introduction to Nutch, Part 1: Crawling
Do you need your own search engine, when the world already has Google? Quite possibly so: you may belong to an organization with enough of its own contents that you want to manage and run your own search engine--and know how it works. Nutch is an open source search engine written in Java. In this article, Tom White shows how it crawls pages to build its index.
by Tom White
|
all articles related to this topic
Security
|
Pitfalls of the Java Permissions Model
Is Java a good choice for creating applications with configurable security? Denis Pilipchuk argues that Java's permissions-based security model is a relic of its browser days and lacks the configurability, expressiveness, and efficiency that enterprise Java developers need. In this article, he looks at the problems of the permissions model and considers some alternatives.
by Denis Pilipchuk
| |
Securing Your Web Application Requests
One often unanticipated vector for security attacks on web applications is the possibility that a user could hack the GET or POST request to send unanticipated or invalid data to the application. In this article, Eric Speigelberg shows how to use JSTL's URL encoding and a servlet filter to obfuscate or even encode parameters in each direction to thwart parameter-hacking.
by Eric Spiegelberg
| |
JavaDB End-to-End Security
The all-Java database JavaDB (aka Derby) is known for its embeddability, but what about security? Can you put it out there for enterprise applications and keep data safe? Masoud Kalali shows the steps you can take to secure your JavaDB data.
by Masoud Kalali
|
all articles related to this topic
Servlets
|
An Introduction To Servlet 3.0
After years of simpler maintenance releases, the Servlet API is getting a major overhaul for Java EE 6, improving ease of use, configurability, pluggability, security, and more. In this article, Deepa Sobhana offers a detailed overview of what's changing and why.
by Deepa Sobhana
| |
Instant User Tracking with ClickStream
Where are your users going on your website and what are they doing? ClickStream, one of the many OpenSymphony projects, lets you track and log where users go during their sessions. In this article Diego Adrian Naya Lazo shows you how to configure, run, and customize ClickStream
by Diego Naya
| |
Building Web Components Without a Component Framework
In this article, Michael Jouravlev explores Java component development. His approach treats a web component in the old-fashioned way: as a resource, identified with unique location. If you use JSP as the presentation layer for your web applications, this article may open some new possibilities.
by Michael Jouravlev
|
all articles related to this topic
Struts
|
Transparent State Management Using the Decorator Pattern
Storing state in the session makes sense at first, but can become a burden to manage properly, and can make more of your application stateful than you originally intended. Sharfudeen Ashraf shows how a servlet filter can be used to provide transparent state management.
by Sharfudeen Ashraf
| |
Sprinkle Some AJAX Magic in Your Struts Web Application
AJAX offers a richer client-side experience than is offered by the typical reload-the-page cycle of web applications, but do you have to start over to get its benefits? As Paul Browne shows, you can incrementally add AJAX functionality to an existing Struts web app.
by Paul Browne
| |
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
|
all articles related to this topic
Swing
|
Complex Table Cell Rendering Made Simple
Plain old text-only JTable cells are boring, but once you start to mix multiple types of cell renderers in a table, your getTableCellRendererComponent() method can get completely out of control. In this article, Michael Bar-Sinai offers a performant and clever alternative that looks up the needed renderer with class-based and rule-based maps.
by Michael Bar-Sinai
| |
Binding Beans
Expressing GUI relationships through beans' getters and setters is a burdensome process of wiring that has frustrated many developers. Binding offers an alternative: automatically connecting a model value to its GUI representation. This style of programming is available to users of the JGoodies Binding framework, as well as the implementation of JSR-295, and in this article Thomas Künneth takes a look at both.
by Thomas Künneth
| |
Translucent and Shaped Swing Windows
The new "Consumer JDK," Java SE 6 Update N, offers desktop developers the ability to set per-pixel translucency on windows, which opens up a wide variety of possibilities for translucent and shaped windows previously only available to native applications. Kirill Grouchnikov shows how far these features can take you.
by Kirill Grouchnikov
|
all articles related to this topic
Testing
|
Kirk Pepperdine on Java Performance Tuning
Kirk Pepperdine talks about Java performance tuning in this java.net Community Corner 2009 podcast, recorded at JavaOne.
by Kirk Pepperdine
| |
Source Code Analysis Using Java 6 APIs
Why does Java 6 expose the javac compiler through a programmatic interface? It's not just for building IDEs. In this article, Deepa Sobhana and Seema Richard show how to use the new feature for static code analysis, with an example that verifies that classes overriding Object.equals() also implement the required override of Object.hashcode().
by Seema Richard, Deepa Sobhana
| |
UISpec4J: Java GUI Testing Made Simple
GUI's are notoriously difficult to test, and the robot-based approach to automated testing makes agile development difficult, as you need finished GUIs before you can test. The UISpec4J project takes a different approach, and in this article Régis Medina and Pascal Pratmarty show how it works.
by Régis Medina
and Pascal Pratmarty
|
all articles related to this topic
Web Design
all articles related to this topic
Web Development Tools
|
JSR-286: The Edge of Irrelevance
JSR-286 updates the Portlet specification to add new functionality, but has the Portlet ship sailed? In this article, Eric Spiegelberg looks at the history of the Java Portlet spec and argues that the design and philosophy of Java web applications has moved on and left portlets behind.
by Eric Spiegelberg
| |
Ajax Form Validation Using Spring and DWR, Revised
In a previous article, Eric Spiegelberg offered a design for using DWR to allow an Ajax-based web application to provide server-side validation of client-side input. After nearly a year in production, he's back with a cleaner, more efficient design.
by Eric Spiegelberg
| |
Instant User Tracking with ClickStream
Where are your users going on your website and what are they doing? ClickStream, one of the many OpenSymphony projects, lets you track and log where users go during their sessions. In this article Diego Adrian Naya Lazo shows you how to configure, run, and customize ClickStream
by Diego Naya
|
all articles related to this topic
Web Services and XML
|
JavaFX HTTP Networking and XML Parsing
Much of the interest in JavaFX has centered about the platform's GUI capabilities and tooling. But many JavaFX applications will need to be network clients, and JavaFX provides classes to help you with common network tasks. In this article, Francesco Azzola shows how to retrieve XML data via HTTP and parse it with JavaFX's XML parser.
by Francesco Azzola
| |
Exploring ESB Patterns with Mule
Will Enterprise Service Bus be the next big thing in enterprise integration? ESB is a highly ambitious standard, providing high levels of flexibility and extensive features. In this article, Igor Dayen shows how to implement a common enterprise integration pattern, the routing slip, by using Mule, a popular open source messaging framework.
by Igor Dayen
| |
SOA Reusability: Shrinking the Lag between Business and IT
SOA is really the latest effort in a decades-long quest to achieve software reusability. In this article, Mehul J. argues that the key is not in the IT department, but rather in enabling business analysts to directly reconfigure systems built on SOA.
by Mehul Shah
|
all articles related to this topic
|