Creating Menus

Creating Menus
hi,
having problems creating menus in j2me.
Found alot of code around using MenuElements, lists and all sorts of things.
my code for the list is roughly like this:
List menu=new List("MainMenu",List.IMPLICIT);
int num1, num2, num3,num4,num5;
private Command cmd = new Command("Select", Command.OK, 1);
Displayable display1;
public void options()
num1 = 0;
num2 = 1;
num3 = 2;
num4 = 3;
num5 = 4;
menu.append("Start Game", null);
menu.append("High Scores", null);
menu.append("Instructions", null);
menu.append("About", null);
menu.append("Exit", null);
menu.addCommand(cmd);
menu.setCommandListener(this);
display1.setCommandListener(this);
The problem now is how to i check which one is pressed?
Or is there a better way to do this?
Is will be quick a simple menu as you can see.
Any advice is appreciated

Will look through the tech tips
Just one more question. The menu itself doesnt need to be drawn to the screen at all? i am using the getSelectedIndex now anyway need to integrate it into our current program get it to run either the menu or the game from the main.
Should of done the menu earlier alot of hassle at this late stage.
Thanks for answering.

Similar Messages

  • How to create menus in oracle forms6i?

    hello all,
    I want to create menu option in oracle forms6i..Is it possible? then how to create menus in a frame? pls help me..
    USER MANAGEMENT-------------->this is main menu.under this i want following
    --------->1.ADD USER
    ---------->2.EDIT USER
    ----------->3.DROP USER

    Hi Balraj
    Try to read this & implement it
    http://dbaforums.org/oracle/index.php?showtopic=2031
    u have also menu FREE sample as Demo Forms6i pls down load
    http://www.oracle.com/technology/sample_code/products/forms/6idemos.html
    Or download it directly as in this Thread Francois posted Directly...
    Forms6 : default menus menudef.mmb and menudefs.mmb
    Regards,
    Abdetu...
    Edited by: Abdetu on Jan 23, 2011 11:31 PM

  • Best way to create menus [was: Queston]

    What technique or is a template used to create the menu for this Adobe page? I have been studying web development (reading and tutorials) and the sections are always short on creating menus.  Mostly, covers creating buttons with behaviors in Fireworks and inserting them into Navigation Bars and Tables?  What are the best ways to create menus?
    [Subject line edited by moderator]

    Howdy,
    The best way is definately not the Fireworks way. Never has been.
    Take RJweb's advise and check out the PVII Menu Magic. I use that all the time and its very easy to customize with its well laid out CSS files. I havn't found anything easier to use and customize yet.
    Brad Lawryk
    Community Expert: Dreamweaver
    Usergroup Manager: Northern British Columbia Adobe Usersgroup

  • Any way to Create Menus in version 4?

    Dear fellow Premier Elements users -- I'm running version 4.0 of Premier Elements, and no matter what I try it crashes when I try to Create Menus (using a template).  I've created many DVDs using this great tool, but I now I need to make a DVD with scene menus.  The crash I get is in:
        adobe premier elements.exe  AppVer 4.0.0.0   MonName dvdcreator.dll ModVer 4.0.0.0   Offset 0006d14d
    I would be happy to create scene menus in any way. My movie timeline has both video and stills, and I've defined two scene markers (but no menu markers).  It seems that Adobe must have tested this function before they shipped the code, so I suspect there is a procedure that works.  Has anyone successfully done this?   I'd very much appreciate knowing how you did it!
    I updated the Adobe software using the Adobe updater, so I do not think there is a released fix for my problem.  Since my version isn't the current one, I don't think that that Adobe support will help.  I had a similar experience with my previous vendor of moving-making software.  That time I purchased the current version only to discover that the show-stopping bug was present in the new version.  I felt silly for investing in the upgrate, and I switched to Adobe's products because I thought that they were a more reputable company.  Up to now, their software has worked pretty well.  If I can not find a way around this problem however, I fear that I'll have to abondon Adobe and start using Apple's products.  I have a soft spot in my heart (for PC-based software) but not a soft spot in my head!
    Thanks in advance for any light you can shed on this vexing problem
    Jim

    Hey Steve -- Brilliant.  I think you nailed it.  I'm working on a older PC.  It's a 2.4 GHz Pentium 4 with 2 GB or RAM running Windows XP SP 3.  There are 17 GB of defragmented free disk space (which took hours to defragment).  Although Premier Elements is the only program running, it still can crashes as soon as I select a menu template and click Apply.
    The reason that I think your answer is correct is that I ran the same version of Premier Elements on my office laptop: 2.2 GHz Duo core T7500 with 2 GM of RAM and 72 GB free disk.  I was able to apply a menu template on a much more complicated DVD project without any problems.  It appears that my older home PC does not have the horsepower for this feature.
    So you not only diagnosed my problem, you renewed my faith in Adobe.  Now I'll upgrade to a hotter PC instead of jumping to a Mac.  I've never liked the proprietary HW and SW strategy that Apple rams down our throats.  I bought my first Apple device this year:  an iPod Touch.  Lovely little device, but I was flabbergasted that I would have to jailbreak the SW to be able to copy MP3 files onto it with anything other than Apple's own iTunes program.  And they've jiggered it somehow to prevent tethering it in the States with a cell phone via Bluetooth.  Makes me think that my ex-wife must be on the board... a chilling thought to be sure.
    But Adobe makes great photograhic SW for both PC and Mac.  The reason my home PC has only 17 GB free is that I have more than 12,000 digital photos online.  All taged and deftly managed and optimized with Photoshop Elements.  Nice.
    Thanks for your help Steve -- Jim

  • How to create menus for a particular file

    Hello all,
    can anyone solve my problem really i am totally fed up for writing logic for the following file ,
    what iam doing is i have a file like this
    aaa.mmm.ggg=/aaa/bbb
    aaa.clock=/usr/sbin/clock
    sss.jot=/user/pmsdev/bin/jot
    sss.netscape=/usr/BIN/netscape
    sss.nnn.gg=/gg/ss
    sss.nnn.yy=/usr/sbin/clock
    bbb.xclock=/usr/bin/X11/xclock
    bbb.ggg.mmm=/usr/sbin/clock
    bbb.ggg.kkk=/jjj/jjj
    bbb.ggg.kkk.xxx=/ggg/mmm
    bbb.hhh.pp=/ss/a
    bbb.zz=/Zmm/vvv
    vvv=/ddd/ddd
    for this i have to create menus and coresponding submenus,
    means for ex: *bbb.ggg.mmm=/usr/sbin/clock[*[B]bbb is the submenu of ggg which is the submenu of mmm ,so when i click on mmm i will get the value usr/sbin/clockso i have splitted on *"="* and i have used maps to store key value,this is ok,but how to create the menu structure for all how to compare one with other,please help me iam using swings for this.please help me.
    Edited by: 1-ewqsfd on Sep 30, 2007 2:11 AM

    Hello all,
    can anyone solve my problem really i am totally fed up for writing logic for the following file ,
    what iam doing is i have a file like this
    aaa.mmm.ggg=/aaa/bbb
    aaa.clock=/usr/sbin/clock
    sss.jot=/user/pmsdev/bin/jot
    sss.netscape=/usr/BIN/netscape
    sss.nnn.gg=/gg/ss
    sss.nnn.yy=/usr/sbin/clock
    bbb.xclock=/usr/bin/X11/xclock
    bbb.ggg.mmm=/usr/sbin/clock
    bbb.ggg.kkk=/jjj/jjj
    bbb.ggg.kkk.xxx=/ggg/mmm
    bbb.hhh.pp=/ss/a
    bbb.zz=/Zmm/vvv
    vvv=/ddd/ddd
    for this i have to create menus and coresponding submenus,
    means for ex: *bbb.ggg.mmm=/usr/sbin/clock[*[B]bbb is the submenu of ggg which is the submenu of mmm ,so when i click on mmm i will get the value usr/sbin/clockso i have splitted on *"="* and i have used maps to store key value,this is ok,but how to create the menu structure for all how to compare one with other,please help me iam using swings for this.please help me.
    Edited by: 1-ewqsfd on Sep 30, 2007 2:11 AM

  • Blu Ray Advice - Creating Menus

    Hi everyone,
    I am getting a new external Blu Ray burner for my mac pro. I want to also get a program that would help create menus. Need some advice for both purchases.
    Thanks so much,
    kennyjoey.

    How about Encore for authoring? And very nice integration to the rest of the Adobe Suite.

  • Create menus to run projects (4-8 in a menu)

    What feature in Captivate allows you to organize your
    projects (SWFs) into a menu so users can step through the related
    recordings one at a time (view, back, next). Please tell me it's
    not Menu Builder. ;-)
    I am evaluating Captivate 3 and am looking for something like
    Camtasia Theater where you drop your projects into a menu builder,
    sort them, title them, identify the links, and you are basically
    done.
    Surely there is has to be something like this for Captivate
    projects. I've seen menus like this online using Captivate
    projects, but they were definitely not made with Menu Builder. Is
    there a 3rd party tool or other Adobe application that does this?
    Captivate earns high marks for ease of use and generation of
    recorded demos, but I don't want to get stuck creating clinky
    website menus when a companion tool should do this in minutes with
    polished results.
    Thanks for any info.

    The way I've been doing it is with hyperlinks in an HTML
    page.
    Here's what I do:
    1) Publish your Captivate movies, and have Captivate produce
    a HTML page for each movie.
    2) Create a blank HTML page (i.e. in Dreamweaver).
    3) Create a menu in the HTML page. Each menu item is a
    hyperlink to each Capitvate HTML page.
    4) Edit the style of the HTML page menu. I usually do all
    edits in CSS, but you can use DHTML, images, etc.
    I've created some menus that look really good using CSS,
    borders, margins, backgrounds colors, etc. I've sometimes created a
    <frameset> - so I do not have to reproduce the menu on each
    page, and I load all the Captivate movies in one designated
    frameset page.
    You could also easily do this within Flash - and just link
    Flash buttons to the Captivate HTML pages.
    For navigation within one Captivate movie between slides - I
    have a product called the .
    Menu
    Wizard.

  • Problem with Photoshop created Menus

    One of the great features of Encore is that you can bring in HD content and create both a Blu-ray and a DVD from the same project. Unfortunatley this doesn't always work.
    I create most of my menus in photoshop and use text or round circles for navigation. If I create a menu that is sized for blu-ray (1440x1080) and then burn a standard widescreen DVD, the buttons or text sub-picture will be cut off. This problem exists in CS4 and is still there in CS5. I would often create HD sized DVD menus even for my DVDs in case the client would later want Blu-ray. For the longest time, I couldn't figure out why my circle buttons would be cut off. You really don't see the issue until the DVD is burned and it's played back in a DVD player. Once I re-sized the menu to standard def wide screen, everything comes out ok but I would like to be able to just create one size menu and use it for both DVD and Blu-ray. Anyone know a work-around?
    Thanks
    Chris

    Chris,
    The Scaling algorithms in PS are very powerful and offer so very much control. Those in PrPro are merely OK, as it is not an image editing program. Encore is even less an image editing program, so does not even have those Scaling algorithms, that PrPro does.
    All one has to do is Edit in Photoshop, Scale (choosing the best algorithm) and Save - done.
    Until Adobe decides to marry Encore with PS, I doubt that we'll see things in one place, but that Edit in Photoshop is so very easy.
    Good luck,
    Hunt

  • Can you create menus in InDesign 5.5?

    Does anyone know if you can create drop-down menus in InDesign5.5? I imagine I could use text buttons and line them up, but is there an easier way or am I in a Dreamweaver state of mind?

    Another question, if you don’t mind. Do you know if I make a change to a folio will that change be reflected on the end user iPad automatically. In other words will a change from our database be reflected automatically for the users or would they have to update the app?

  • Creating menus in Oracle Forms

    Hello,
    i need your help again. can you give me an example of how to create a menu in Oracle Forms? i didn't find something convincing.. so i need a menu ELEVI which has 2 menu items, AFISARE and CAUTARE. i don't know how to make them..
    i heard that the menu item WINDOW cannot be removed, is it true? can i specify then where should appear this menu item? i wanna the last 2 menus being WINDOW, and HELP (again, how to create a help menu item?). a short example i hope will clarify me..
    Thank you!

    just go on these links.and download these file...
    http://www.4shared.com/get/5945762/219ac795/Oracle_Developer_-ATutorial_on_Oracle_Forms_Reports_and_Graphics.html
    http://www.4shared.com/get/2314488/49ea48a1/oracle_ids_forms-build_internet_applications_ii-v1.html

  • Do I really need to write ANY code to create menus

    I need to create a Enhanced CD. You know....a CD, that when
    put into a computer pops up with menus and options to play music,
    videos, goto a website display a PDF etc......
    I know Director does this, because the last Enhanced CD I saw
    had a lillte "d" in the upper left hand corner and also a message
    that said MADE WITH MACROMEDIA (now Adobe).
    So my question is if I buy Director, will I need to know any
    code or Lingo? I know very little HTML, but thats about it. Was
    something like this created via a drag and drop process, or do I
    need to be a genius...or maybe a super genius?
    Any help or suggestions would be greatly appreciated!
    Chaz

    It's been a long time since I first used Director, I can't
    recall a
    project that didn't some amount of coding.
    Your brief description doesn't include anything overly
    complicated, but
    will require an understanding of the fundamentals of Lingo.
    Director
    comes with some pre-built code widgits and there are 3rd
    party Xtras
    (some free, some that cost) which can make the job easier.
    The best thing of all is the tremendous help that you will
    get on this
    forum. The only real question is do you have the time
    required to learn
    how to use the product?
    Xaos wrote:
    > I need to create a Enhanced CD. You know....a CD, that
    when put into a computer
    > pops up with menus and options to play music, videos,
    goto a website display a
    > PDF etc......
    >
    > I know Director does this, because the last Enhanced CD
    I saw had a lillte "d"
    > in the upper left hand corner and also a message that
    said MADE WITH MACROMEDIA
    > (now Adobe).
    >
    > So my question is if I buy Director, will I need to know
    any code or Lingo? I
    > know very little HTML, but thats about it. Was something
    like this created via
    > a drag and drop process, or do I need to be a
    genius...or maybe a super genius?
    >
    > Any help or suggestions would be greatly appreciated!
    >
    > Chaz
    >

  • Using Photoshop to create menus

    This question was posted in response to the following article: http://help.adobe.com/en_US/encore/cs/using/WS2C3F3ABD-6457-4ca0-898F-720B7E3D0C10.html

    Author Jeff Sengstack shows how to create viable Encore menus using Photoshop in this short tutorial at InfiniteSkills: http://infiniteskills.com/blog/2012/07/adobe-encore-cs6-tutorial-designing-menus-in-photos hop/

  • Creating Menus with CMs made in DVDSP4

    I'm not quite sure how to explain what I want but here goes...I encode my movies using BitVice, but before doing so I have to open the movie in QT Pro and turn on the text track so that BitVice will recognize the chapter markers. For some reason today though I am unable to open a wedding video I exported out of FCP 5. QT crashes as soon as I select the file. It doesn't do it with any other file. Anyway I sent the movie straight to BitVice and I'll create the markers in DVDSP4. However, when I met with the client they were really impressed with the Chapter Menus. So here's my question: Can I still create the menus after I set the markers in DVDSP4, so it would like it normally does when I import a movie with pre-set markers?
    G5 1.8ghz single Mac OS X (10.4.7) 2 int 160GB HDs 250GB ext 2.75GB RAM DVDSP4 FCP5.04 QT pro 7.1.2.

    If I understand you correctly, that's no problem. I believe the only significant difference creating the markers in DVD SP instead of FCP, is that you're limited to setting markers at I-frames in the GOP structure. That is, you won't be able to set the markers as frame-accurately as you would in FCP. Shouldn't be an issue unless you have very specific frames where you need markers. When you create your menus you'll be able to link to any markers you just created.
    Doug

  • How i can create menus

    Dear All
    How i can create my own menus with security issues.
    Rai

    You can create your own area menus using SE43.
    In SE43, cerate a new menu like z_test_menu.
    Further, use the toolbar option , add entry as subnode, to include your transactions.
    Basis Activity -
    Further, you can attach this area menu with the roles through Xn PFCG. And users can be assigned to this role.
    So only the users who have been assigned the role which contains this new area menu will be able to see this area menu.
    Thanks,
    Ram

  • Create menus in an applet

    I'm just starting to use applets. I'd like to create an applet menu for my web page. I'd like to use the MenuBar object but I guess you need to add that to a Frame. Of course, applets are panels so how I can accomplish this?
    Do I need to add a frame to me applet?
    Thanks for the help!

    in the init section of your code try:
    JMenu Section = new JMenu("Section");
    JMenuBar mb = new JMenuBar();
    mb.add(Section);
    setJMenuBar(mb);
    This should give you a bar with Section as an option

Maybe you are looking for

  • Automator Find Text and Alert

    I am new to Automator and AppleScript. I need to create a simple application where I can drop txt files onto, the app would then search the document for the word "Failed". Then show a dialogue showing the result of the find. Please can someone point

  • Help needed with spry image slide show

    Im new to dw and am currently building a site for my buisness.  I installed a spry image slide show and it works fine in live view but when I view it on the web it was looking for sever .js files. I then checked out the spry forums and noticed that i

  • How can I stop my old apple macbook pro from syncing with my new computer and iPhone?

    How can I stop my old apple macbook pro computer from syncing with my new apple computer and iphone?

  • Linksys X3500 - Port Forwarding (limited)

    Hi everybody! We have purchased 3 pieces of Linksys X3500. One for us and a couple for an installer (our customer) who wants to make a wireless home network (for a couple of end users). I have to tell you that we are a distributor for security system

  • What is the best way to update Windows 7 Boot from 32bit to 64bit?

    I'm sure this has been answered a number of times, but I can't quite seem to get a search query that takes me where I want to be. Here's the issue. I have a Macbook Pro 15" Early 2011. I just put 8GB of RAM in it, replacing the stock 4GB. I use Boot