473,419 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

How to design my application

dlite922
1,584 Expert 1GB
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
Oct 25 '10 #1
1 1460
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.
Nov 3 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Frogman | last post by:
Hi, How do you embed an existing application as a module in a CMS (i.e. phpNuke, Xoops.) Let's say I want to modularize phpMyAdmin in phpNuke, is there a simple way to do this? I can design...
3
by: Jonathan Woods | last post by:
I have a bridge windows service application that provide service for two applications running on Oracle and SQL server 2000 respectively. Oracle application has trip info and SQL application has...
11
by: chopsnsauce | last post by:
Here's the example: Dim frm As New FORM1 Try frm.show Catch ex As Exception msgbox ex.message
20
by: Brad Pears | last post by:
I am completely new to vb .net. I am using visual Studio 2005 to redo an Access 2000 application into a .net OO application using SQL Server 2000 - so a complete rewrite and re-thinking of how...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
0
by: =?Utf-8?B?cmplcnNraW5lQG5ld3Nncm91cHMubm9zcGFt?= | last post by:
Hi, I would like to build a membership website for our Jr. Football league. I am very familiar with the MS Office Programs and have used Frontpage in the past to design websites. I have...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
4
by: Z.K. | last post by:
I started a forms application and I put on the form three buttons. In the functions for the radio buttons I put in a single messagebox like: MessageBox("Hello 1") MessageBox("Hello 2") ...
6
by: goraya | last post by:
This is design level discussion about web applications. How I design application that support 1 million concurrent requests??
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.