How to design my application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #1

    How to design my application

    This more like a general question. I'll be using Swing to display a JTable loaded with data from a file. User changes a column and the changed rows are saved to an XML file (upon clicking Save)

    A colleague is creating the library that reads the import file (raw, hex mpeg sections).

    I'll just need to read it, keep track of changed rows, and upon clicking a button, those rows are saved to an XML file.

    My Question:

    How should I setup my classes?

    Do I need a gui JFrame Class or a whole bunch of classes to display the GUI?

    If you were to design this what would your classes be?


    [MAIN]
    [MAIN_WINDOW]
    [DATA_TABLE]
    [SECTION_READER]

    I'm so confused. I can't see the big picture because I don't know the details or the architecture thus I don't know where to start.


    Thanks,

    Dan
  • Ian Smith
    New Member
    • Nov 2010
    • 6

    #2
    Mvc

    Use the model, view, controller architecture (Wiki it if not familiar) as follows:

    Extend your colleague's class and add the ability to write to the file in the child class. (Model)

    Then create a GUI class. (View)

    Have a class that controls the GUI class and file writer class. (Controller)

    This is just a starting point, the architecture may have to be changed when more technical details are revealed in the dev process.

    Comment

    Working...