Preview

Understanding MVC and Swing Models

Powerful Essays
Open Document
Open Document
2893 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Understanding MVC and Swing Models
Swing Data Binding
Karsten Lentzsch www.JGoodies.com

Presentation Goals
Understand MVC and Swing models. Learn how to bind domain objects to Swing UI components.

:: JGOODIES :: Java User Interface Design

Speaker Qualifications
      Karsten builds elegant Swing apps works with Objects since 1990 helps others with UI and architectures provides libraries that complement Swing provides examples for Swing architectures writes about Java desktop issues

:: JGOODIES :: Java User Interface Design

Agenda
      Introduction MVC and Swing How to bind single values? How to bind lists A 3-tier Swing architecture How binding works in projects

:: JGOODIES :: Java User Interface Design

Swing Building Blocks
Application 1 Panels Utils Application 2 Help Printing Applications Helper Code/Libs Application Frame Basic Libraries Foundation

Components, Application Management, etc. Appearance Layout Binding Validation

JRE / Swing

:: JGOODIES :: Java User Interface Design

Swing Building Blocks
Application 1 Panels Utils Application 2 Help Printing Applications Helper Code/Libs Application Frame Basic Libraries Foundation

Components, Application Management, etc. Appearance Layout Binding Validation

JRE / Swing

:: JGOODIES :: Java User Interface Design

Questions
       Where do I find MVC in Swing? How to structure a Swing application? What is part of the model? How do I choose models? How to build a view? What does a controller do? Do I need controllers?
:: JGOODIES :: Java User Interface Design

I - Basics
MVC and Swing

:: JGOODIES :: Java User Interface Design

Before MVC
Painting Code State Operations (Control Behavior)
State

How to live without MVC?

:: JGOODIES :: Java User Interface Design

Before MVC: 2 Layers
Painting Code State Operations
State

Client

Server
:: JGOODIES :: Java User Interface Design

Separate Domain from Views
 Domain logic contains no GUI code 

You May Also Find These Documents Helpful

  • Better Essays

    The application should have at least one class, in addition to the application’s controlling class.…

    • 761 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Application code and comments should be written descriptively. The names of classes, methods and variables should be self-descriptive. Methods and classes will be commented to detail their…

    • 612 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 1 Assignment 1

    • 4614 Words
    • 19 Pages

    A ______ is rectangular area that can contain a document, program, or message option1 A __________ contains icon buttons that access frequently used commands A __________ provides access to features of the program A built-in tool that performs calculations automatically is a(an) A collection of related data that has been entered into a computer is called a A collection of separate software applications that are sold as a group, like Microsoft Office, is called a(n) A database sort directs the software to find and display one or more records option2 option1 option3 option3 option4 option2…

    • 4614 Words
    • 19 Pages
    Good Essays
  • Good Essays

    For Graphical User Interface, Net Beans or Eclipse is used to have a greater degree of interfaces between end user and the tool.…

    • 1533 Words
    • 7 Pages
    Good Essays
  • Good Essays

    A1: Applet is a type of Java program that runs on web browser. It can be a fully functional Java application because it has full Java API…

    • 559 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    necessitate the use of different file types1, i.e. swf, html, sis, app, exe, xaml, xml, ppt…

    • 9150 Words
    • 60 Pages
    Powerful Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The electoral college has created a political divide in America. In this day and age the last thing America needs is a division among it’s people. With pressing issues like terrorism, immigration and equality, America’s people need to be united but the issue of the electoral college is one of the things preventing that. Today I will be focusing on the electoral college. One of the many problems with the electoral college is the lack of laws supporting the popular candidate which means the college can choose the less popular candidate and by choosing the less popular candidate America is left with angry and violent citizens. Another problem with the electoral college is that the candidates don’t campaign in every state: they only campaign…

    • 964 Words
    • 4 Pages
    Good Essays
  • Good Essays

    In the United States having fake or papers that are no longer valid is just as good as having no papers at all. Without the proper documentation, you do not have access to things such as obtaining driver licenses, access to public health systems, proper housing, education, banks, and employment. There are some immigrants who forge identity documentation to obtain access to most of these basic benefits. Unfortunately, this is extremely risky and many do not take this chance in fear of being deported or being sent to immigration detention centers, where there you are stripped of your human rights and treated inhumanely. Life as an undocumented immigrant is very hard. They cannot legally work in the US, therefore not being able to provide for…

    • 731 Words
    • 3 Pages
    Good Essays
  • Good Essays

    All these programs relate to each other in different ways. You can upload Adobe Illustrator…

    • 448 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson Education…

    • 356 Words
    • 2 Pages
    Good Essays
  • Good Essays

    You need to ask yourself what exactly you need in your software. For instance a…

    • 518 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Pvsyst Tutorial

    • 2229 Words
    • 9 Pages

    system. This set of tutorials works through how to use the software in both preliminary and project…

    • 2229 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    s.executeUpdate("UPDATE studentdetails SET stname= '"+jTextField2.getText()+"' , stage= '"+jTextField3.getText()+"', sttel= '"+jTextField4.getText()+"', stresult= '"+jTextField4.getText()+"' WHERE stid = '"+jTextField1.getText()+"' ");…

    • 2413 Words
    • 17 Pages
    Satisfactory Essays
  • Satisfactory Essays

    online auction

    • 347 Words
    • 2 Pages

    Swing allows an application to specialize the look and feel of widgets by modifying the default (via runtime parameters), deriving from an existing one, by creating one from scratch.…

    • 347 Words
    • 2 Pages
    Satisfactory Essays

Related Topics