Research and Implementation on Visual Customization of Java Componnent Look and Feel

Author
ZhongJuan
Advisor
WangYuWang
School
Anhui University of Science and Technology
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2007
Downloads
39
Citations
1

Request the full text

Abstract

Java is an interpretive and totally object-oriented language. It has been successfully applied in many fields, such as network and mobile computing. From J2SE5.0 published by Sun Microsystems, Inc., a new Swing package called Synth has offered a new Look-and-Feel (L&F) "skin" appearance, making Java much improved in the field of UI (User interface).But, when a programmer utilizes Synth to design L&F, he needs describe lots of component properties, with over 100 components specific properties defined. That is troublesome for programmers. This paper designs and implements a visual component L&F customization toolkit via UML modeling and XML processing. The key is to visually customize component L&F through setting component properties and creates corresponding XML file. The system is mainly composed of three modules: drawing board, component properties editor, image preview and image border editor. By this toolkit user may set component properties in the property editor, according to one’s own requirement, and preview the effect. If satisfied, the XML file with the record of component L&F properties will be automatically created and saved. If the user is not satisfied with image offered by the system, he can edit it or draw new one in the drawing board and save it as .png file and use it again in the mentioned process.This paper analyzes the principle and structure of the visual customization of component L&F based on Java Synth, specify the goal of the toolkit and implements the main functions of the toolkit.

Table of contents

Abstract 5-6 Abstract 6-11 1 Introduction 11-15 1.1 Introduction 1.2 Background to the status quo 11-13 1.3 studies the key technologies and content 13 organizational structure 1.4 papers 13-15 2 Java Technical Overview 15-25 2.1 Java language introduced 15-16 2.2 Java Swing development 16-17 2.3 Java Synth and application prospects 17-25 3 XML technology and UML technology 25-33 3.1 an XML technology 25-28 3.1.1 XML origin 25-26 3.1.2 XML characteristics 26-28 3.2 XML technology combined with Java applications 28-29 3.3 UML technology 29-33 3.3.1 UML development and characteristics 30-31 3.3.2 UML application 31 3.3.3 Why use UML 31-33 4 model based on the visual component of the Java Synth style custom system design 33-46 4.1 component style custom system key technologies 33-34 4.1.1 object-oriented analysis method 33-34 4.1.2 die faster design 34 4.2 component style custom system principle 34-44 the 4.2.1 component style customization system as a whole model 35-36 the 4.2.2 custom components style system Sketchpad model 36-38 the 4.2.3 component style customization system attribute editor design model 38-42 4.2.4 Attribute Editor image preview and border design model 42-44 4.3 custom component style system design goals 44-46 5 Java Synth-based visualization component style custom system key 46-68 5.1 the component style custom system development environment and development tools 46-47 Sketchpad function 5.2 component style customization system to achieve 47-49 5.3 component style customization system attributes editor function 49-54 5.4 Attribute Editor image preview and boundary functions 54-68 6 Summary and Outlook 68-70 6.1 summarizes 68 6.2 Looking 68-70 the References 70-72 Acknowledgements 72-73 the degree academic achievements during 73