Best way to make a main menu?

Hello guys I was wondering if you guys could help me.
Im trying to make a main menu which is displayed to the user when they load my applet.
Im using 3 JButtons on one applet.
I have 3 separate applets I want to be accessible by clicking a button on the menu.
So the user presses a button and they are displayed the required applet. I have each applet working separately but cannot get the menu I require to work.
So does anyone have any idea how to make JButtons show another applet in place of the menu?
It would be great if each applet could pass a value between each other too such as a score.
Any help would be great
Thanks
pbd2

I would call a JavaScript function from the Java applet to set the visibility to "hidden" or "visible" of the tag the corresponding applet, here's some pseudo code:
<div id="applet1">
<applet archive=blabla.jar ... width=... height..>
</applet>
</div>
<script language=JavaScript>
function doHide( appletID ) {
    document.getElementById( appletID ).style.visibility="hidden";//"visible" to get the opposite effect
//should call this from Java
doHide( "applet1" );
</script>

Similar Messages

  • Best way to make a rollover menu?

    Rollover menu in Flash CS3, ActionScript 3.0
    This is my first project in Flash and I am having trouble
    with this. Does it make sense to have a button that plays a movie
    clip of the menu which contains buttons? Or should the button be a
    rollover and in the over stage the menu pops up and there are
    buttons in there?
    Finally, if I have a button that plays a movie clip with
    buttons that need to gotoandplay a specific frame, should the
    script for those buttons be in the menu movie clip or in the main
    timeline?
    I hope this makes sense, please let me know if I can clarify!
    I appreciate any help...Thanks

    no, that doesn't make sense. but what you mean by a rollover
    menu is probably clear.
    don't use the button timeline to do anything, especially not
    create a menu that's revealed on rollover of the button because the
    menu will disappear when you rollover the menu (and out of the
    button) or you won't be able to access your movieclip with
    actionscript (if the movieclip is part of the button's rollover
    state.
    so, use a movieclip button.

  • MBP 2011 - Best way to make it behave like Mac Mini ?

    I have a 26" NEC monitor I like and use for photo editing. I come from the Windows world. Late last year I bought a Mac Mini, hooked it up to my monitor and was getting used to OS X. Then my mini was stolen.
    I recently replaced the stolen mac-mini with a 2011 13" MacBookPro i7 2.7, thinking I could hook it up to my NEC monitor like the mac mini, but I'm finding it's not really like that. It's more of a dual display setup that I'm finding awkward.
    How can I make the external monitor be the main screen with dock and menu bar ?
    Display settings are kind of primitive in this regard.
    I can drag firefox from the MBP screen to the external screen, but the menu bar stays on the MBP. It's kinda weird. Moving the mouse back and forth isn't so fluid due to vast difference in resolution between the two screens.
    Then there's the battery issue. If I leave the AC plugged in all the time, I read that isn't a good thing for battery life. It is however, convenient once in a while to pickup the MBP and carry it about the house.
    What's the best way to make the MBP behave like a mini?

    Thank you for the KB article, it helped.
    The key is to have the power AC adapter plugged in on the MBP. Then, when it wakes from sleep after closing the lid the attached display becomes the one and only display with Dock and Menu bar up top. Otherwise, in battery mode, wake from sleep is a complete disaster. This clamshell mode seems to be very stubborn in battery mode. It wakes up, monitor flickers, goes back to sleep. Press a key to wake it up again and it just keeps going in a circle, like ground hog day and I never get to actually use the MBP.

  • How do I make a main menu for a game?

    Hi,
    I need to make a main menu for this tower defense game that I am making.  I have 2 parts to the menu that I need to put together.  I have it as follows:
    I have a start screen where the player presses the start button.  I now need it to take the user to the main menu itself.  I have both the start menu and main menu in the same document but on different layers.  I have a button labeled as start which I have set up to where when it is clicked, it changes colors but I also need it to hide/show the menu layer.  I just need the that start button to take users to the menu layer where I have 3 more buttons which are resume, new, and options.  I will need those buttons to go to their different layers also.  After users hit the resume or new buttons, I need the game itself to start which I will start making after I figure out the other issues. 
    I am new to Flash and I really want to learn how to make tower defense games.  For now, I am using http://www.ehow.com/how_7788131_make-tower-defense-game-flash.html as a guide to make the game stuff but it doesn't say anything about a main menu.  I am using a trial version of Flash Pro CS6 and it is due to expire in 28 days.
    Any and all help will be great! Thanks, xp3tp85

    I used this and it worked:
    import flash.events.MouseEvent;
    start_button.addEventListener(MouseEvent.CLICK,startF);
    function startF (e:MouseEvent):void{
    gotoAndStop("main_menu");
    On the next layer I used this and it worked too:
    back_button.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void{
           gotoAndStop(1);
    Apparently it wont let me use the same code twice on one timeline.  Is there any way around this?  I need a few more buttons on the main menu for the game.

  • Best way to make a Constant Power Load

    What would be the best way to make a load that always draws the same amount of power whatever the voltage on it. For exemple, an load would draw 100 mA at 24 VDC, 150 mA at 18 VDC and 200 mA at 12 VDC. All I found is to use Nonlinear Dependant source.
    Any easier way to do this? Thanks.

    Sorry about the file mix up, I was anxious to get it posted for you that I failed to realize you were using a different version.
    As far as the last "amplifier" in your Leaky Feeder design, I actually hooked it up to the 24VDC supply on the left and this was a direct connect before the first resistor.  I realize this is not what would be ideal for your application as probably you have only a certain place in the Leaker Feeder to tap off from. I would suppose this would be going into a different entry way off the main entry at an intersection so I do not know how my adjusting the placing of this would effect the results because it seems to me by doing this I have bypassed a bunch resistance in the Feeder cable itself (if that is what the resistors represent) and also bypassed a number of amplification stages in the process as well.
    I will post a picture of my circuit for you to examine and try in Version 9.  This is the only thing I could come up with to where the power draw was the same no matter what the voltage input was. The only thing I can see as a drawback is that with this circuit the current remains constant but the voltage fluctuates. If I use a 24V regualtor and drop the input voltage to 12V the current remains at approx 118ma but the voltage drops to 12V when I plug it into your circuit.. I will let you try it and see what you may be able to do with it.
    Message Edited by lacy on 04-28-2008 05:47 PM
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Possible Constant Power Load.JPG ‏285 KB

  • What is best way to make disk backup of CS5 downloaded installation?

    Hi,
    We purchased the downloadable version of the CS5 Production Premium installer rather than waiting 2 weeks to receive it in box form.
    What do you suggest is the best way to make a backup of the downloaded installers, which total about 13.8 gigs?  I was thinking of putting the main one on a dual layer DVD-R but the biggest file is 9.23 gb's, nearly a gig over the data limit for dual layer disks.  Is it possible to use Toast to split a disk image over multiple files or use Apple Disk Utility to compress the .dmg even further to fit?  Or perhaps is the easiest way to just copy it over to a USB thumb drive?
    I know Adobe allows you to re-download the software whenever needed, but it would be more handy for us to have a backup here rather than wait for another really long download...
    Suggestions?
    Thanks!

    You can buy a set of backup disks from Adobe for a nominal fee. You might want to give them a call and ask about it.
    Otherwise, just back it all up to an external drive.
    Bob

  • Best way to make a slideshow for a wedding?

    I am trying to make a slideshow for a wedding. What is the best way to make this?

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailier like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    OT

  • The Best Way to make your iPad battery last the longest!

    After checking many sources and also discussions here -- this is one article that pretty much sums up the best way to make your iPad battery last the longest!
    It basically comes down to JUST ONE THING (mainly) -- and that is simply REDUCING YOUR CHARGE CYCLE COUNT! And how do you do that? Well, very simply KEEP IT PLUGGED IN as much as possible. And then, doing what Apple says by doing just one full discharge - once a month.
    There are about 1000 charge cycles available for the iPad, at which point you should have 80% of the battery life left. SO ... Anything you do to slow down getting to that 1000 charge cycles, makes your iPad battery last longer. Keeping it plugged in "all the time" (or, as much as possible - since it is a portable object) slows down the process of getting to that "lessening of battery capacity". It's simply all about "charge cycles" - which then translates into "reduced battery capacity".
    Here's an article to pay close attention to:
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/

    Here's another site that is usually posted here that you would be interested in: http://batteryuniversity.com

  • I am trying to make a main menu for my project but I don't know where IDVD is located?

    I am trying to make a main menu but I read some info. and said I have to do it through IDVD and I tried it but can not find IDVD anywhere so I wanted to know if I have to purchase it or something and I also wanted to know how to create a main menu?

    depends on how old your Mac is ...
    newer machines do not come along with a pre-installed  iDVD (.. and iWeb ..) anymore; you have to purchase a boxed version of iLife11.
    if somehow iDVD is installed on your Mac, you should find it in your Apps-folder
    (or use Spotlight, search for iDVD) ...-

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • What is the best way to make a DVD from iMovie

    What is the best way to make a DVD from iMovie?
    I am using iMovie 06 (Naturally) with iDVD 08. I have always used;
    iMovie 06, File > Share to iDVD 08. And got pretty good results.
    Some say the best way is to quit iMovie 06, open iDVD and import the movie from the Media button.
    I have tried both methods in the results look the same. I'm interested in getting the very best quality possible.

    You likely have one of the most expensive media converter boxes on the market today.
    But does it work well with most macs? (my guess is that it does). But more specifically can it "handshake" with an intel based mac? I personally haven't tried it.
    But you may want to read this for yourself if you haven't already:
    http://discussions.apple.com/thread.jspa?threadID=1179361&tstart=2362
    Assuming it works then the best format is .dv which this unit will support apparently.

  • What is the best way to make a list of addresses for envelopes or labels?  Address book, numbers or pages?

    What is the best way to make a list of addresses for envelopes and labels?  Address book, Pages or Numbers?

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • What is the best way to make a clickable grid

    What would be the best way to make a clickable area that can
    differentiate between discrete parts of the area when clicked on.
    In other words, instead a having multiple buttons in a row that the
    user can click on, is there a way to have an area that has lines to
    distinguish the different areas(buttons) but that acts as though
    there were multiple consecutive buttons?
    For example, if I wanted to graphically simulate the buttons
    on a phone but without using buttons. Instead use some kind of grid
    or area that is divided into multiple sub areas that can
    distinguish the discrete positions (each button on the phone, or
    sub-area).
    Thank you,
    Salchichasa

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer do not seem to have the capacity. Thanks!

    What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer to the PC in the classroom do not seem to work because of the file size. Thanks! Quincy

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • What is the best way to make a program fit different monitor resoultions?

    In our lab all our test stations have 1280x1024 resoultion monitors. In the "other lab" all the test station monitors are 1440x900 resoultion.
    Now I am tasked with making my programs run on the test stations in the other lab. I have tried setting the options "maintain proportions of windows for different monitor resoultions" and "Scale all object on front panel as the windows resizes" and of course neither one of these options really does what I would expect it to do.
    What is the best way to make programs fit different monitor resoultions?

    J-M wrote:
    I resize the Front Panel when the program start to fit the monitor resolution.  After that, I use the "SBE_Determine If Screen Resized.vi" from TomBrass (http://forums.ni.com/t5/LabVIEW/Resizing-controls-on-a-tab-control-within-a-pane/td-p/1520244 ).  This vi is very useful if you don't want to monopolize the CPU with the "Panel Resize" event.
    I don't like this function for a couple reasons.  First for the example you don't need any custom code to handle the window resizing, just use a couple splitters.  Even if you did need to handle the resize, you only resize after the mouse is up after the resize which is not how normal Windows programs work they resize as the mouse moves.  So I modified the VI to resize objects as you resize the window.  Then because doing this can generate 100 events very quickly, I use a boolean in a shift register to make sure that we only handle the resize event if there is no new resize events after 0ms.  This essentially makes a lossy queue and handles the last resize event.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Resizable_Graph.vi ‏22 KB

Maybe you are looking for

  • Deletion of production order in ECC / APO

    Hi, It is not possible to set DLFL (Deletion flag) when the order is in CRTD status also when the order is DLV or TECO with no actual cost or open order value . It is happening in both the scenarios when 1. Plan order is created in APO and then conve

  • Still photos from a video to be used in another program

    I am new to iMovie. Is there a way to take a still clip from a video clip and make it into a jpeg or other photo to be used outside of iMovie? If so, what does it get named, and where would I find it to access it from a photo program?

  • Not Visible in iTunes and YouTube doesn't Connect in 2.3

    I was happily working away with ATV until upgrade 2.3 and iTunes 8 came out. Since then, I have reverted back to factory reset several times and find that this is the only reliable setup, I'd love to have my MobileMe gallery and YouTube working again

  • Loading external HTML with global context attributes

    I am trying to use Google Finance to load a stock quote in an HTML tile. In the Mosaic 9.5 samples the tile uri is http://www.google.com/finance?client=ob&q=${application.symbol}. This does not  load the iframe in my CAF project. In fact, I tried con

  • Ipod 5th and ipod 4th not syncing

    hi downloaded new itunes, middle daughter's ipod 5th sync first time then never again, first daughter ipod 4th want sync. both ipod when go to sync come up with music, photos others sizes, serial num etc but want sync. run digan test connectivity tes