Combo box and Check box..help with code please?

Here is my problem...i have a list of check boxes and according to which one is checked, i need combo boxes to populate different choices.
as an easy example im only using 2 check boxes and two combo boxes.
the check boxes are named Choice 1or2 with export values of 1 and 2
the Combo Boxes are named List A and List B..
both containing options that say you checked box 1 and you checked box 2
any help would be greatly appreciated

Implode wrote:
"Help with code please."
In the future, please use a meaningful subject. Given that you're posting here, it's kind of a given that you're looking for help with the code. The whole point of the subject is to give people a high level idea of what KIND of help with what KIND of code you need, so they can decide if they're interested and qualified to help.
Exception in thread "main" java.lang.NumberFormatException: For input string: "fgg"
     at java.lang.NumberFormatException.forInputString(Unknown Source)
     at java.lang.Integer.parseInt(Unknown Source)
     at java.lang.Integer.parseInt(Unknown Source)
     at assignment1.Game.Start(Game.java:120)
     at assignment1.RunGame.main(RunGame.java:18)This error message is telling you exactly what's wrong. At line 120 of Game.java, in the Start method (which should start with lowercase "s" to follow conventions, by the way), you're calling Integer.parseInt, but "fgg" is not a valid int.

Similar Messages

  • Creating List box and check box in structure

    Hi
    I have to include List box(Drop down) of lenght 20 and check box in a screen area.
    The fields on screen are to be transported from structure CI_PROJ in table PROJ.
    How can i Include List box and check box in my structure CI_PROJ.
    Also wat data type is required

    Hi,
             For the list box if you have the data element along with the search help then you can use that dataelement. If you dont have search help at dataelement level then for the structure you have to assign a search help directly. If you dont have data element it self then domain's fixed values will be shown in the drop down. For the check box you have to use a data element with a domain having CHAR and length 1.
    For the list box you will KEY and VALUES. Key is the one that is transfered to your program data and VALUE is the one that is shown to the user. You have to use the data element of your KEY for the list box.
    Regards,
    Sesh

  • Borderless Window help with code please!

    I am using Dreamweaver MX 2004.
    I just cannot get my head round this Java code and would really appreciate some help or direction!
    I want to make a nice little window to show a few lines of text, with a close button or X in the corner (not fussed). I have looked at lots of tutorials and produced numerous codes to use.
    OK, fine I get that bit. My problem comes with placing the codes in the right places. I paste the HEAD portion in the head of the doc. The BODY in the body. BUT is this the doc I am going to call up with my few lines of text in, or the doc I am going to call from? Get what I mean? Also I want to call from a link and haven't had much luck with the line of code I put in the link box. I have tried lots ways and have just managed to confuse myself.
    I am not asking for someone to do it for me and believe me I have tried to work this out for myself but it's not happening for me. Please can someone explain this to me in very plain English as I am obviously some sort of delinquent!
    Thank you

    Yes I am using HTML and Javascript. So Java and Javascript are not the same thing? Right ,OK ,well that has taught me something. Don't suppose you can help me with script on this forum then. Sorry!

  • Newbie - HELP WITH CODE PLEASE!

    Hi guys,
    I have recently started using flash as some of the guys i work with suggested that it would be useful...
    I am currently designing a basic site in AS3 and am stuck with a bit of coding. I keep getting the error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at new_web_v1_fla::MainTimeline/frame141()
    and having searched the net i cant find a solution. Here's my code:
    stop();
    function gohome(e:MouseEvent):void {
        gotoAndStop("home");
    back_btn1.addEventListener(MouseEvent.CLICK, gohome);
    function goit(e:MouseEvent):void {
        gotoAndStop("it");
    it_btn.addEventListener(MouseEvent.CLICK, goit);
    next_btn1.addEventListener(MouseEvent.CLICK, goit);
    back_btn2.addEventListener(MouseEvent.CLICK, goit);
    function goom(e:MouseEvent):void {
        gotoAndStop("om");
    om_btn.addEventListener(MouseEvent.CLICK, goom);
    next_btn2.addEventListener(MouseEvent.CLICK, goom);
    back_btn3.addEventListener(MouseEvent.CLICK, goom);
    function gogd(e:MouseEvent):void {
        gotoAndStop("gd");
    gd_btn.addEventListener(MouseEvent.CLICK, gogd);
    next_btn3.addEventListener(MouseEvent.CLICK, gogd);
    back_btn4.addEventListener(MouseEvent.CLICK, gogd);
    function gocu(e:MouseEvent):void {
        gotoAndStop("cu");
    cu_btn.addEventListener(MouseEvent.CLICK, gocu);
    next_btn4.addEventListener(MouseEvent.CLICK, gocu);
    I hope someone can help me out!
    Thanks
    Jon

    Thanks again for the advice, following your instructions i did use the // infornt of various bits of script.
    My AS now looks like this and the buttons that have the as left in the script without // before them work fine, no errors:
    stop();
    function gohome(e:MouseEvent):void {
        gotoAndStop("home");
    //back_btn1.addEventListener(MouseEvent.CLICK, gohome);
    function goit(e:MouseEvent):void {
        gotoAndStop("it");
    it_btn.addEventListener(MouseEvent.CLICK, goit);
    next_btn1.addEventListener(MouseEvent.CLICK, goit);
    //back_btn2.addEventListener(MouseEvent.CLICK, goit);
    function goom(e:MouseEvent):void {
        gotoAndStop("om");
    om_btn.addEventListener(MouseEvent.CLICK, goom);
    //next_btn2.addEventListener(MouseEvent.CLICK, goom);
    //back_btn3.addEventListener(MouseEvent.CLICK, goom);
    function gogd(e:MouseEvent):void {
        gotoAndStop("gd");
    gd_btn.addEventListener(MouseEvent.CLICK, gogd);
    //next_btn3.addEventListener(MouseEvent.CLICK, gogd);
    //back_btn4.addEventListener(MouseEvent.CLICK, gogd);
    function gocu(e:MouseEvent):void {
        gotoAndStop("cu");
    cu_btn.addEventListener(MouseEvent.CLICK, gocu);
    //next_btn4.addEventListener(MouseEvent.CLICK, gocu);
    the question now is how do i get my other buttons back into the script and get the bloody thing to work?
    ARRRGGGHHH! i am beginning to wish that i had never started! lol
    Thanks
    Jon

  • Some Help with Code please?

    Hi, Basicly i hope someone can help me with a small issue. Im
    new to flash.
    I found code which uses a switchboard to switch between a
    broadcast to the swf player or client side.
    I want to to have a single connection button(at broadcaster
    side) that will cut the switcher and enable the broadcaster to
    connect directly to the client.
    Im not sure what exactly to change or add inthe current mains
    code.
    Please help. Thanks.
    (the switcher has only one button[cut_btn] that switches a
    stream in embedded video [prev_video] which is activated when a
    broadcaster USERID is selected from a datagrid[broadcasterList_dg])
    I want a single connect button in the broadcaster which will
    do what the switch button does but cut out the clicking of a
    datagrid and previewing basicly cut off the switcher
    altogether.

    Doesnt matter ive figured it out.

  • Help with code please

    Hi, I am new to Java and am trying to write a program for a class, but I can't seem to get it to work correctly.
    The program is supposed to ask you to enter "A,B,C, or Q" and be case sensitive. If you enter A,B,C you get a message, if you enter Q it quits the program and if you enter anything else you are supposed to get an error message. It is supposed to keep looping the program until the user enters Q. We are supposed to use Do--While and If-Else loops.
    Thanks in advance
    Code Below that I am using (it at least compiles :) )
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class abcprogram
    public static void main(String[] args)
    String grade;
    grade = JOptionPane.showInputDialog("Please enter A, B, C, or Q. Program is case sensitive");
    do
    if (grade.equals("A"))
    JOptionPane.showInputDialog("Good Work");
    else if (grade.equals("B"))
    JOptionPane.showInputDialog("Try Harder");
    else if (grade.equals("C"))
    JOptionPane.showInputDialog("Did you study?");
    else if (grade.equals("Q"))
    System.exit(0);
    else
    JOptionPane.showInputDialog("You entered a wrong letter!");
    }while (grade != "Q");
    }

    One other thing: the while condidtion should read
    while (!grade.equals("Q"))
    Try it like this;-import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class abc {
    public static void main(String[] args){
    String grade, enter;
    grade = JOptionPane.showInputDialog
    ("Please enter A, B, C, or Q. The program
    he program is case sensitive");
    do {     
    if (grade.equals("A")) grade =
    )) grade = JOptionPane.showInputDialog
    ("Good Work.
    ("Good Work. (Enter Q to
    ("Good Work. (Enter Q to quit)");
    else if (grade.equals("B")) grade =
    )) grade = JOptionPane.showInputDialog
    ("Try
    ("Try Harder.
    ("Try Harder. (enter Q to
    ("Try Harder. (enter Q to quit)");
    else if (grade.equals("C")) grade =
    )) grade = JOptionPane.showInputDialog
    ("Did
    ("Did you
    ("Did you study? (Enter
    ("Did you study? (Enter Q to quit)");
    else if (grade.equals("Q"))
    uals("Q")) System.exit(0);
    else JOptionPane.showInputDialog("You
    ialog("You entered a wrong letter!");
    while (grade != "Q");}

  • Help with code please, it wont run

    Hi all can anyone tell me why this wont run please, thanks
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class SwingApplication extends JFrame
    public SwingApplication()
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setLocation(300,200);
    setSize(700,600);
    JButton answerButton = new JButton("Answer");
    JButton submit = new JButton("Submit");
    JButton button = new JButton("Next Question");
    JButton NextRecord = new JButton("Next Record");
    JTextField answerText = new JTextField("");
    JTextArea QuestionArea = new JTextArea("QuestionArea");
    JPanel pane = new JPanel();
    JLabel label1 = new JLabel ("Answer the following question");
    JLabel mouseLabel = new JLabel();
    JLabel lblpic1 = new JLabel();
         lblpic1.setIcon(new ImageIcon("couple.jpg") );
    submit.setToolTipText("Click to get solution");
    pane.add(label1);
    pane.add(button);
    pane.add(answerText);
    pane.add(answerButton);
    pane.add(submit);
    pane.add(NextRecord);
    getContentPane().add(pane,BorderLayout.SOUTH);
    getContentPane().add(label1,BorderLayout.NORTH);
    getContentPane().add(lblpic1,BorderLayout.CENTER);
    getContentPane().add(QuestionArea, BorderLayout.WEST);
    public void mouseMoved(MouseEvent e)
    mouseLabel.add("x = " + e.getX() + ", y = " + e.getY());
    public static void main(String[] args)
         new SwingApplication().setVisible(true);
    }

    this compiles, anyway:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class SwingApplication extends JFrame
       JButton answerButton = new JButton("Answer");
       JButton submit = new JButton("Submit");
       JButton button = new JButton("Next Question");
       JButton NextRecord = new JButton("Next Record");
       JTextField answerText = new JTextField("");
       JTextArea QuestionArea = new JTextArea("QuestionArea");
       JPanel pane = new JPanel();
       JLabel label1 = new JLabel ("Answer the following question");
       JLabel mouseLabel = new JLabel();
       JLabel lblpic1 = new JLabel();
       public SwingApplication()
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setLocation(300,200);
          setSize(700,600);
          lblpic1.setIcon(new ImageIcon("couple.jpg") );
          submit.setToolTipText("Click to get solution");
          pane.add(label1);
          pane.add(button);
          pane.add(answerText);
          pane.add(answerButton);
          pane.add(submit);
          pane.add(NextRecord);
          getContentPane().add(pane,BorderLayout.SOUTH);
          getContentPane().add(label1,BorderLayout.NORTH);
          getContentPane().add(lblpic1,BorderLayout.CENTER);
          getContentPane().add(QuestionArea, BorderLayout.WEST);
       public void mouseMoved(MouseEvent e)
          mouseLabel.setText("x = " + e.getX() + ", y = " + e.getY());
       public static void main(String[] args)
          new SwingApplication().setVisible(true);
    }Learn about coding standards and styles. Yours is awful.
    %

  • Turkish Character and Check Box "?" Problem in XML Publisher

    In aplication and XML Publisher I must use Turkish Characters e.g. 'ş','ı','ğ','ç','ö' and check boxes. In html preview there is no problem, I can see all of them correctly. Hovewer in PDF preview in XML Publisher and also PDF output in Oracle Application all these Turkish Characters and Check Boxes looks like question mark (?). How can I solve this problem ?
    Thanks for helps....

    Hi Tim,
    Related to Special Italian characters, when I try with "Courier New" font with static data,the XML Preview display those characters.But when those chars come from XML source file,they get vanished.I tried two cases:
    Case1 ) IN EBS,I have attached courbi.ttf(font file) to the template manager(followed as per instructions in Font mapping section in User Guide).
    When I try running the report ,its getting completed with Warning.
    Case 2) I have also modified xdo.cfg ( as per Doc ID:400755.1 www.metalink.oracle.com)-
    In both cases ,I am not acheving the desired results.
    Please let me know where I am going wrong.
    Thanks and Regards,
    Kaveri

  • Icons and check boxes in report output ?

    i want to display output with icons, and symbols (like Telephone) and check boxes in output of a report ?
    how pzzz anybody send the example ?

    Hi,
    We can use in alv output icons and check boxes
             ICON(1)        TYPE C,        " as icon
             SYMBOL(1)      TYPE C,        " as symbol
             CHECKBOX(1)    TYPE C,        " as checkbox
    in field catolog we can use these fields and you have to assign like remaing fields how you are using like that only.  If you know Icon function code or symbol you put there,  I think it may works.  
    Thanks
    Ganesh

  • Captivate 8, knowledge check radio buttons and check boxes not diplaying correctly in HTML5

    Hello. I am working in Cp 8 on a pc (Win 7, 64-bit) and publishing in HTML5, SCORM 2004, 3rd ed. My issue is with knowledge checks. In preview they look fine, but when published, the radio buttons and check boxes are oversized and do not appear as they should. Additionally, the rollover highlight that covers the distracters is skewed and does not cover all the text in cases of long answer choices. When published as a SWF, there are no issues but project requirements are for HTML5 output only. Help?

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Interactive fields and check boxes don't stay in tab order

    Hi everyone. I'm creating a census form for my parish which contains questions and check boxes. I've laid out the first section of this form (called Household Member 1), then gone back and added all the text fields / check boxes in the order in which I want the user to be able to tab through the form. When I open the Tab Order dialogue box to make sure the user will be able to tab through the form correctly, all the fields / check boxes are in the correct order. Now I need the exact same sections repeated... Household Member 2, Household Member 3, etc. In total, there will be 7 sections on the form that request the exact same information. So after I get the first section the way I want it, I copy and paste, or drag and duplicate the section with all it's fields onto the next page. However, when I check the Tab Order on this subsequent sections, all of my check boxes have moved to the end of the list, requiring me to have to manually move each check box back into its correct position in the section. This happens every time I duplicate the section... I have to manually put the tabs in their correct order. I tried duplicating the entire page rather than just duplicating the section, and the same thing happens. These fixes are tedious to say the least. Any thoughts about how to fix this would be appreciated.
    I'm using CS6 on a Mac with OS 10.8.3

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • When i plug in my apple tv i get an apple tv box and a blue circle with a music note  in it.

    When I plug in my apple tv I get an apple tv box and a blue cirlce with a music note on it.  and it wont move from this point. Can anyone please help. thank you

    The device is in recovery mode.
    Connect it to a computer running iTunes and restore.

  • Saved text fields and check-boxes empty when 3D window activates

    I've created Text Fields and Check-boxes in a pdf template, using LiveCycle Designer.
    I create the 3D work in Reviewer, and use the pdf template during Export to 3D pdf.
    Using 'Extend Features in Adobe Reader' the user can fill in the text fields, and click the check-boxes then save them with the pdf  - just using Reader.
    So far this is great!
    The problem comes when the pdf is opened again and the 3D window (A3DR_3DFrame) activated.
    All the completed fields empty!
    This is not great at all!
    I've did some tests and found that the filelds only clear if I include the Configs selection list box with the special name 'A3DR_Configs' in the template pdf. (A3DR_Configs lists the Configs stored in the 3D Reviewer file and the user can select the config from that list).
    This is unfortunate, as the A3DR_Configs window is useful since it indicates to the user which 3D config is currently being viewed (ie the name of the current config stays highlighted).
    Is this a bug that can be fixed or is there a workaround?
    thanks,
    Ian

    Would you mind to post your commenton the the approriated Adobe forum page ?
    This one is dedicated to Acrobat 3D
    The correct forum page for Designer is:
    http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es
    Thanks in advance
    William

  • Step by step process to add Radio Buttons and Check boxes in a view

    Hi,
    Could somone give me the steo by step process for adding the Radio Buttons and Check boxes in a view.
    Regards
    Hrudaya Raju

    https://www.sdn.sap.com/irj/sdn/articles-topic?rid=/webcontent/uuid/7082f9fc-070d-2a10-88a2-a82b12cea93c
    https://www.sdn.sap.com/irj/sdn/webdynpro-elearning
    https://help.sap.com/javadocs/NW04S/current/wd/index.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDCheckBox.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDCheckBoxGroup.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDRadioButtonGroupByIndex.html
    https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDRadioButtonGroupByKey.html
    Armin

  • Deleted messages from in box and sent box do not appear in trash

    For years deleted messages from my in box and sent box appeared in the trash where I would hold them for a week or two just in case I had to retrieve a message I had deleted. About 6 months ago deleted messages stopped showing up in the trash. What do I do to get deleted messages to once again appear in the trash? I'm no computer geek... please be gentle with any suggestions. Thank You.
    Ron Mabey

    While trying to find a solution, I am discovering my mail problem is much deeper than just messages not appearing in the "Sent" mailbox.  I have found some of them appearing in the "Trash" mailbox and some appearing there mulitple times, often with my account name in the "TO" field.  I'm also finding some unread mail there that should be in the "Junk" mailbox.  So it would appear there are many problems with ISO 7 and mail.  I have tried deleting and restablishing the account and two complete iPhone restores.  Neither helped. What is the biggest puzzle is that on my second iPhone, the one that upgraded without an error, mail is working perfectly well.  Has anyone found a solution to any mail problems on ISO 7 devices?  If so, please reply.  

Maybe you are looking for

  • My iphoto says that my version is not the latest version so I can't use it.

    I had to partition my hard drive and to do that I had to reinstall the hard drive because the boot camp was not working properly. I backed up all of my stuff however, I do not think I used the time machine because I have had to go back through and re

  • Microsoft Wireless Laser Mouse 5000

    I unwrapped a new MS Wireless Laser Mouse 5000. It appears to have a plastic wrap on the top. Like the cling wrap on some electronic items. It doesn't seem to want to come off. The sides are the same texture as other MS mice. Anyone else seen this pl

  • Olympus Raw files

    Need Help. I've purchased a new Olympus E 620 camera and have the Ps /Cs3 design suite, now 18months old . I am unable to import camera raw images via bridge or directly into Ps 3 using any of the camera Raw 5.4 or DNG plug-ins. Can I purchase an upg

  • Send object to background?!?

    How do I send an object/graphic to the background so that all of my text will be visable? Everytime I select the graphic, the arrange buttons become active but they do not send it behind the text. It does nothing. The edge of the graphic is covering

  • File transfer from client to AS

    hi, I want to transfer a text file from my c:\text.txt to application server c:\files\files.txt. Hw can I achieve this using oracle forms webutil file transfer? becasue when i read the file using client_text_io it takes a lot of time. thanks and rega