Creating a Text based Menu!

Hey guys. I've been up for god knows how long trying to do this but i cant figure out how. I am trying to create a text based menu looking somewhat like this:
Add Client (a)
List Clients (b)
Add Video (c)
List Videos (d)
Exit (q)
I have the methods written for adding videos and clients to files, working on how to read them back (FileReader?), but the main question here is, how do i link those possible answers (a,b,c,d,q) to the methods i have written? P.S. the methods are not located in the same class as the code for the menu.
Help will ensure a couple hours good sleep on my part and a passing grade in this course. Thanks in advance.

InputStreamReader input = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(input);
String strInput = br.readLine();
if (strInput.equals("a")) {
    //call responding method
} else if (strInput.equals("b") {
    //call responding method
} else if (strInput.equals("c") {
    //call responding method
} else if (strInput.equals("d") {
    //call responding method
} else if (strInput.equals("q") {
    //call responding method
}

Similar Messages

  • Howto create sales text based on material number in VA01any Exit or badi

    Hi All,
    I have to create sales text for each material number entered in sales order which using VA01 tcode .
    i know there is configuration settings in SPRO, but i want to do automatically while using VA01 tcode.
    i need right Exit or Badi for this as soon as i save the sale order.
    can i do this using Function Module CREATE_TEXT in that exit....any Suggestions.
    Regards,
    Sudhakar Reddy.A

    Hi..
    Please check the Availability in MV45AFZZ include of SAPMV45A program.
    If you are able to access the Corresponding table data ..you can set the Text directly at that place.

  • Intercompany Text-Based Standard Purchase Order from Production Order

    We have a business scenario where a material is made in a plant and then another plant performs a service on that material.  The customer wants the purchase requisition that is created from the production order from the producing plant to apply a vendor that is an intercompany vendor.
    The issue is, these purchase orders are text based purchase orders.  This process works perfectly when there is a material master.
    Scenario:
    Plant X = Production Order to make Material A
    Plant X = Production Order creates a purchase requisition in Plant X; Intercompany Vendor is assigned
    Buyer = Creates the purchase order from the purchase requisition
    Error Message: SAP issues an error message that this vendor cannot be used.
    We are looking for a way to create a text based purchase order (that represents a service) and assign to a intercompany vendor.

    The exact error message we receive is:
    Diagnosis
    You are entering an ordering transaction involving a vendor to whom a plant has been assigned. Normally, materials would be supplied by one plant to another in such a transaction.
    This process involves a delivery and billing document in the SD system. The PO for this appears directly in the delivery due list of the issuing plant (vendor) and therefore does not need to be transmitted.
    However, items without a material master record cannot appear in the delivery due list.
    Procedure
    Items without a material master record can only be ordered from vendors without a plant assignment.
    The point is if we create a vendor without a plant assignment, how can the inter-company posting be accommodated.

  • Using AppleScript to create a text file, based on an OCR'd file's content

    Hey guys, I've got an interesting situation.
    I was wondering if there would be anyway to use something like AppleScript (or the like) to create a text document and fill it with information based on what is found in an already OCR'd file?
    For example: I have a paycheck stub. The stub contains the words "Gross Pay" and the value "$xxxx.xx" on one line. Using Hazel to identify paychecks (based upon filenames), could I then use something like AppleScript, to create a new text file, and then pull the text from the line that contains the word's "Gross Pay" and insert it into the text file's next line?
    Ex:
    March 26,2012      
    Gross Pay                   $xxxx.xx
    April 6,2012
    Gross Pay                   $xxxx.xx
    Kind of how TurboTax's iPhone app pulls text from an image, then uses the values to insert it into the app's appropriate fields?
    I know this may be a lot to ask, but any help is appreciated. Thanks!

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Is it possible to create a drop down menu using form fields rather than text?

    Is it possible to create a drop down menu using form fields rather than text?

    Yes, correct - values of form fields. If one is blank, then the field would be blank - yes? If two or more have the same value that is fine.
    A standard dropdown ... As shown here. If there is an easier way to do this, I'd love to hear your suggestions. Thank you!

  • Creating a simple DVD menu with text as buttons...

    Hi, I am rather new to DVDSP but fairly accomplished at the software designers earlier product, DVD Virtuoso (still use it). Can anyone tell me where there is a tutorial to create a simple text DVD menu? I would like to place a colored rectangle (opacity) behind the text to help it stand off the background and have access to some fairly basic text tools like Bevel & Emboss, Stroke and Drop Shadow. Thank you.

    http://discussions.apple.com/thread.jspa?messageID=2082015&#2082015
    http://discussions.apple.com/thread.jspa?messageID=2601618&#2601618
    Has some discussion and examples I posted elsewhere which should help get you going. Best to do graphics in Photoshop, then make sure all text/layers rasterized, then make them flattened picts. One will be background layer, the other grayscale overlays to map colors (these examples should start you off I think)
    PS I know Hal has a great example with better step by steps, and if I get a chance later I can also fill in details on what I did

  • Can anyone suggest a app or programme for creating a simple text based logo with a font I already own?

    Hi.
    I run my own company and would like to create my own simple text based logo using a font I've downloaded. Can anyone suggest an app or programme that will be simple enough for a dunce like me to create vectored graphics and reliable enough to create something professional and usable, please?
    Thanks.

    I believe if you copy the font into the font folder, any application should be able to use that font.

  • Create hover text from mouse rollover with nav. menu

    Howdy,
    I'm using CS5 actionscript 2. I would like to create hovering text when one mouses over an item in the navigation window (please see pic). You know, something that would act like a brief abstract to give the user more info re: whether or not they need to click on that link.
    At present, the nav_mc is linked to an xml doc FYI (the nav_mc accordians in and out, but doesn't have to). I input what I want the menu and submenu to say in the xml nodes and it shows up. It would be cool if the hover text added could also be xml driven too.
    I am green to this so the more detail the better. Do I need to create a new xml doc? A new .swf? How do I link this? Should I use Flash Builder or Catalyst?    I am happy to provide coding/docs of what I have to make things more clear.
    Much Thanks!
    kave

    Hi Kglad,
    Thank you so much for taking the time to answer. I'm afraid I'm a bit of a newbie, would you mind fleshing your suggestions out a bit? sorry!
    create a movieclip with a dynamic text, I'm not sure what this looks like (see pic) I made the green rec. a movie clip and created a dyn. text field...the movie clip and dyn. text are different things or one in the same?
    assign the textfield an instance name (eg, tf) think I got this?
    and assign the movieclip a linkage id. not sure what this might look like, do you mean an instance name? you can then attach your movieclip on rollover and assign the textfield's text and remove the movieclip on rollout.  not sure what this looks like
    you can enter the data used on each menu item's rollover wherever you like (including your xml).  you just need to parse those data so each menu item is aware of its "tooltip" and can assign that to the attached movieclip's textfield.  sorry, not sure hat this looks like either... the only menu item I have access to in the .fla is the lt. blue box you see in the upper left of pic. everything is generated in the xml...you probably gathered this, but just in case...
    Thank you so much for your help!
    kave

  • How can I add a "Create New Text File" contextual menu?

    Hi,
    I'd like to add a "Create New Text File" contextual item. I found the "new text file" action in Automator, but I don't really know where to go from there... I want it to work on the desktop and in finder...
    Thanks

    See:
    Mac OS X Automation,
    Automated Workflow Tips,
    Introduction to Automator tutorial, and
    a four-parter on Automation in Snow Leopard by Sal Saghoian:
    Snow Leopard Services,
    Services for iPhoto,
    Safari and WebKit integration, and
    Installing and using services.
    Finally, 
    Developing AppleScript Applications and
    Apple's Automator Developer Documentation

  • Creating a simple text based logo without any background colour?

    Hello everyone
    I am really quite desperate for help and I'm hopeful that someone will be able to assist me.
    I'm helping a family member make a website and we are using wordpress and we have found a nice theme which is a blue color.
    The problem is that we can't make a logo to fit in with the theme.
    This is because we want a simple text based logo, but when we try and do this, it basically ends up being a silly white box with text inside it. We can't get our text to "sit" on top of the existing theme colors if you know what I mean.
    Could someone please explain to me how we could do this?
    Thanks

    assumming that you are using CS6--file>new--set parameters (background transparent) see attached dialog screenshots

  • How do i create a drop down menu???

    This is nothing to do with creating a run-time menu, rather it is to do with creating a sort of drop down or drop up menu selection with three or more options. I want to have a button at the buttom of the front panel, when you click on it, a menu which contains some options should appear (kind of Start button menu in Windows), and after chosing one option it disapears (the menu). How do i do it in LabView. Thanks

    you can create an event structure that will trigger an event upon a button hit. Now you will have to be careful when using an enum if you want to populate it dynamically. You cannot write directly to the strings property of an enum. I would suggest using a text box and right clicking on it to create a property node. Once you have created the property node then write to the strings property and you will be able to write an array of strings. You can programmatically remove your options from that array before writing it based on what button was hit. Hope this helps.
    BJD1613
    Lead Test Tools Development Engineer
    Philips Respironics
    Certified LV Architect / Instructor

  • Select text based on format (free form style text)

    As suggested by Apple, I'm trying to create my first ePub using Pages as opposed to inDesign.
    I only have a PDF as a source file and don't want to re-type all the text.
    When I copy the text from the PDF and paste to Pages, the text comes in with the 'free form' style applied no matter what options I select during copy and paste.
    In order to produce an ePub, I need to set styles for the text. This is quite tedious.
    Is there any way to select text based on the way it is formatted when styles are not applied to the text?

    Here is a script which may be useful if your problem surface again.
    --{code}
    --[SCRIPT words_attributes_to_Style]
    Enregistrer le script en tant que Script : words_attributes_to_Style.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    Ouvrir un document Pages contenant des mots soulignés
    Aller au menu Scripts , choisir Pages puis choisir “words_attributes_to_Style”
    Le script appliquera :
    le style "Souligné" aux mots soulignés
    le style "Accentuation" aux mots en gras
    le style "Italic" (si vous l'avez créé) aux mots en italique.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: words_attributes_to_Style.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    Select a Pages document embedding underlined words
    Go to the Scripts Menu, choose Pages, then choose “words_attributes_to_Style”
    The script will apply :
    the named style "Underlined" to the underlined words
    the named style "Emphasis" to bolded words
    the named style "Italic" (assuming that you defined it) to italicized words.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/11/13
    2011/11/13 enhanced by Nigel Garvey in : http://macscripter.net/viewtopic.php?pid=145883#p145883
    --=====
    on run
              set Underlined_loc to my getLocalizedStyleName("Pages", "Blank.template", "STYLE_Underline")
              set Emphasis_loc to my getLocalizedStyleName("Pages", "Blank.template", "STYLE_Emphasis")
              tell application "Pages" to tell document 1
                        set character style of words whose underline type is single underline or underline type is double underline to character style Underlined_loc
                        set character style of words whose bold is true to character style Emphasis_loc
    Assuming that you defined your own Italic style named "Italic", you may use : *)
                        try
                                  set character style of words whose italic is true to character style "Italic"
                        end try
              end tell
    end run
    --=====
    Example
    set Heading8_loc to my getLocalizedStyleName("Pages", "STYLE_Heading 8")
    Requires :
    getLocalizedName()
    on getLocalizedStyleName(theApp, tName, x)
      activate application theApp
              tell application "System Events"
                        (application file of application process theApp as text) & "Contents:Resources:Templates:" & tName & ":Contents:Resources:"
                        return my getLocalizedName(theApp, x, result)
              end tell
    end getLocalizedStyleName
    --=====
    on getLocalizedName(a, x, f)
              tell application a to return localized string x from table "Localizable" in bundle file f
    end getLocalizedName
    --=====
    List of default styles embedded in the Blank template :
    "STYLE_Body" = "Corps";
    "STYLE_Body Bullet" = "Puce du corps de texte";
    "STYLE_Bullet" = "Puce";
    "STYLE_Caption" = "Légende";
    "STYLE_Emphasis" = "Accentuation";
    "STYLE_Footnote Text" = "Texte de note de bas de page";
    "STYLE_Free Form" = "Format libre";
    "STYLE_Harvard" = "Harvard";
    "STYLE_Header & Footer" = "En-tête et bas de page";
    "STYLE_Heading 1" = "Sous-section 1";
    "STYLE_Heading 2" = "Sous-section 2";
    "STYLE_Heading 3" = "Sous-section 3";
    "STYLE_Heading 4" = "Sous-section 4";
    "STYLE_Heading 5" = "Sous-section 5";
    "STYLE_Heading 6" = "Sous-section 6";
    "STYLE_Heading 7" = "Sous-section 7";
    "STYLE_Heading 8" = "Sous-section 8";
    "STYLE_Heading 9" = "Sous-section 9";
    "STYLE_Legal" = "Légal";
    "STYLE_None" = "Aucun";
    "STYLE_Normal" = "Normal";
    "STYLE_Normal 22" = "Normal 22";
    "STYLE_Normal 4" = "Normal 4";
    "STYLE_Normal 8" = "Normal 8";
    "STYLE_Numbered List" = "Liste numérotée";
    "STYLE_Series_0" = "Series_0";
    "STYLE_Series_1" = "Series_1";
    "STYLE_Series_2" = "Series_2";
    "STYLE_Series_3" = "Series_3";
    "STYLE_Series_4" = "Series_4";
    "STYLE_Series_5" = "Series_5";
    "STYLE_Strikethrough" = "Barré";
    "STYLE_TOC" = "Table des matières";
    "STYLE_TOC Heading 1" = "Sous-section 1 de table des matières";
    "STYLE_TOC Heading 2" = "Sous-section 2 de table des matières";
    "STYLE_TOC Heading 3" = "Sous-section 3 de table des matières";
    "STYLE_TOC Heading 4" = "Sous-section 4 de table des matières";
    "STYLE_Title" = "Titre";
    "STYLE_Underline" = "Souligné";
    "STYLE_[Null]" = "[Nul]";
    You may use more sophisticated custom styles embedding several properties:
    baseline shift (real) : Raise or lower the target text.
    bold (boolean) : Whether the font style is bold.
    capitalization type (all caps/normal capitalization/small caps) : Whether a capitalization style is applied.
    character background color (color) : The color of the character's background.
    color (color) : The color of the font.
    font name (text) : The name of the font.
    font size (real) : The size of the font.
    italic (boolean) : Whether the font style is italic.
    ligatures (all ligatures/default ligatures/none) : Remove ligatures from the target text if the document is set to use ligatures.
    name (text) : The name of the style.
    outline (boolean) : Whether the font style is outline.
    shadow (boolean) : Whether the text box content casts a shadow or not.
    shadow angle (real) : The directional angle, in degrees, that the shadow is cast.
    shadow blur (integer) : The relative amount of blur of images seen through the shadow.
    shadow color (color) : The color of the shadow.
    shadow offset (real) : The offset from the text box content that the shadow extends to.
    shadow opacity (real) : The amount of opacity for the shadow, in percent.
    strikethrough color (color) : The color of the strikethrough line(s).
    strikethrough type (double strikethrough/none/single strikethrough) : Whether one or more lines are drawn through the characters.
    subscript (boolean) : Decrease the font size and lower the baseline of the text.
    superscript (boolean) : Decrease the font size and raise the baseline of the text.
    tracking (real) : The space between text characters, in percent.
    underline color (color) : The color of the underline(s).
    underline type (double underline/none/single underline) : Whether the font style is underline.
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) lundi 2 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Is there a way to create a drop down menu with an automatic answer dependent on what is chosen?

    Is there a way to create a drop down menu with an automatic answer dependent on what is chosen? An if-then statement perhaps?  I am looking to add over 100 drop down options and would like to have a message automatically pop up depending one which option they chose.  Thank you.

    Hi,
    You would use the skip logic to conditionally show form items based on the selection within the drop-down menu. Here's a link to a description of the feature in our help documentation:
    http://help.adobe.com/en_US/formscentral/using/WSd789abd336388b1642c7fce012da94afe4f-8000. html#WS0faeceb8c23f5d60-774f03e3131ddc76d7d-8000
    Regards,
    Brian

  • Creating a text output using XML Publisher

    Hi All,
    Recently i created a  report for my client using XMl Publisher. The Data Definition was XML and the template type was RTF and i got the output in a PDF format. All was going smoothly until the client decided at the last moment that they wanted to print this in a dot matrix printer!
    I've read some articles on XSL- Text layout templates. But i can't get my head around it (I'm Functio-Technical as opposed to Techno-Functional )
    How do i convert my RTF template to give me a text output?
    Miranga

    From what I know, you will have to create another template based on "XSL" layout or eText layout (both of them require different coding methods). The RTF can not create text outputs even in 11g. This is based on my experience so far. You can create RTF output (available by default) based on the current layout that you use for PDF and see if it can be printed in a dot matrix printer though.

  • How to create a Form based on a dynamic table?

    Hello,
    The Select statement below creates a table based on a string (string is a value of an item):
    select * from table (pkg_util.fn_get_table (:P18_VALUE))I need to create a region on a page with a Form based on this table.
    I was able to create a Report, but not a Form.
    I need to create a Form, which would return updated string to the page item.
    How can I solve this please?

    Hello Gentlemen,
    I have created a Tabular Form, based on APEX_ITEM API, as you suggested, here is the code below:
    SELECT apex_item.checkbox (30,
                               CATALOG_ID,
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f30_' || LPAD (ROWNUM, 4, '0')
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || LPAD (ROWNUM, 4, '0')
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || LPAD (ROWNUM, 4, '0')
                          ) DESCRIPTION
      FROM V_SYSTEM_CATALOGS_PR
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P180_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1however, the update process doe not work on that form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Can you please see what's wrong with the code?
    Also, I tried to set a temp. item with the value, to see if the process returns something, like that:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
         :p18_temp := lc_string;
    END;and it did not work.
    Also, it is the second Tabular Form on this page. The first one is created using wizard, and it works perfect, with the same update process:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*01*.COUNT
      LOOP
          lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    May be this is causing a problem?
    But still, the first form works fine!?

Maybe you are looking for

  • Problems with External Monitor In XP

    Ok, I've got a huge problem with XP on Bootcamp. I've recently got a Samsung TV which I can use as an external monitor. This works absolutely fine when I'm using OSX, recognizes the TV and can use it as a second screen. When I try to use the same mon

  • Can I make a web link for Imported PDF forms?

    I imported a PDF form onto formscentral.  When I click the distribute tab I do not get the same options as if I created the form on formscentral.  Can I create a web link for my imported PDF form?

  • Street and house number not showing for few customers in search xd03

    Hi All, While trying to search for a customer number in XD03 using "Address Attributes", i get the list of customers which is fine. However for few of those customers, system does not show the street name or the house number in the initial search res

  • Security issue iPhone 6

    I am using iPhone 6 with the latest iOS version. I recently played with "Invert Colors" and "Greyscale" options in Settings/General and when I finished I noticed that returning to my home screen the colors of the icons were a bit fuzzy. When I swiped

  • LE8 not opening most recent project

    I've encountered this problem in the past few weeks - possibly after I installed SL. When I close a project and quit LE, and then re-open it, LE shows me the "New..." screen. Also, the "Recent Projects" tab in the "File" menu is no longer there. Any