Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: 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

Tutorial Details:

What are Data Models and Why Use Them?
The term "model" means various things in different contexts. Java developers use it frequently when they discuss the Model-View-Controller (MVC) pattern, but you may also hear this term when somebody talks about JavaBeans, whose specification defines a "component model." In this article, a data model means an object structure keeping the data of the entire application or just the data visualized by a single GUI component.

JavaBeans are serializable components that expose a set of properties accessible with get and set methods. They may also have public methods, but instead of calling each other's methods, JavaBeans communicate through events. This requires more coding since it involves the so-called event listener interfaces and event classes, but these features make the components independent and reusable. All GUI components of AWT and Swing are JavaBeans. The java.awt.event and javax.swing.event packages define events and listeners such as ActionEvent and ActionListener.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Data Models for Desktop Apps

View Tutorial:
Data Models for Desktop Apps

Related Tutorials:

Enhance your Java application with Java Native Interface (JNI)
Enhance your Java application with Java Native Interface (JNI)
 
Make room for JavaSpaces, Part 2 - JavaWorld January 2000
Make room for JavaSpaces, Part 2 - JavaWorld January 2000
 
Make room for JavaSpaces, Part 6 - JavaWorld October 2000
Make room for JavaSpaces, Part 6 - JavaWorld October 2000
 
The Jxta solution to P2P
The Jxta solution to P2P
 
JavaMail quick start
JavaMail quick start
 
Sync up Palm OS with J2ME
Sync up Palm OS with J2ME
 
Java is here to stay (JavaWorld / January 2000 / by John Rommel)
Java is here to stay (JavaWorld / January 2000 / by John Rommel)
 
Develop state-of-the-art mobile games
Develop state-of-the-art mobile games
 
WebOnSwing 1.0 beta
WebOnSwing 1.0 beta WebOnSwing is a revolutionary multiple environment application framework that allows you to create web applications in the same way you develope a desktop one. You dont need to use JSP files, special tags, XML files, requests, posts
 
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
 
Introduction to Jena
Introduction to Jena Use RDF models in your Java applications with the Jena Semantic Web Framework RDF is increasingly recognized as an excellent choice for representing and processing semi-structured data. In this article, Web Developer Philip McCart
 
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."
 
Core Java Data Objects Excerpt
This book excerpt is from Core Java Data Objects,
 
Develop WAP Applications with Java Servlets and JavaServer PagesTM
WAP, the Wireless Application Protocol, was designed to take advantage of the several data-handling approaches already in use. WAP integrates the Handheld Device Markup Language (HDML) and the Handheld Device Transport Protocol (HDTP) developed by Unwired
 
Hibernate simplifies inheritance mapping.
Learn three easy-to-implement strategies to map class hierarchies. Hibernate is an object-relational mapping and persistence framework that provides a lot of advanced features, ranging from introspection to polymorphism and inheritance mapping.
 
Chat Transcript: Project Looking Glass
Where did the original Looking Glass idea come from? Read the answer to this and other interesting questions about Project Looking Glass, a project that explores the next generation (3-dimensional) desktop.
 
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
 
Running Wine on the Sun Java Desktop System, Release 2
A BigAdmin reader describes how to install and use Wine, an open source implementation of the Windows API, on the Sun Java Desktop System, Release 2.
 
Open Source Web Frameworks in Java
Open Source Web Frameworks in Java Open Source Web Frameworks in Java Struts Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern for the JSP. Struts is maintained as a part of Apache Jakarta project and is open
 
Sun Java Desktop System Now Supports Solaris 10 OS
Sun Java Desktop System, Release 3 is now available on the Solaris 10 OS, along with management tools and some free and trial development tools.
 
Site navigation
 

 

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

Copyright © 2006. All rights reserved.