Font Size: a A A

The Research And Implement Of Java Swing Interactive Interface Template Based On Design Pattern

Posted on:2009-03-26Degree:MasterType:Thesis
Country:ChinaCandidate:J LiuFull Text:PDF
GTID:2178360245474178Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the progress of computer and software,the interaction between people and computer needs more development,the interface between them gives users more and more convenience,the result is that to make UI become more and more complex and cost more labor and time.In order to save time of programmers,it is necessary to make research of interface template technology.Java is designed to be a flexible,run on any platform and completely object-oriented programming language.Because of the many peculiarities,especially the advantage of platform-free of Java,it is more and more popular to use java to write application and web interfaces.Swing is an important window toolkit class of java and a powerful instrument to build GUI,it has more advantages compare to another Java interface components,it's believed that more and more UI of softwares will be built with java swing.It is a significance thing to make research and design java swing interface templates.At first,this paper introduces two design patterns,MVC(Model-View-Control) model and main controller model,then describe in details and give an example to illustrate the association of swing and MVC.At second,this paper propose a design idea and scheme which is base on java swing and the two design pattern.The scheme includes design of UI agent,View,and controller,and the we implement a demo program,using swing class and basing on the design·patterns introduced before.Take the JButton as example and build a UI generator,the button generator could generate swing style buttons according to users' inputs,and generate corresponding java code so that uses also could change the button by modifying code.That is to say,it has the function of middleware,which could save interface contents in template instance so that we can modify and reuse them,and could create source code based on template instance.At third,this paper prove that another swing component such as JTextField, JScrollBar,and so on could also be made as a interface template - by this way,a integrated interface template tool is formed to develop swing style UI.At the end,this paper conclude the practical application and sense of proposing the scheme.
Keywords/Search Tags:Java, Swing, MVC, Design Pattern, interface template
PDF Full Text Request
Related items