Help debug the program

i have write an java program that come out with this error, how to solve it?
postageApplet.java:5: postageApplet should be declared abstract; it does not
define itemStateChanged(java.awt.event.ItemEvent) in postageApplet
public class postageApplet extends Applet implements ItemListener,ActionListener
^
what does it mean by abstract here?

You said the class implements ItemListener but you have not defined the methods for that interface. Abstract classes can have abstract methods, or methods that have a prototype but are not defined. If you made the class abstract it would compile because the methods for the interface would be considered abstract.
To fix the problem implement the methods for the interfaces you are using.

Similar Messages

  • How to debug the program in background

    hi
    how to debug the program in background

    Hello everyone,
    I often debug my programs via the sm50 transaction and it works very well (especially when you put the dummy loop ^ - ^ ). However we are confronted to a major problem when more than one user tries to debug. We get a message saying that the maximum number of users in the debugging mode has been reached!! Thus we each have to wait for our turn to debug our program. It's a real pain.
    We've searched for a parameter to configure the number of users for the debugging mode but in vain
    Has anyone else had this kind of problem? If yes, what do I need to do to correct it?
    Any suggestion would be helpful as I am new to BW.
    Thank you beforehand.
    Regards,
    Dimple

  • How to use the created search helps in the program?

    Hi Everyone,
    I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
    How to use the Search help in the programs, which is created through SE11
    Subbu.

    Hi,
    In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
    Eg.
    report abc.
    parameters : a(10) type c matchcode object ZBELNR.
    Hope this helps.
    regards,
    amit m.

  • Please help find the program

    Please help find the program to block unwanted number, call and SMS, that not all block number ,but  the number on which you want to.

    Which part of "The 5310 is just a java phone that cannot support applications like this." did you not understand?
    If you want to achieve any form of blocking at all, it won't be with that phone. Your operator may be able to help by putting a block in place on their end, though, but I doubt it.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Debugging the program that will get triggered for a particular output type

    Hi all,
             I have one program,which will get triggered when a Sales order of type 'VOR' is created.Whenever 'VOR' order is created it will trigger the 'ZALT' output type.And this output type 'ZALT'has been configured to my program.This output type configuration has been set up by my functional consultant.
    My problem is I created Sales order of type 'VOR'.But I want to debug my program,which has to be triggered because of that 'VOR' sales order type,which in turn triggers 'ZALT' output type and in turn triggers my program.
    My problem is I created Sales order of type 'VOR' by keeping debugging point in my program.But it is not going to my program and simply displaying sales order has been saved.
    So is the outtype has been configured properly?.Do I need to go to my functional consultant?Could anyone explain in this regard?
    Rgds,
    Balaji

    Hi Balaji,
    If possible, try to repeat the output in the output type messages screen of VA02 and change its dipatch time to '1'(Through further data). Now put the break point in the program assigned to output tye 'ZALT'(You can see this in the TNAPR table) and run the program RSNAST00 through SE38. The program will stop at the break point.
    If its not possible to repeat the output and if you want to check it the first time the output type is processed, ask the functional consultant to change the dispatch time in the condition record that is being retrieved for proposing the output type to '1'. Now run RSNAST00. The program will stop at the breakpoint.
    Thanks,
    Vinay

  • Help, make the program start over

    Hi!
    I want to make this program to start over, an something is wrong, but I can not figure it out, this is new to me. the program is in swedish, but I will try to explaine the functions.
    If you type in zero (0) the program will halt and ask for a value greater then zero. However when you type in a greater value, it will never do the actual calculation. If you from the begining type in a greater value it will do the math. Can anyone help me to correct this.
    Plattform: mac and eclipse, with latest updates.
    Java code:
    import static javax.swing.JOptionPane.*;
    public class sf?r {
         public static void main (String[] arg) {
         String indata;
         indata = showInputDialog (null, "Ange radien i sf?ren du vill r?kna ut Volymen och Arean");
         double radien = Double.parseDouble (indata);
    int three = 3;
    int four = 4;
    double pi = 3.14;
    double volym = four*pi*radien*radien*radien/three;
    double area = four*pi*radien*radien;
    while (radien <=0) {
         indata = showInputDialog (null, "Felaktigt v?rde, Ange ett v?rde st?rre ?n 0");
         radien = Double.parseDouble (indata);
    showMessageDialog (null, "Volymen ?r " + volym + " Arean ?r " + area);
    System.exit (0);
    Martin

       while (radien <=0) {
         indata = showInputDialog (null, "Felaktigt v?rde, Ange ett v?rde st?rre ?n 0");
         radien = Double.parseDouble (indata);
    } this test for 0 is after you do the calculations:
      double volym = four*pi*radien*radien*radien/three;
    double area = four*pi*radien*radien; you need to test for 0 before the calculations.
    just FYI, when posting code, there are "CODE" tags (look at the top of the posting window). It'll make the code much easier to read
    Edited by: redfalconf35 on Nov 21, 2007 9:18 AM

  • DEBUG THE PROGRAM

    Hi Friends,
        Could u guide me how to set breakpoint and debug the  module pool, function pool, Interface pool and class pool program ?
    Thx in Adv.
    bapibobby

    Hi Bobby,
    Create a TCODE fro module pool program. Place Breakpoint anywhere in the code n try to run the tcode.It takes u into the debug mode.
    All the others function pool n so on are debugged just as u run report .
    Keep a break point n try to debug it.
    Or else use /h in tcode to debug it from starting.
    Regards,
    Priyanka.

  • Plese help debug that program

    Please help me debugthis project... I am still working on it but don't see yet why it did not compile (with Netbeans IDE).
    It is a Java applet that allows the user to pick 3 dinner menu items
    from a choice of 3 different groups, choosing only one item from each
    group. The total will change as each selection is made.
    The user shouldn't be able to choose more than one item from the same
    group and the item prices shouldn't be visible to the user.
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    /*Rulx Narcisse
      [email protected]
    public class Menu extends Applet implements ItemListener
    //All the labels of the program are here...
    Label intro=new Label("Dinner Menu");
    Label intro2=new Label("Please select one item from each category, Your total will be display below.");
    Label soups=new Label("Soups---------------");
    Label entree=new Label ("Entrees-------------");
    Label desserts=new Label("Desserts------------");
    Label dinnerPrice=new Label("Dinner Price is $");
    Label point=new Label(".");
    //Creation of Font objects
    Font bigFontIntro=new Font("Arial", Font.REGULAR, 28);
    Font fontIntro2=new Font("Arial", Font.REGULAR, 16);
    Font fontMenuItem=new Font("Arial", Font.BOLT, 14);
    //Creation of the groups for the menu
    CheckboxGroup soupsGrp = new CheckboxGroup();//Soup Group
    Checkbox clamChowder = new Checkbox("Clam Chowder", true, soupsGrp);
    Checkbox vegetableSoup = new Checkbox("Vegetabale Soup", false, soupsGrp);
    Checkbox pepperedChickenBroth = new Checkbox("Peppered Chicken Broth", false, soupsGrp);
    CheckboxGroup entreeGrp = new CheckboxGroup();//Entree Group
    Checkbox chicken = new Checkbox("Chicken", true, entreeGrp);
    Checkbox fish = new Checkbox("Fish", false, entreeGrp);
    Checkbox beef = new Checkbox("Beef", false, entreeGrp);
    CheckboxGroup dessertsGrp = new CheckboxGroup();//Desserts Group
    Checkbox vanillaIceCream = new Checkbox("Vanilla Ice Cream", true, dessertsGrp);
    Checkbox ricePudding = new Checkbox("Rice Pudding", false, dessertsGrp);
    Checkbox cheeseCake = new Checkbox("Cheese Cake", false, dessertsGrp);
    public void init()
    //Font objects are assigned to the Label objects at initialisation
    intro.setFont(bigFontIntro);
    add(intro);
    intro2.setFont(fontIntro2);
    add(intro2);
    soups.setFont(fontMenuItem);
    entree.setFont(fontMenuItem);
    desserts.setFont(fontMenuItem);
    dinnerPrice.setFont(fontMenuItem);
    point.setFont(fontMenuItem);
    //The variable for the prices
    int clamChowderPrice=279, vegetableSoupPrice=299, pepperedChickenBrothPrice=249, chickenPrice=1279, fishPrice=1099, beefPrice=1499, vanillaIceCreamPrice=279, ricePuddingPrice=299, cheeseCakePrice=429, totalPrice=0, cents, dollars;
    add(soups); //The Label object soups is added
    //Menu item for the soup group
    add(clamChowder);
    clamChowder.addItemListener(this);
    add(vegetableSoup);
    vegetableSoup.additemListener(this);
    add(pepperedChickenBroth);
    pepperedChickenBroth.addItemListener(this);
    add(entree);//The Label object entree is added
    //Menu item for the entree group
    add(chicken);
    chicken.addItemListener(this);
    add(fish);
    fish.addItemListener(this);
    add(beef);
    beef.addItemListener(this);
    add(desserts);//The Label object desserts is added
    //Menu item for the desserts group
    add(vanillaIceCream);
    vanillaIceCream.addItemListener(this);
    add(ricePudding);
    ricePudding.addItemListener(this);
    add(cheeseCake);
    cheeseCake.addItemListener(this);
    /*Here is the itemStateChanged method that will be executed
    when user change status of checkboxes of the ItemListeners*/
    public void itemStateChanged(ItemEvent check)
    totalPrice=0;
    //compute for the first group (soup)
    Checkbox soupSelection = soupsGrp.getSelectedCheckedbox();
    if(soupSelection==clamChowder)
    totalPrice +=clamChowderPrice;
    else if(soupSelection==vegetableSoup)
    totalPrice +=vegetalbeSoupPrice;
    else
    totalPrice +=pepperedChickenBrothPrice;
    //compute for the second group (entree)
    Checkbox entreeSelection = entreeGrp.getSelectedCheckedbox();
    if(entreeSelection==chicken)
    totalPrice +=chickenPrice;
    else if(entreeSelection==fish)
    totalPrice +=fishPrice;
    else
    totalPrice +=beefPrice;
    //compute for the third group (desserts)
    Checkbox dessertsSelection = dessertsGrp.getSelectedCheckedbox();
    if(dessertsSelection==vanillaIceCream)
    totalPrice +=vanillaPrice;
    else if(dessertsSelection==ricePudding)
    totalPrice +=ricePuddingPrice;
    else
    totalPrice +=cheeseCakePrice;
    cents = totalPrice MOD 100;
    repaint();//to display new figures on the screen.
    add(dinnerPrice);//The Label object dinnerprice is added
    add(totalprice);
    add(point);
    add(cents);
    }

    Try this....this still needs a LOT A LOT A LOT of work.
    But at least it runs and does what I think it should.
    import java.applet.Applet;
    import java.awt.Checkbox;
    import java.awt.CheckboxGroup;
    import java.awt.Font;
    import java.awt.Label;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    /*Rulx Narcisse
    [email protected]
    public class Morgen extends Applet implements ItemListener
        int clamChowderPrice = 279;
        int vegetableSoupPrice = 299;
        int pepperedChickenBrothPrice = 249;
        int chickenPrice = 1279;
        int fishPrice = 1099;
        int beefPrice = 1499;
        int vanillaIceCreamPrice = 279;
        int ricePuddingPrice = 299;
        int cheeseCakePrice = 429;
        int totalPrice = 0;
        int cents;
        int dollars;
        //All the labels of the program are here...
        Label intro = new Label( "Dinner Menu" );
        Label intro2 = new Label(
            "Please select one item from each category, Your total will be display below." );
        Label soups = new Label( "Soups---------------" );
        Label entree = new Label( "Entrees-------------" );
        Label desserts = new Label( "Desserts------------" );
        Label dinnerPrice = new Label( "Dinner Price is $" );
        Label point = new Label( "." );
        Label price = new Label( "." );
        //Creation of Font objects
        Font bigFontIntro = new Font( "Arial", Font.PLAIN, 28 );
        Font fontIntro2 = new Font( "Arial", Font.PLAIN, 16 );
        Font fontMenuItem = new Font( "Arial", Font.BOLD, 14 );
        //Creation of the groups for the menu
        CheckboxGroup soupsGrp = new CheckboxGroup();//Soup Group
        Checkbox clamChowder = new Checkbox( "Clam Chowder", true, soupsGrp );
        Checkbox vegetableSoup = new Checkbox( "Vegetabale Soup", false, soupsGrp );
        Checkbox pepperedChickenBroth = new Checkbox( "Peppered Chicken Broth",
            false, soupsGrp );
        CheckboxGroup entreeGrp = new CheckboxGroup();//Entree Group
        Checkbox chicken = new Checkbox( "Chicken", true, entreeGrp );
        Checkbox fish = new Checkbox( "Fish", false, entreeGrp );
        Checkbox beef = new Checkbox( "Beef", false, entreeGrp );
        CheckboxGroup dessertsGrp = new CheckboxGroup();//Desserts Group
        Checkbox vanillaIceCream = new Checkbox( "Vanilla Ice Cream", true,
            dessertsGrp );
        Checkbox ricePudding = new Checkbox( "Rice Pudding", false, dessertsGrp );
        Checkbox cheeseCake = new Checkbox( "Cheese Cake", false, dessertsGrp );
        public void init()
            //Font objects are assigned to the Label objects at initialisation
            intro.setFont( bigFontIntro );
            add( intro );
            intro2.setFont( fontIntro2 );
            add( intro2 );
            soups.setFont( fontMenuItem );
            entree.setFont( fontMenuItem );
            desserts.setFont( fontMenuItem );
            dinnerPrice.setFont( fontMenuItem );
            point.setFont( fontMenuItem );
            //The variable for the prices
            add( soups ); //The Label object soups is added
            //Menu item for the soup group
            add( clamChowder );
            clamChowder.addItemListener( this );
            add( vegetableSoup );
            vegetableSoup.addItemListener( this );
            add( pepperedChickenBroth );
            pepperedChickenBroth.addItemListener( this );
            add( entree );//The Label object entree is added
            //Menu item for the entree group
            add( chicken );
            chicken.addItemListener( this );
            add( fish );
            fish.addItemListener( this );
            add( beef );
            beef.addItemListener( this );
            add( desserts );//The Label object desserts is added
            //Menu item for the desserts group
            add( vanillaIceCream );
            vanillaIceCream.addItemListener( this );
            add( ricePudding );
            ricePudding.addItemListener( this );
            add( cheeseCake );
            cheeseCake.addItemListener( this );
            add( price );
        /*Here is the itemStateChanged method that will be executed
         when user change status of checkboxes of the ItemListeners*/
        public void itemStateChanged(ItemEvent check)
            int totalPrice = 0;
            //compute for the first group (soup)
            Checkbox soupSelection = soupsGrp.getSelectedCheckbox();
            if ( soupSelection == clamChowder )
                totalPrice += clamChowderPrice;
            else if ( soupSelection == vegetableSoup )
                totalPrice += vegetableSoupPrice;
            else
                totalPrice += pepperedChickenBrothPrice;
            //compute for the second group (entree)
            Checkbox entreeSelection = entreeGrp.getSelectedCheckbox();
            if ( entreeSelection == chicken )
                totalPrice += chickenPrice;
            else if ( entreeSelection == fish )
                totalPrice += fishPrice;
            else
                totalPrice += beefPrice;
            //compute for the third group (desserts)
            Checkbox dessertsSelection = dessertsGrp.getSelectedCheckbox();
            if ( dessertsSelection == vanillaIceCream )
                totalPrice += vanillaIceCreamPrice;
            else if ( dessertsSelection == ricePudding )
                totalPrice += ricePuddingPrice;
            else
                totalPrice += cheeseCakePrice;
            cents = totalPrice % 100;
            price.setText( totalPrice + "" );
            repaint();//to display new figures on the screen.
    }

  • HELP TO DEBUG THE PROGRAM OF AGILENT6600X

    Hello,
              First let me simply introduce this program.
              The horizental toggle switch is used to set the default value to the power supply.
              The vertical slide switch is used to read the value from the power supply(after board boot up).
              The phenomenon is when i run the vi, always pop up the indicate message"the 9v PS ID can not be recognized". The problem is why always the problem happens on the 9v PS.
              I have to say this program is not so good, if anyone can give me some guidence, I'll be very appreciate. Thanks.
    Attachments:
    PS.vi ‏44 KB

    Good morning,
    Without the Agilent drivers (vi's), I could not see much about the code.   Do you only get this message with the 9V PS?
    Have you tried communicating with the instrument using MAX (Measurement & Automation Explorer)?  That should be the first step to make sure that communication can be achieved.  You could try a basic query like " *IDN? " and see what it returns.  It's under "Communicate With Instrument", when you look at the "Devices" list.
    Also try opening the actual Agilent VI's and monitor what is being sent over the GPIB. Compare it with the others that work.  You can copy the faulty command to MAX and communicate with the instrument using the command. 
    Hope this helps,
    RayR

  • Help in the programming of the Hc-sr04 ultrasonic sensor

    Hi im new in labview, i have to connect the HC-SR04 ultrasonic sensor to the SensorDAQ, and i have to measure the distance betwen the sensor and an objetc, i have done a little program but the distance is very erratic, and i have seen an example but i dont underestand all the code in the example, so i dont know how to change it to do what i need, later today i will put the to vi's, the one i did and the one i have found, my code is very short adn the code i found i terrible long.
    If my program is bad, can you tellme where adn why? or is not the code the sensor requieres please tell me.
    If the example i add the code i really need can you explain me all the parts, and how to change it in order to function with the sensordaq.
    Can you tell me how to wire the sensor to the sensor daq? i will add my connection diagram and photos so you can help me.
    I have to make a tank sensor with the data of this sensor, and control a stepper motor with it, if the level is less than 20% use the stepper to open a valve, is its gratter than 80% close the stepper.
    Other thing i need is when the level of the tank is gratter than 80% another mottor, non steper have to be turned on and must be running for a set time. when this set time is over a signal of "empty the tank" must be displayed.
    I think is a lot of help what i need, i have wired the stepper mottor(bipolar 4 wires motor)  and i make it run, i dont know how to make it run in either direction so I have to fix this.
    I'm going to add photos and my vis later today, please helpme, the most important thing is to make the sensor to work.
    THANKS FOR THE HELP.
    Solved!
    Go to Solution.

    Hi nmerzul.
    There are two ways to perform DAQ tasks. One is with the DAQ assistant (the one that you are using) and the low level steps (the one of the example). Basically they both work the same. The difference is that you can configure all the settings in one step with the DAQ Assistant and with the other method you can do it step by step. I modified the example with a lot of notes so you can understand the functionality of each step.
    Now, to help you with the wiring of the sensor and the DAQ, could you tell me what DAQ you are using? 
    Thanks
    Francisco S.
    National Instruments
    Field Engineer
    www.ni.com/soporte
    Attachments:
    distance sensor counter (notes).vi ‏89 KB

  • Help with the program not responding error

    I just joined the CC and in Illustrator I keep getting "program not responding" please advise,
    Eleanor

    Do you have Tahoma and Verdana fonts enabled on your system?
    Also see this other relevant link:
    http://forums.adobe.com/thread/1309484
    Nancy O.

  • Help debugging my program, please

    --------------------Configuration: <Default>--------------------
    C:\Java\Java Docs\DeleteSpaces.java:18: ';' expected
    ^
    1 error
    Process completed.
    import java.io.*;
    public class DeleteSpaces
         public static void main (String[] args)
              FileReader inputFile = new File("Omerta.txt");
              FileReader outputFile = new File("omertaEdited.txt");
              FileReader in = new FileReader(inputFile);
              FileWriter out = new FileWriter(outputFile);
         public static void Spaces (String[] args)
         try     
              BufferedReader In = new BufferedReader(new FileReader("Omerta.txt"));
              BufferedWriter Out = new BufferedWriter(new FileWriter("OmertaEdited.txt"));
              String str;
         while ((str=in.readLine()) != null)
              while(st.indexOf("  ") > -1)
                   line = line.replaceAll("  ", " ");
                   out.println(line);
         in.close();
         out.close();
              catch (IOException e)
              System.err.println(e);
              System.exit(1);
    }now ive been told that the "try" is confusing the compiler......but what im not sure is how i would fix this........and please give me any other tips as to fixing this up

    Hi,
    I hv two suggestions,
    from where u hv called the function spaces from the main() ?,of course u didnt
    put a open brace after
    public static void Spaces (String[] args)like
    public static void Spaces (String[] args)  { Regards
    -John-

  • Debuging the ABAP Programs

    Generally how does the ABAPer do debug the programs in real time environment, and how to check the the performance of the programs.

    Hi,
    there are few methods for the same..
    one using a break point(stop button in editor),
    using tcode /h or going to utilities - abap debugger.
    performance you can check using tcode se30.
    if you want to learn debugging for all the objects go through these links..
    <b>and do reward all the helpful answers for all your questions</b>
    ABAP DEBUGGING
    http://help.sap.com/saphelp_webas620/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9cbb7716-0a01-0010-58b1-a2ddd8361ac0
    Debug Program scheduled Background
    Re: Debugging Report which is scheduled in background
    regards,
    pankaj singh

  • App. Error - Click on OK to terminate the program Click CANCEL to debug ???

    this is the wondow that pops up
    Application Error
    The exception Privileged instruction.
    (0xc0000096) occurred in the application at location 0x1004ece0.
    Click on OK to terminate the program
    Click on CANCEL to debug the program
    Anyone seen this window that pops up randomly??? The cancel button just freezes iTunes and the OK button just closes it immediately. Anything info on this would be amazing. I'm not sure if its my computer's fault or what.
    Uninstalling and re-installing hasn't worked.
    Thanks...

    Ok I saw on a previous post to look for Add-ins and plug ins but I checked to make sure and I do not have any.
    The other window that comes up says iTunes has encountered a problem and needs to be closed immediately

  • Dbx to debug JNI programs stops on SIGUSR2

    Hello,
    I am debugging a C program that uses the Java Virtual Machine throught the JNI interface.
    When using dbx to debug the program, dbx keeps on stopping on SIGUSR2 and SIGSTOP signals that are delivered to the process. I would like to ignore those an concentrate on the code I am debugging. With gdb, I used "handle SIGUSR2 nostop" command to ignore signal handlers.
    Could you please help me find a similar function in Dbx.
    Thank you in advance
    Marwan Khalil

    Hello,
    I am debugging a C program that uses the Java Virtual Machine throught the JNI interface.
    When using dbx to debug the program, dbx keeps on stopping on SIGUSR2 and SIGSTOP signals that are delivered to the process. I would like to ignore those an concentrate on the code I am debugging. With gdb, I used "handle SIGUSR2 nostop" command to ignore signal handlers.
    Could you please help me find a similar function in Dbx.
    Thank you in advance
    Marwan Khalil

Maybe you are looking for

  • Why can't my PC open my Premiere CC 2014 file created on a MAC? (don't have permission/unknown error)

    I've been using my personal computer at work for a month. Today I received my work PC. When I try and open my project files on the PC it say an unknown error has occurred. When I use the open function it says I don't have permission. What's up with t

  • Audio/Video Switch Question

    Heres the scenerio: I have A JVC Wide Screen Projector that has (On the Back) component plugs and regular video plugs (Red, White, and yellow). I want to plug in the Apple tv to the TV, but that means I would be plugging the audio cables into another

  • SSH from work machine to home machine is very slow to connect

    If I try to SSH to my home computer (using its domain name or IP) from any computer on my office's network I get very long delays (using the -vv flag to debug). But if I SSH to my home machine from a computer outside of my office's network my home ma

  • Unzip 10.6.8

    How do I unzip material (jpgs) from a zipped downloaded file in OS 10.6.8? When I use Archive Utility, the system just creates another zipped folder.

  • Barcode in SmartForm - how to creat SmartStyle

    Hello, I have created a new barcode using SE73.  I then included it in a SmartStyle and used that SmartStyle in my SmartForm.  However the style doesn't seem to be working because it still displays as the delivery number and not a barcode (when print