Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Creating Custom Desktop Components

This article presents a drawing component used by an image-annotation application named JImaging. Some of the JImaging code has already been described in two other articles, titled "Prototyping Desktop Applications" and "Data Models for Desktop Apps."

Tutorial Details:

Swing provides a complete set of standard GUI components, ranging from simple buttons and text fields to feature-rich tables, trees, and text editors. These components are fully customizable, but you might find that Swing's built-in components don't offer everything you need. For example, financial and monitoring applications use charts to present their data graphically. Of course, before starting to build your own chart components, you should evaluate some of the existing chart frameworks, in case someone has already created the component you need. Sometimes, this isn't the case, or perhaps the licensing terms are not acceptable, which means that you have to develop the custom component required by your application yourself.

JImaging's PaintView class extends javax.swing.JComponent, like any regular Swing component. The JComponent class provides many features shared by all Swing components, such as the support for double buffering, which eliminates the flashing effect that occurs when the graphic objects are painted directly onto the screen. With double buffering, the UI components are painted into a buffer, and when the painting is done, the buffer is copied to your screen very quickly.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Creating Custom Desktop Components

View Tutorial:
Creating Custom Desktop Components

Related Tutorials:

How to drag and drop with Java 2, Part 2 - JavaWorld August 1999
How to drag and drop with Java 2, Part 2 - JavaWorld August 1999
 
Dynamic user interface is only skin deep - JavaWorld May 2000
Dynamic user interface is only skin deep - JavaWorld May 2000
 
Conquer Swing deficiencies in MDI development - JavaWorld May 2001
Conquer Swing deficiencies in MDI development - JavaWorld May 2001
 
Create a scrollable virtual desktop in Swing
Create a scrollable virtual desktop in Swing
 
Java is here to stay (JavaWorld / January 2000 / by John Rommel)
Java is here to stay (JavaWorld / January 2000 / by John Rommel)
 
A first look at JavaServer Faces, Part I
A first look at JavaServer Faces, Part Learn how to implement Web-based user interfaces with JSF
 
A first look at JavaServer Faces, Part 2
A first look at JavaServer Faces, Part 2
 
Introducing the Portlet Specification, Part 1
Introducing the Get your feet wet with the specification's underlying terms and concepts
 
SQL Database Access with DBTags
SQL Database Access with DBTags In a J2SE or J2EE application, Java Database Connectivity (JDBC) can be used to create a connection with a SQL database, create database tables, retrieve result sets, and update the database. To use a database from a Jav
 
Data Models for Desktop Apps
Data Models for Desktop Apps This is the third article in a series that presents the prototype of a Java desktop application called JImaging. The first article described the three major Java GUI toolkits: AWT, Swing, and SWT. In the second article, I int
 
FindBugs, Part 2: Writing custom detectors
FindBugs, Part 2: Writing custom detectors How to write custom detectors to find application-specific problems In the first article in this series, I showed you how to set up and execute FindBugs. Now we'll take a look at FindBugs' most powerful fea
 
Creating JSF Custom Components
Creating JSF Custom Components This article illustrates how to build custom components for use in web applications based on JavaServer Faces (JSF). While JSF comes with a standard set of components, one of the most-publicized features is the easy additio
 
Creating Custom Desktop Components
This article presents a drawing component used by an image-annotation application named JImaging. Some of the JImaging code has already been described in two other articles, titled "Prototyping Desktop Applications" and "Data Models for Desktop Apps."
 
JavaServer Faces Technology
JavaServer Faces technology is a server-side user interface component framework for Java technology-based Web applications.
 
Writing a Custom Counter Component
MIDP 2.0 introduced the javax.microedition.lcdui.CustomItem class. As the name implies, a developer can now create custom UI components by extending the CustomItem class. This tech tip designs and implements a UI component for displaying a numeric counter
 
Migrating From Microsoft Windows to the Sun Java Desktop System (pdf)
System administrators interested in migrating from a Microsoft Windows operating system to the Sun Java Desktop System can refer to this Sun technical white paper, which gives step-by-step migration procedures and a description of the interoperability be
 
Free Linux Distribution in India
Free Linux Distribution in India Free Linux Distribution in India Your premium place to get Free Linux CDs in India Popularity of Linux is growing in World including India. So to be part of this we have decided to help Indian community in getting
 
Struts Guide
Struts Guide Struts Guide This tutorial is extensive guide to the Struts Framework. In this tutorial you will learn how to develop robust application using Jakarta Struts Framework. This tutorial assumes that the reader is familiar with the web
 
Advanced Synth
Take an in-depth look at the Synth look and feel, the newest addition to Swing introduced in Java 5.0. Synth lets developers rapidly create and deploy custom looks for an application by introducing the concept of a "skin" to Java UI programming.
 
Creating Wizard Dialogs with Java Swing
Wizard dialogs are ubiquitous in today's desktop applications. This article creates a framework for a simple wizard dialog, complete with Back, Next, and Cancel buttons that you can extend for use in your applications as necessary.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.