What is the best MVC approach for designing Swing application

Hi...
I am designing an client/server application. In this I am using java swing for the front-end development. We decided on using MVC approach for the front-end design. I found that there are more than one approachs for designing in MVC.
Which is the best way to model. To create your model taking View into consideration or Creating the Model taking the tables into consideration.
Can anybody give help me out in this this is urgent. Thanks
sai

I'm not sure what you are asking, so I'll just ramble a bit and hope it helps.
Create your model taking the view and the data into consideration. :-)
Design a class to hold instances of the rows in your database that correspond (more or less) to the structure of the data. Add any needed methods to that data object to support the data that you might need for the view.
For example, suppose your database stores a name in two columns (firstname and lastname). You pull that data from the database into a collection of Person objects into your model. Your Person class has two fields (and set/get methods) to hold that data. Now, in your view, you want to display the name as one string, so add a method to the Person object to get the full name (just by concatenating the two data elements).
You have to take everything into consideration. How you are going to view the data as well as how it might be structured.

Similar Messages

  • What is the best Mac app for designing custom brochures and business  cards?

    What is the best Mac app for designing custom brochures and business  cards? And Why? I like to use my creativity. I have Print Shop2 right now, less formatted templates and more options would be better. Any suggestions. Tell me why you like it.  My background is MS windows XP  Publisher 2003. Thank you for your help!
    Nightowl7

    What is the best Mac app for designing custom brochures and business  cards? And Why? I like to use my creativity. I have Print Shop2 right now, less formatted templates and more options would be better. Any suggestions. Tell me why you like it.  My background is MS windows XP  Publisher 2003. Thank you for your help!
    Nightowl7

  • What is the best Voice recognison for calling phone application

    What is the best Voice recognison for calling phone application in the market now, free or not ????
    Do you have any sugesstion

    In my Opinion.. Vlingo (Free) is the best voice rec phone dialer... It is the swiss army knofe of voice recognition for the iPhone.

  • What is the best hardware setup for Design Premium?

    I'm a high school teacher and  teach Photoshop, Illustrator, InDesign, Dreamweaver, Flash, and I use  Bridge for yearbook.   My school district is buying me new computers but  wants me to come up with all the specs that I want.  I'm supposed to  give them my top choices for everything.  However, I'm a  user- not a tech person.  Can someone please give me a run down for  what I should ask for?  I need to know everything from processor, to  RAM, graphics card, hard drive, tablets, monitors, etc.  If you work  with these software programs all the time, what would your ultimate set  up be?
    I'm currently using CS4 but would like to upgrade.   My school district does not use Macs- only PCs. I was not told a price  range, so just give me the best of everything.
    Please help ASAP.
    Thank you!

    " I'm currently using CS4 but would like to upgrade"
    IF THE UPGRATE IS TO CS5 64 BITS. Better to work with quad core with H.T. like i7 920,930,950. If you like somthing faster we talk about i7 970,980x, 990.
    RAM: If you will work with heavy files, start with 12G RAM  3x4. So you have the possibility to upgrate after to 24 if you need it.
    "graphics card"
    Nvidia card: GTX460, GTX470. NO NEED TO GO TO SERIES GTX5..
    "hard drive"  many choises. Depent of what performance you want, This can incrise the price a loot.
    "monitors" I will say samsung 23, the are sheep and if you like you can have 2 monitor on each PC.
    How many PC'S YOU NEED??
    B.R.
    Cristobal

  • What is the best way to distribute your swing application:

    I have developed a application that connects to data base and it containes the functionality to manage the invoices and receipts system, but i am scare to distribute it by building it to jar using the netbeans build option , it runs fine but when i extract the jar file back i m scare that any one can easily decompile it using JAD and get the database credentials , please tell me the best way to distribute the application so that reverse engineering the application will not be possible please tell me that :(

    Decompiling is unnecessary. All somebody would have to do would be to sniff the transmissions between your application and your database; the credentials are sent unencrypted.
    So the problem is not that somebody could find out the database credentials, the problem is that your database exposes itself to the internet. And if anybody does find the credentials through any method at all, then you've got a problem.
    And by the way if you distribute your application with the credentials hard-coded, then that makes it difficult for you to change the password if it does get compromised, because then nobody can use your application any more. This is a bad thing because one of the first things you should do when your system is compromised is to change the access password.
    So really the best way to distribute this application would be to write it so that it connects to an application which runs on your server. This server application would communicate with the database, which would make it unnecessary for the database to be visible from the internet. Your Swing application would communicate with the server application via some kind of web service protocol.

  • What is the best reporting tool for my web application?

    Hi guys,
    I'm using ADF 11g with EJB 3.0 im my web application. My application is deployed on weblogic server 11g, I want to use a reporting tool in my application that is dynamic and flexible.
    Note: I've tried to use JasperReports but it didn't fulfill my needs.
    Thanks in advance.
    AccadSoft

    There are plenty of them. Oracle has one called BI Publisher, and there are others out there as well, such as BIRT, Business Objects, etc, etc, etc.
    "it didn't fulfil my needs" doesn't give anyone any possibility to comment, because you didn't tell us why, or what was lacking.
    John

  • What is the best free app for graphic design for mac

    what is the best free app for graphic design for mac

    Good place to look for software:
    http://www.macupdate.com/
    And for free alternatives to some popular software packages:
    http://alternativeto.net/
    (If you see an ad there for something called MacKeeper, ignore it and on no account install it - it is malware.)
    And there is of course also the App Store!

  • What is the Best Ad Network for a Flex Website?

    I'd like to put ads on my website? What is the best ad network for Flex? How did you install it?
    Has anyone used OpenX with Flex?
    Thank you.
    -Laxmidi

    Thanks for the answer. Yeah I bet you figured out what I want the answer to be, but is it ? That's why I am asking here. I can see my website on my HTC Desire HD and it's working pretty well. If I reskin the parts that need a bigger hit area or the scrollers to work with touch so I don't have to scroll the actual scrollbars with my finger, remove some complex animations - everything will work just fine... The problem is that I am not sure if that is the right way to do it or if it is possible at all.
    I do get your point about not designed for mobile stuff, but while with html 5 you get the job done for web and mobile with little differences at the same time, in flash you need double time cause you'll have to build 2 projects. And since the framework is one for both web and mobile.. why not...
    I want to see the pros and cons of the both approaches I suggested. In a complex modular architecture I could easily swap one web module with a mobile module for example or change skins or components if I need more lightweight ones, but do I have to copy all that logic in to a MobileApplication, can't I do it with Application and use the MobileComponents (which are simplier and less functional) if the project actually needs them...
    I do hope you get why I am asking these questions, and I can't believe I haven't found a guide or something like that "why this and not that" when it comes to mixing web with mobile development and flex... If you have, please share the link, I would be happy to read. Or someone with the experience in what I am talking about shares some knowledge, that would be great!
    Thanks.

  • What is the best video converter for DVD to iMovie? Either free or to purchase.

    What is the best video converter for DVD to iMovie? Either free or to purchase.  And one that is 'fool-proof' and very easy to use.  Many thanks, anyone who can advise.

    You want to 'reverse engineer' the compressed mpeg2 DVD file back to something iMovie can use?
    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    And from the TOU of these forums:
    Keep within the Law
    No material may be submitted that is intended to promote or commit an illegal act.
    Do not submit software or descriptions of processes that break or otherwise ‘work around’ digital rights management software or hardware. This includes conversations about ‘ripping’ DVDs or working around FairPlay software used on the iTunes Store.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it.
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • What is the best virus protection for a Mac?

    What is the best virus protection for a Mac?

    1. This comment applies to malicious software ("malware") that's installed unwittingly by the victim of a network attack. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the victim's computer. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user, but internally Apple calls it "XProtect." The malware recognition database is automatically checked for updates once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't actually been tested by Apple (unless it comes from the Mac App Store), but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. For most practical purposes, applications recognized by Gatekeeper as signed can be considered safe.
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could find some other way to evade Apple's controls.         
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is presumably effective against known attacks, but maybe not against unknown attacks. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. Beyond XProtect, Gatekeeper, and MRT, there’s no evidence of any benefit from other automated protection against malware. The first and best line of defense is always your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the malware attacker. If you're smarter than he thinks you are, you'll win.
    That means, in practice, that you never use software that comes from an untrustworthy source. How do you know whether a source is trustworthy?
    Any website that prompts you to install a “codec,” “plug-in,” "player," "extractor," or “certificate” that comes from that same site, or an unknown one, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    Pirated copies or "cracks" of commercial software, no matter where they come from, are unsafe.
    Software of any kind downloaded from a BitTorrent or from a Usenet binary newsgroup is unsafe.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. If it comes from any other source, it's unsafe.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style "virus" affecting OS X. Merely loading a page with malicious Java content could be harmful. Fortunately, Java on the Web is mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers. In Safari, this is done by unchecking the box marked Enable Java in the Security tab of the preferences dialog.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a specific task, enable Java only when needed for the task and disable it immediately when done. Close all other browser windows and tabs, and don't visit any other sites while Java is active. Never enable Java on a public web page that carries third-party advertising. Use it, when necessary, only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Follow the above guidelines, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself from malware.
    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. If you need to be able to detect Windows malware in your files, use the free software ClamXav — nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    8. ClamXav doesn't have these drawbacks. That doesn't mean it's entirely safe. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    ClamXav is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    A Windows malware attachment in email is usually easy to recognize. The file name will often be targeted at people who aren't very bright; for example:
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥!!!!!!!H0TBABEZ4U!!!!!!!.AVI♥♥♥♥♥♥♥♥♥♥♥♥♥♥.exe
    ClamXav may be able to tell you which particular virus or trojan it is, but do you care? In practice, there's seldom a reason to use ClamXav unless a network administrator requires you to run an anti-virus application.
    9. The greatest harm done by security software, in my opinion, is in its effect on human behavior. It does little or nothing to protect people from emerging threats, but they get a false sense of security from it, and then they may behave in ways that expose them to higher risk. Nothing can lessen the need for safe computing practices.
    10. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.

  • What is the best set up for video editing?

    What is the best computer? The best software? The best external storage? The best ram? 3D editing? Everything!!!!!!
    Running full HD and 720p at 60 fps videos. Clips ranging from a few seconds to 10-30 minutes.
    Cost isn't an issue.
    What is the best set up, not the most excessive. If it doesn't need to be there or it isn't greatly needed I would like to know. This is looking at the production aspects, not the camera and such. What is the best plug in for slow motion? Pros and Cons of the set up?
    I would greatly appriciate everyones input in this. Thank you so much.

    That is a hard question to answer.. Nothing is best for everyone... However if i am to generalize it I would put it this way.. If you want to cut everything from a short promos to hollywood pictures..
    A high end windows pc (only cause mac pro hasn't been updated in ages)
    Avid Media Composer with Nitrus DX
    Two monitors
    Broadcast monitor
    HD Deck
    pimping 5.1 speakers
    A good mixer
    You are looking at over 70,000 or 80,000, could even approach even more.. HD decks run atleast 15k.
    If price is not an issue then there you go....
    However this is not realistic for most people nor best solution by no means... I run a macbook pro with Avid (as primary) Final Cut 7, Final Cut X (for practice, didn't have to use it for a job yet), and Premiere (just in case)
    I am a final cut child who grew up on it and love it however everything I am doing in last few years is on AVID...
    Have a second monitor..
    I am very portable and rest of the gear I usually get where ever I work at.. I am looking into getting a good broadcast monitor connected with AJA thunderbolt..
    Like I said this is very open question, there is no (BEST) it all depends what you will be doing.. If you get AVID (which can do everything, however is cluncky as **** and counter intuitive) but you are only cutting wedding videos and short format stuff, it would be an overkill galore.. Just get FCP X in that case... Simple,easy, one app...
    Be more specific and you will get clearer answers..

  • What are the best AirPlay speakers for Apple devices?

    What are the best AirPlay speakers for Apple devices? I would like to get some good speakers to be used with my iPod, iPhone and iPad. Ideally, they should be able to play using AirPlay and be quite powerful, but with a good design if possible.
    I am particularly interested in the Fidelio range of speakers by Philips.
    Thank you for your help in advance.

    Best is going to be a matter of opinion.  What environment are the speakers going to be used in? How large is the room? What type of music are you going to play? What features/functions would you like in the speakers? What price range are you looking for?  All of these are going to effect which speakers will best fit your needs.

  • What's the best protective shield for my 3GS?

    Hi Everyone,
    Sorry to bother, but I just got a new iPhone 3GS and I'm wondering what's the best protector to put on the phone. I understand the 3GS has a new type of "coating" on the screen so I don't want to do any damage to it. I also heard the 3GS has these proximity sensors so I don't want to get a case that will interfere with that. Anyhow, I wanted to get an Invisible Shield, a full body one, but wanted to make sure I don't do damage to the phone. I've read the forums and it seems there is no definitive answer on whether or not the Invisible Shield is the best one. Any iPhone experts know what's the best protective shield for the 3GS? And will the Invisible Shield do any damage to the screen or coating on the new 3GS? I talked to a person at Apple and they didn't think it would do any damage, but to be honest, she didn't sound as knowledgeable as I would like. I'm sorry for being paranoid. Can you guys chime in?
    Thanks!

    The reason for no definite answer is that it matters what YOU are looking for in a case or protective screen cover...
    To answer your shield question...the shield product itself will not damage the phone and that coating is not to prevent scratches...it's to help prevent fingerprints...since you plan to put a screen cover on then that coating doesn't really matter...HOWEVER, the way that the shield can harm the phone is IF it's not properly installed by YOU...since the design of that product calls for a liquid solution agent to be used to adhere the cover to the case of the phone, others have gone overboard with that liquid and then ended up with water damaged phones due to the faulty install...If you install properly then it's not an issue
    Personally I used a full shield cover on a previous phone and hated it...so again it's all up to your taste...
    What I currently have now is the simple Apple sold Anti-Glare screen cover you can buy two to a pack for 15.00 at Apple store...I have used since first Gen iPhone and loved it...
    I have a Case-Mate leather hard plastic case but am not thrilled with it since the edges are raised around the edges of the screen and sometimes prevent me from hitting a button right up against the screen edge...so I don't use it much...
    Other covers made by Case-Mate like the Barely There cover don't have that problem...so you really need to shop around and see what case you like and what you dislike...
    Cases specifically sold to be compatible with 3GS will not interfere with either the proximity or any other sensor on the phone face...

  • What is the best bluetooth headset for iPhone 5?

    What is the best Bluetooth headset for iPhone 5 for talking no music?

    I've tried all the majors:  Bose (1 model twice), Motorola (2 models), Jawbone (5 models) in almost every model.
    Bose is good but such an odd nub just sitting there on your ear - bad athestics.  Device is fine but not right for me.
    Motorola seem to have troublie with iPhone specifically.   They don't stay paired and noise-cancelling has been bad.  I tried 3 pairs of the Elite Silver with no luck.  Great concept to have a case that charges the device but bad device.  Same issue with the Oasis. 
    Jawbones are good and I've had 5 of them.   They seem to degrade in voice cancelling quality over time based on feedback of people I talk to but they are solid.   I'm sure I just beat them up but they do seem to go bad. 
    My best experience have been BLUEANT, both the Q2 (bought 2) and teh Q3 (own 1).   Q2 are solid but they have this issue with a metal screen that inevitable breaks off, not affecting call quality but a pain.   Q3 have fixed that but they are just a bit bulkier.   Good features (voice answer & address book) and solid.  These are just awesome and good instant on that simply isn't true of all of the devices.  Only downside has been no battery meter on the Q2 for the iphone but a solid workhorse. 
    I just got a new Motorola Whisper and so far I'm impressed.   First motorola that has solid noise reduction and doesn't seem to have the random unpairing issue with the iphone.   It's early yet but great design and comes with a case. 
    I hope this helps.

  • What is the best security lock for a 17" mac book pro?

    Hello Folks! Happy holidays!
    Quick question:
    What is the best security lock for a 17" mac book pro?
    Any models or brands ?
    Cheers!

    Most computers refer to the locking attachment in some relationship to the name "Kensington", and that might be a useful clue.
    Following that, be sure to avoid counterfeit products. A well-known computer vendor (not Apple), was approached by a large purchaser (several tens of thousands of laptops) who insisted on using a counterfeit locking product that had a larger than normal locking tab. The vendor modified the tooling to accept the counterfeit product and, wouldn't you know it, the genuine product would no longer secure the computer properly.

Maybe you are looking for

  • Small bugs in software on iPhone 3G running iOS 4.1

    Hi, since I upgraded my iPhone 3G to iOS 4.1 a few days ago, I have noticed a couple of small problems/bugs, and was wondering if anyone else has had similar experiences. One problem is, before iOS 4.1, when I was running the 3.1.2 software, my wifi

  • After installing a new hard drive can I install snow leopard directly from snow leopard disc

    After installing a new hard drive can I install snow leopard directly from snow leopard disc. Or do I have to install previous versions first. iMac 7.1 (2007) 2.8ghz

  • 550 5.7.1 Command not allowed

    We are having issues with several things at the moment in Exchange 2013.   One particular outside email address is returning the following code when replying to an email from within the organization: <<< 550 5.7.1 Command not allowed 554 5.0.0 Servic

  • Re:select statement

    Hi when I writing the following select statement SELECT SUM( menge )            INTO sumgood            FROM aufm            WHERE ( bwart EQ '101' or  bwart EQ 'X01' )              AND matnr EQ it_afpo-matnr              AND aufnr EQ t_prodbom-aufnr

  • IPad IOS 4.2 Update Issues (Help)

    My 2010 Macbook pro's hard drive died on me last week. I have a new HD on the way and plan to restore via Time backups. No biggie. I have a Windows XP laptop that I use for work. In order to update my iPad to the new IOS 4.2, (while I wait for my Mac