Getting one window to progress to another using swing

Ive got to design a simple quizgame interface using Swing. Its got to have a player's front-end - gives a selection of questions where the user selects one of five answers, a scoring front-end - displayed after game that allows user to enter their name and a manager's front-end - used to enter questions. The thing is I only have to design the interface. I want to have a front window that leads to the managers front end, scoreboard, and game seperatley. I also want the system to report back when the players got the question wrong or right and then take them to a scoreboard. I dont know how to keep this all seperate from the normal code in the program being written by someone else. I also dont know how to make one window lead to another etc. Please can someone help. does anyone have some code I coulkd adapt for this purpose Im really stuck!!!

How are you using sounds in your movie? Exported to frame 1
from the library (linkage)?
see this:
http://www.kennybellew.com/tutorial/
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com
dcrawford wrote:
> I've searched on this topic with several keywords to no
avail.
>
> I have a sound playing (1.wav). I would like that sound
to stop playing and
> another (2.wav) to start when a button is pressed. How
do I do this?
>
> So far I can either I can have both sounds playing, or
neither (stopallsounds)
> when it's clicked; but I would like to stop 1.wav and
start 2.wav and can't
> figure it out. Help!
>

Similar Messages

  • How can i copy files from one external hard disk to another using macbook pro with retina display

    How can i copy files from one external hard drive to another using macbook pro with retina display?

    That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
    Clinton

  • Getting one java program to compile another

    Was wondering if anyone knew if it is possible ot get one java program to compile another .java file and capture any errors.

    public static void RunCommand( String theCommand ) throws Exception
    Runtime runtime = Runtime.getRuntime();
    System.out.println( "Running Command " + theCommand ) ;
    Process process = runtime.exec(theCommand);
    String s = null ;
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(process.getInputStream()));
    BufferedReader stdError = new BufferedReader(new InputStreamReader(process.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null) {
         System.out.println(s);
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null) {
         System.out.println(s);

  • How do I make one window progress to another in swing

    Ive got to design a simple quizgame interface using Swing. Its got to have a player's front-end - gives a selection of questions where the user selects one of five answers, a scoring front-end - displayed after game that allows user to enter their name and a manager's front-end - used to enter questions. The thing is I only have to design the interface. I want to have a front window that leads to the managers front end, scoreboard, and game seperatley. I also want the system to report back when the players got the question wrong or right and then take them to a scoreboard. I dont know how to keep this all seperate from the normal code in the program being written by someone else. I also dont know how to make one window lead to another etc. Please can someone help. does anyone have some code I coulkd adapt for this purpose Im really stuck!!!

    Have a look at CardLayout. Rather than adding removing components, you can keep your three screens separate. Basically, you have three JPanels only one of which will be displayed at any one time. If one has textfields and you switch to another and then back, the text in the textfields will still be there.
    Here's some snippets from an application of mine:
    // set a 'container' panel to cardLayout. This will 'hold' the panels to be displayed at any one time
    private CardLayout cardDisplay;
    deck = new JPanel();
    cardDisplay = new CardLayout();
    deck.setLayout(cardDisplay);
    // add your various screens to the 'container' panel
    deck.add(logonPanel, "LogonPanel");
    deck.add(newUserPanel, "NewUserPanel");
    deck.add(bookingPanel, "BookingPanel");
    deck.add(printPanel, "PrintPanel");
    // add the 'container' panel to the contentPane
    c.add(deck, BorderLayout.CENTER);
    // switch the display, for example when a button is pressed, by using
    cardDisplay.show(deck, "NewUserPanel");
    cardDisplay.show(deck, "EnquiryPanel");

  • Moving itunes account from one windows user account to another....

    Hello! I really hope some one here can help!
    I use one of two user accounts on my comp, my boyfriend is the "owner" and I have my own. For separate itunes accounts .... Something is messed up with my profile on this user account and an IT friend told me he thinks that I should just delete my whole profile from the OWNER one and start over, saving anything i need beforehand.
    I was about to do that until I realised that my Itunes account would also be gone.
    Is there any way that I can transfer my itunes account to another user account on my computer without losing everything and having to start over???
    Pllllease & thank you!!!

    Well, if all of the music is in My Music\iTunes, then just copy that folder.
    If it isn't:
    If it's in a shared location, such as the root of the drive, and both account are accessing it, then ignore the music, and transfer just the 'iTunes' folder within My Music.
    If it's in an account specific location (like on your desktop), first consolidate it to your My Music, then transfer that folder.
    <hr>
    Consolidating the Music Library

  • Locking out one window when bringing up another.

    I have an application that has a GUI interface and that application calls another class that also brings up a window where the user enters some parameters. When the second window is displayed I would like to lock the user out of the 1st window so that can not use it untill they have finished with the second window. How do I do this.

    Yes you can!
    A Dialog is a Container and a Choice is a Component so you can therefore add a Choice to a Dialog.
    You have to
    Construct the Dialog
    Set the layout manager on the Dialog
    Construct the Choice
    add the Choice to the Dialog
    Make the Dialog visible, using setVisible(true)
    If you are using Swing, use a JDialog but don't use Choice as it is an AWT Class.
    Hope this helps

  • When I click on a link in another application, Firefox opens up two windows, one with my home page and one with my link. How do I turn this off so that I only get one window

    Mac OS10.6.4

    That is this bug:<br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    (please do not comment in bug reports)

  • IPod Shuffle works on one Windows computer, but not another

    My shuffle shows a full list of songs from my music library in the contents window. However, when I restore it, it still shows the same list in the contents window. When I try to play the shuffle, I get flashing green and amber lights.
    I can restore the shuffle and add songs to it on another computer and it plays properly, but then when I go back to the original computer, it still shows the full list in contents, not just the couple of songs that should be there.
    I can't seem to be able to restore it from my original computer either. I run the restore, but the same list shows in contents. I have also tried selecting all songs and deleting them and then restoring, but no luck.
    Is there some sort of conflict going on? The original computer is a network computer. Does that have anything to do with it? Both computers have the same version of iPod and iTunes installed.
    Dell Precision 360   Windows XP Pro  

    Johnston,
    Try creating a numerical indicator (or cluster indicator, etc.) on the front panel of your program of the data being fed to the graph. This will allow you to see the numerical values being fed to the graph itself while the program is running. Let us know what you find.
    Best Regards,
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • Want to get one router to talk to another...Help!

    I have a netgear wireless router and a linksys router (WRK54G). What I want to do (and have been told that I could) is to get the linksys router that is on one side my house to pick up the netgear signal that is on the other end of of my house...does anyone know if and how I can do this?

    This would let you pick up the wireless signal and feed it to a ethernet device like the ethernet port on a computer. I think it would also be possible to hook it to one of the ports on your linksys and use your linksys to set up a second wireless network with a different SSID and on a different channel. You would need to turn off DHCP on the linksys to allow your first router to assign the IPs.
    I think that may be solution to your problem, but don't hold me to it. I usually find out that things don't always work out perfectly when you are setting up a complicated system like that. But at that price, it might be worth a try. If nothing else you could set up a wired network from the Hawking.
    AKBear

  • Getting one sound to stop and another to start on button press?

    I've searched on this topic with several keywords to no
    avail.
    I have a sound playing (1.wav). I would like that sound to
    stop playing and another (2.wav) to start when a button is pressed.
    How do I do this?
    So far I can either I can have both sounds playing, or
    neither (stopallsounds) when it's clicked; but I would like to stop
    1.wav and start 2.wav and can't figure it out. Help!

    How are you using sounds in your movie? Exported to frame 1
    from the library (linkage)?
    see this:
    http://www.kennybellew.com/tutorial/
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    dcrawford wrote:
    > I've searched on this topic with several keywords to no
    avail.
    >
    > I have a sound playing (1.wav). I would like that sound
    to stop playing and
    > another (2.wav) to start when a button is pressed. How
    do I do this?
    >
    > So far I can either I can have both sounds playing, or
    neither (stopallsounds)
    > when it's clicked; but I would like to stop 1.wav and
    start 2.wav and can't
    > figure it out. Help!
    >

  • HOW DO i GET ONE PC TO IMPORT FROM ANOTHER HOME PC UNDER HOME SHARING  ? V11.0.3

    How do I open my iphone5 for sharing and then get my laptop to import my itune library?  thx

    I see that suggestion here: https://pin4ever.com/help.jsp#tech
    But I actually suggest skipping #1 for the time being and starting with #2, checking for an updated version of the toolbar. Here's how:
    Open the Add-ons page using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, above the list on the right side, click the "gear" button and then "Check for Updates".

  • I am trying to form groups when I drag one window on top of another they scoot out of the way instead of forming a window..help

    Can not create tab groups

    This is what the site states “To make a new group, simply drag one tab out of the group and then drag a second one on top of it. A box will be drawn around them. “ but when I try to drag one on top of the other it just scoots aside and does not form a group

  • HT4796 how do i transfer all my content from one windows 7 laptop to another?

    i think ive transferred all the content correctly, but the music is asking to locate the file when i click on it.  how do i finish the migration so the titles are seeing the content?

    Are you trying to transfer to a Mac or a Windows computer? Migration Assistant will usually transfer your Windows user account. Look in System Preferences/Users & Groups to see if that happened. If so, the files are probably in there. Login as the Windows User and see if you can find them.
    If you can, drag the files/copy to the Mac Admin users Public box located at the Hard Drive Level/Users or to the Shared folder in the same location. You can then log in as the Mac user and put them in the correct place in your home folder.

  • It is no longer possible to use ALT + N and ALT + P from the "get info" window.

    On a PC, previously, when in the "get info" windows, it was possible to use ALT + N and ALT + P to switch to the song information for the next and previous song.  Since the update to the newest iTunes, it's no longer possible.  Has anybody found a keyboard shortcut that works?  The "keyboard shortcut" thing in iTunes says you can still use ALT + N, but it doesn't seem to be working for me.  Is it working for anybody else?

    You're welcome.
    tt2

  • FWSM Stuck - Configuration update in progress by another process....

    Hi,
    I am not able to go into configuration mode of FWSM. Upon 'config t', I get 'Configuration update in progress by another process....'
    I read thru following article.
    http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/mod_icn/fwsm/fwsm_3_1/fwsm_cfg/mgacc_f.htm
    It talks about how to avoid this in future i.e. using pager lines 0.
    But how can I get out of it while being stuck. I have disconnected the sessions from Cat6500. What else should I do to get out of the stuck state.
    Thanks.

    Hi guys,
    sorry, I know that this is a very old post but I just got the same problem yesterday with our FWSM. One of my coworkers logged into the device and he did a show run, and the session just got locked at the more prompt (the actual session just timed out). Google brought me to this post trying to solve the issue with no luck.
    We were actually very lucky as we always console into our devices using a management router, so it was just a matter of killing all the telnet sessions from that management router to the FWSM, and that fixed the issue:
    1) Show the active sessions:
    CE_MGMT_RT01#sh sessions
    2) kill all the sesssions to the FWSM
    CE_MGMT_RT01#kill 1 (or 2, 3, ...,etc)
    Just thought of posting my solution in case someone comes across this problem. It bloody took me around two hours to figure this out. The only catch is that you have had consoled into the device using an intermediate device, otherwise, don't know which would be the solution.
    Alex.

Maybe you are looking for

  • 3gs replacement stuck in restore mode - error code 6

    I had updated my previous 3GS to OS4.0 which crashed it entirely as it rebooted continually thro the process. Good applecare service which have just sent me a new 3GS with 4.0 preinstalled. Now setting up new phone - asked me if I wanted to upgrade t

  • YYYYMMDDUUMMSS ?

    Hi, How to get this in an variable without - of : YYYYMMDDUUMMSS date and time. Adibo.

  • Problem in Tax Code Execution

    Hi, Can any one please explain me where i am going wrong in customisation for tax code (CIN). the message given in error is  "<b>No posting rules have been defined for the account key in the tax table  in table T007B</b>".                            

  • Runtime Error R6025 and DAQ-Driver

    Operating System Windows2000 Teststand  Version 3.0 DAQ-Driver  6.9.3f5 Serial Driver  1.7 LabvIEW RTE build with LabVIEW 6.1 hello, we have build a testsytem based on LabVIEW and Teststand. We use the NI-PCI boards 6713, RS232/16 and MIO-164E. We do

  • Gif files not displayed in external browser for Web interface builder

    Hello all, I have generated a bsp application and when i open it in my external broswer some of the gifs are not opening. icon_open.gif for variables,  navigation buttons up.gif, down.gif, s_b_delr.gif in excel based layout. I think its accessing the