Keeping Swing seperate from program

I am working on a project where I have to create the ineterface. This has to be seperate from the actual workings of the system. I cant seem able to do it without integrating the interface and the workings of the system. The task is to produce a simple game which provides a quiz to its users. It should have a number of front ends:
1) Player's front-end - gives a selection of (perhaps random) questions where the
user selects one from five choices.
2) Scoring front-end - displayed after game - if mark is in top 10 then user is asked
to enter their name.
3) Manager's front-end - used to enter questions, reset top 10 table.
4) Non-graphical front-end - to ensure that GUI is designed as an add on.
I really cant do the interface seperatly. Could someone show me what to do.

In order to separate the UI from the data model there must be some kind of defined interface. Otherwise you don't know what events/methods you can use or that will be used to notify you of changes. For example, you need to have some predefined method to call on the back-end when the user selects an answer. The back-end is then responsible for checking the answer and calculating scores, etc.
Always remember that a UI is merely a visual representation (even a text based UI) of the underlying data model. If someone has given you a job to program the UI, tell them you need to know how to communicate with the data model and if they don't have it yet, tell them they need a data model specification before they can hope to program the data model itself. If they haven't defined a spec yet then they need to look at the software development cycle a bit better.
Tim

Similar Messages

  • Keeping Wireless Seperate from Wired

    I have an existing wired DSL network with some of the machines using static IPs. I would like to add wireless but have it completely seperate so anyone on the wireless cannot access the wired network. Should I use a AP or Router? I would like to use DHCP for the wireless connections and of course will have security on the wireless. I have read that changing the subnet is all I need to do but could really use some advice as I have also read about getting multiple routers. What is the best practice?

    To keep your networks separate, they will need to be kept on separate subnets, so you need a wireless router.  (An access point would have to be on the same subnet as your wired network.)   I assume your existing wired router is still using 192.168.1.1
    Modem  ---- wireless router ---- wired router
                        192.168.2.1             192.168.1.1
    Use an ethernet cable to connect modem to Internet port of wireless router.
    Use an ethernet cable to connect LAN port of wireless router, to Internet port of wired router.
    Before connecting the two routers, in the wireless router, set "Local IP address" to 192.168.2.1
    Before connecting the two routers, in the wired router, set "Internet connection type" to "Static", with IP address of 192.168.2.2, subnet mask of 255.255.255.0, and "Default Gateway" and "DNS address" to 192.168.2.1.  Note that in some cases, you may need to set the "DNS address" to your true Internet DNS address. 
    Users of the wireless router will not be able to access anything on the 192.168.1.1 subnet.
    Message Edited by toomanydonuts on 01-28-2008 01:48 PM

  • Hi I am just now downloading Creative Clouds :-) as an upgrade from an old Creative Suite 5.5. Before that I hade a Creative suite 3 etc. Is it necessary that I keep all these old programs etc on my computer to make Creative Clouds work or is it better th

    Hi I am just now downloading Creative Clouds :-) as an upgrade from an old Creative Suite 5.5. Before that I hade a Creative suite 3 etc. Is it necessary that I keep all these old programs etc on my computer to make Creative Clouds work or is it better that I uninstall them? Kind regards, AnnaReet

    It is not necessary to retain the older installations.  YOu might want to consider if you will have any need for them in terms of working with older files, but other than that you can probably uninstall them without missing them.

  • I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.' Can anyone help please

    I have tried to just install the new version of itunes from the apple website, it looks like it downloads but after 5 minutes at the end of the install it says 'old version of itunes cannot be uninstalled, please contact support.'?  
    Is there anyway I can remove the version of itunes from my computer? i dont mind if i lose the music/content I already have on my itunes. I need to do this as i have just received the iphone 4 and need to install the newest version of itunes.
    Many thanks

    I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.'
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • My daughter has an iPod touch using my apple ID, I just purchased an iPhone with the same ID. Is there a way to keep my stuff seperate from her ipod but still share the iTunes account?

    My daughter has an iPod touch using my apple ID, I just purchased an iPhone with the same ID. Is there a way to keep my stuff seperate from her ipod but still share the iTunes account? I was looking through the photo section on my iPhone and found pics my daughter has taken from her iPod. I do not want my pics, emails, etc to show up on her iPod. Is there a way to stop this from happening or do I have to create a different Apple ID for her to use instead?

    If you have iOS 8 on all devices then:
    If under 13 years create a new ID for her by:
    Family Sharing and Apple IDs for kids - Apple Support
    The use family sharing to share apps
    http://www.apple.com/ios/ios8/family-sharing/
    Family purchases and payments - Apple Support
    If underage and not i)S on all devices then you have to create an ID for here under your name and supervise it use:
    Create a NEW account using these instructions so yo do not have to use a credit card.
    Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
    http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/
    Use the new ID on her iPod but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    Settings>GameCenter
    and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.   
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases.

  • Download doesn't work; i keep getting "unable to find firefox.exe" even when I open from program files folder; working onwindows xp with service pack 3

    download doesn't work; i keep getting "unable to find firefox.exe" even when I open from program files folder; working onwindows xp with service pack 3

    As you can see below, when I right click, I have no such option.  In the User Account Settings, I'm operating as the "System Administrator".
    Any other suggestions?

  • How do I keep my Imessages from being viewed on other devices under my apple ID?

    How do I keep my Imessages from being viewed on other devices under my apple ID?

    No, you can authorize any number of email addresses on your Apple Id and then select one of those to use as an alternate Send and Recieve for Messages. It isn't necessary to use seperate AppleIDs. I use my phone number on my iPhone and an email address on the iPad.

  • IOS 6 keeps crashing non-native programs

    I recently upgraded my iPod touch to iOS 6 and non-native programs keep crashing.  Important programs that I need for work!! I took it to that Applestore and an employee told me that I just have to wait for the non-native program writers to send me updates. 
    Can I just switch back to the old OS?

    All we can say in this Apple forum is that downgrading the IOS is not support by Apple.
    Sometimes this works, at least for some apps.
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • Help needed with swings for socket Programming

    Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good look to my programs..using swings but im very new to swings...so can anyone help me with some examples involving swings with socket programming...any reference...any help would be appreciated...please help im running out of time..
    thanking u in advance
    anDy

    hi im Anand(AnDY),
    i hav lost my AnDY account..plz reply to this topic keeping me in mind :p

  • How do I keep the screen from dimming in Front Row DVD Player

    Nothing against the standard DVD Player program, but when I'm using the remote Front Row has more functionality. When I use it plugged in, there is no problem, but on battery power the screen auto-dims like normal and then brightens again and dims again...on and on. It proves to be very distracting.
    Is there any way anybody knows to keep the screen from dimming like that while im in front row DVD player?
    Newmac

    Go to System Preferences > Energy Saver and change the time for screen dim in your prefs for battery operation. You can always change the setting back to the existing setting later, if you like.

  • Audigy 2 ZS: Keeping line input from playing on speak

    I recently installed an Audigy 2 ZS in a Win2k machine. In the mixer, I've selected "Analog mix" for recording. So "What-U-Hear" should be off, right? And I have disabled "Monitor during recording." So, while recording, I don't hear what is coming in the line input. But if I turn recording off, suddenly what's coming into Line-In blasts out the speakers. Is there a way to permanently disable passing Line-Input to the speakers when I'm not recording or even running a recording program?
    Bob

    The mixer device list for the Audigy 2 ZS shows a separate Line-in for record and play. So it appears that the ability to keep Line-In from playing on speakers is there. However, unfortunately the Creative Mixer implements this as a record option and an option to "Do not monitor while recording." With this option checked, Line-In isn't passed through to the speakers but only during recording. At other times you'll hear what is coming into the Line-in. By comparison, the Audigy 2 LS has an option to "Do not monitor," which blocks Line-in pass-through under all conditions (unless an api enables it). The Line-In pass-through was a particular problem for me for a C++ program I've written. So I solved the problem by selecting "Do not monitor while recording," muting the global volume, and un-muting the global volume with a call to the mixer functions when I turn on recording from within my program. This prevents pass-through even when my program isn't running, which was important for my particular application. Unfortunately, this isn't a viable option for someone using an off-the-shelf recorder-player. Other mixers might implement this differently.
    BigZed wrote:
    Sorry to bump this but...
    I happen to have a very similar proble to Katman's
    W2k machine, recording from the line input, i got
    either no sound to record (if line input is not
    checked in the mixer - both windows' or creative's)
    or i got sound to record AND this sound also
    goes to the line out (when i check the line input
    in the mixer), which defies my purposes.
    Line in was always selected as input in the recording
    panel.
    I tried to uncheck the "record without monitoring"
    option but it does absolutely nothing to me.
    I have updated the drivers just a few weeks ago.
    Hints?

  • Keep iTunes Window from Maximizing

    I pay music while I'm working. My playlist includes a few videos and whenever one of them plays, the iTunes window maximizes to display the video, right over the window for the application in which I am working. I can find lots of discussions on how to keep videos on top. My problem is the opposite. How can I keep the videos from disrupting my work by just playing in the minimized window?

    I have been struggling to find the setting to impliment the same behavior.  I don't know why it is so difficult to implement.  The idea that a program "minimized" by the user - REMAIN - minimized until the user instructs otherwise is pretty atrocious behavior.  Shame on you Apple.

  • Problems After shifting swing application from jdk1.3 to 1.4

    hi,
    i have shifted my Swing application from jdk1.3 to 1.4, some component settings changed in j2se1.4. are listed below
    1). i have added JComboBox to JPanel using BoxLayout, in jdk1.3 it is normal where as in 1.4 comboBox height is increased to panel height.
    Sample code
    (in a Panel)
         setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    add(getYearComboBox());
         add(getMonthNameComboBox());
         add(getDayOfMonthComboBox());
    2). in jdk1.3 the icon which is set to JFrame is visible in the JOptioPane.showConfirmationDialog() also, but in 1.4 the icon is not visible in conformation dialog box.
    Sample Code
    in a JFrame's constructor
    public OptionPaneTest()
    ImageIcon icon = new ImageIcon("icon.gif");
    setIconImage(icon.getImage());     
    setSize(250,100);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
    setVisible(true);
    JOptionPane.showMessageDialog(this,"hai", "Hai",JOptionPane.WARNING_MESSAGE);
    3). the Labels added to the panel or frame are displaying in light blue color with jdk1.3 and the same label displaying in black with j2se1.3
    Sample Code
    in a JPanel
    setLayout(new BorderLayout(20, 20));
    add(new JLabel("Testing Label Color"), BorderLayout.CENTER);
    please send solution to any or all.
    thanks in advance,
    Pavan.DV

    Thanks for your sugession.
    You realized me by showing the fact that there are no many classes
    Keep suggesting like this.
    I don't even know how to see the API documentation Before you told me.
    Don't take any issue as simple thing and never give foolish suggessions like this.
    If you know the Answer then share it or else musukoni kurcho ra

  • I keep getting calls from a block caller id and it's some dude speaking arabian what do i do? How do i stop this?

    I keep getting calls from a block caller id and it's some dude speaking arabian what do i do? How do i stop this?

    Stop answering calls with blocked numbers. If it's someone who really wants to talk to you, they'll leave you a message and you can call them back.

  • How can I keep my child from UNBLOCKING contacts or numbers I have blocked? I know in restrictions when you disable account changes at least on ios 6,this greyed out the iMessage button so the kids couldn't deactivate their text feature.

    Here's the issue.  Kids got themselves into some trouble on iPods.  We set all restrictions any turned off iMessage etc, which I noticed they can't turn back on bc it's gray with the don't allow account changes set.  BUT, it still allows Wi-Fi to be turned on and off!  How can I disable them being able to turn that on wo asking me??  In ios 7, the blocking feature, fabulous, BUT, how can I keep the kids from UNBLOCKING numbers I have blocked?  What I am looking to do actually is allow my kids to be able to text family but block everyone else.  And ask me to turn on wi fi.  How and can this even be done?  Right now my d text is turned off completely.  And she knows the inside and out of her device so she can turn wi fi on herself.  On vacation she entered the wi fi code of our condo and so I did forget network, which didn't work and wi fi kept connecting anyway wo requiring password again!  HELP!  Thanks :)  Also, they have iPods now but am asking these questions based on them getting our 4s's with ios 7.

    TeresaBoo, I empathize with your dilemma and have a similar problem. I'm trying desperately to keep my teenage daughter away from a controlling and abusive boyfriend. Of course, she is in denial and thinks it's love. Sure, I can block text messages through our wireless provider, but iMessages run on an independent network. I can block a phone number from iMessaging on her phone, but she can unblock it just as easily. I wish there was some way for parents to create a password to protect settings. Don't let negative comments get you down. Honestly, if someone can't relate to your question or offer help, why are they even bothering to comment??

Maybe you are looking for

  • IMessage contact address problems

    I am a little perplexed about how to set up iMessage correctly.  I have iMessage activated.  My settings are that "I can be reached by iMessage" at my phone number and email.  I "Start new conversations from" my email. The first problem I have is whe

  • Error message in SBO_SP_TransactionNotification not appear

    Hi, I have validation for @object_type = '30' in SBO_SP_TransactionNotification. When user runs journal entry transaction, the error message appears. But when user want to posting journal through journal voucher, it is true the transaction not posted

  • Itunes purchase not downloading from Itune Store

    Hi, I just album on itune store it has accepted payment but the songs are not downloading...it says "accessing ITune store" but nothing is happening. I went to the Store Menu and "Checked for available downloads and entered my password and nothing...

  • HT201317 have apple id but no icloud acct. cannot find link to open icloud acct

    Trying to set up icloud acct so I can view photos. Can not find link to do this

  • OCI Direct Path Using Shared Connections?

    Hello there. A co-worker and I are working on developing a system using direct path. I designed it to follow the very basic direct path approach, and he suggested I try and share the database connection. I then wrote a class for sharing the connectio