Applet not running properly.....!

i am facing problem in running the applet
i first created 2 java files (Paddle.java n Main.java). in Main.java i have created Paddle.java object. The o/p of the pgm should display a rectangle with red color.
first time i got it.........then i changed the color to blue, compiled it, n when i run it again it gives the rectangle with the same red color...
compiled it many times........even then am getting the same red rectangle....
how to get the correct o/p......?

Well, obviously you're doing it wrong. It's impossible to say how given your description of the problem.
You're probably setting the color in the wrong place, or setting it and then resetting it later. But who knows.

Similar Messages

  • FOR ALL ENTRIES stmnt. in SELECT query is not running properly

    Hello experts,
              In my report program, I write one query on table BSIS.
             Internal table declaration -             
           DATA : BEGIN OF DLC_BSIS OCCURS 0,
                            BUKRS LIKE BSIS-BUKRS,
                            GJAHR LIKE BSIS-GJAHR,
                            BELNR LIKE BSIS-BELNR,  
                            SHKZG LIKE BSIS-SHKZG,
                            BSCHL LIKE BSIS-BSCHL,
                            AUFNR LIKE BSIS-AUFNR,
                            HKONT LIKE BSIS-HKONT,
                            QSSKZ LIKE BSIS-QSSKZ,
                            DMBTR LIKE BSIS-DMBTR,
                       END OF DLC_BSIS.                                                                               
    Query as follows --
             SELECT BUKRS
                           GJAHR
                           BELNR
                           AHKZG
                           BSCHL
                           AUFNR
                           HKONT
                           QSSKZ
                            DMBTR FROM BSIS
                                      INTO TABLE DLC_BSIS
                                     FOR ALL ENTRIES IN IT_BKPF2
                                     WHERE BELNR = IT_BKPF2-BELNR
                                                  AND BUKRS = IT_BKPF2-BUKRS
                                                  AND GJAHR = IT_BKPF2-GJAHR.
    IT_BKPF2 internal table having -- BUKRS - LT01
                                                         BELNR - 6400000061
                                                         GJAHR - 2009.
    And in BSIS database  table  -- 3 entries are there for the above documnet.
    But, in my internal only one entry has come for the same above document.
    I think For all entries stmnt. is not running properly. But Why it's not running properly.??
    What would be the reason..??
    Thanks in advance....!!
    Regards,
    Poonam.

    >
    Poonam Patil wrote:
    > Hello experts,
    >           In my report program, I write one query on table BSIS.
    >
    >          Internal table declaration -             
    >                                            
    >        DATA : BEGIN OF DLC_BSIS OCCURS 0,
    >                         BUKRS LIKE BSIS-BUKRS,
    >                         GJAHR LIKE BSIS-GJAHR,
    >                         BELNR LIKE BSIS-BELNR,  
    >                         SHKZG LIKE BSIS-SHKZG,
    >                         BSCHL LIKE BSIS-BSCHL,
    >                         AUFNR LIKE BSIS-AUFNR,
    >                         HKONT LIKE BSIS-HKONT,
    >                         QSSKZ LIKE BSIS-QSSKZ,
    >                         DMBTR LIKE BSIS-DMBTR,
    >                    END OF DLC_BSIS.                                                                               
    >                           
    >          Query as follows --
    >
    >          SELECT BUKRS
    >                        GJAHR
    >                        BELNR
    >                        AHKZG
    >                        BSCHL
    >                        AUFNR
    >                        HKONT
    >                        QSSKZ
    >                         DMBTR FROM BSIS
    >                                   INTO TABLE DLC_BSIS
    >                                  FOR ALL ENTRIES IN IT_BKPF2
    >                                  WHERE BELNR = IT_BKPF2-BELNR
    >                                               AND BUKRS = IT_BKPF2-BUKRS
    >                                               AND GJAHR = IT_BKPF2-GJAHR.
    >
    > IT_BKPF2 internal table having -- BUKRS - LT01
    >                                                      BELNR - 6400000061
    >                                                      GJAHR - 2009.
    >
    > And in BSIS database  table  -- 3 entries are there for the above documnet.
    >
    > But, in my internal only one entry has come for the same above document.
    >
    > I think For all entries stmnt. is not running properly. But Why it's not running properly.??
    > What would be the reason..??
    >
    >
    > Thanks in advance....!!
    >
    > Regards,
    > Poonam.
    include the buzei field in selection criteria i have faced the same situation earlier.
    always select all the key fields.
    varun

  • Gimp will not run properly

    I just purchased a 24 inch Imac and Gimp will not run properly. I have the latest system updates and firmware. Gimp starts X11 and appears to load, but the only item visible is the Gimp menu, none of the tools. It shows as running in the dock.
    If I try to open a graphic with Gimp, it loads but the graphic is not visible and only the Gimp menu is visible in the menu bar. It shows up as running in the dock.
    It works fine on a G4 quicksilver. I have the latest version 2.2.11
    Thanks,
    Fran
    IMAG INTEL   Mac OS X (10.4)  

    Hello Francis,
    Did Gimp ever load properly? On first load, it should have gone through an installer within X11. Also, I've noticed that my image windows start up hidden. There also may be a bug in which clicking on the Gimp app icon in the dock itself won't bring the windows forward, so you have to use the X11 icon instead. Try using Expose to show all windows in all applications to see if they've opened but sort of "off-screen."
    It could be a bad installation, or it could be that somehow the toolbars and palettes, etc. in Gimp just never appeared. Check to make sure X11 is up to date as well. I'm currently running 1.1.3 with XFree86 4.4.0.

  • I have a copy of Web Premium CS3 which was installed on a Windows Vista PC.  I have a new Windows 7 PC and the installation disc will not run properly.  The installation begins and then asks for the CS3 disc to be inserted.  If I re-insert the CD I just g

    I have a copy of Web Premium CS3 which was installed on a Windows Vista PC.  I have a new Windows 7 PC and the installation disc will not run properly.  The installation begins and then asks for the CS3 disc to be inserted.  If I re-insert the CD I just get a message asking for the disc to be inserted.  any ideas anyone?

    Use the download version:
    Download CS3 products
    Mylenium

  • I have download firefox 4 beta but now in some websites can not open. applet not load properly

    I just download fire 4 beta on my windows vista. Can not open in some websites. the message applet not load properly please reload the page

    Your More system details list doesn't show the Java plugin as installed.
    Update the [[Java]] plugin to the latest version.
    *http://kb.mozillazine.org/Java
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Captivate project not running properly on iPad

    Hello,
    I built a project using Captivate 7.0.  When I published the project, I checked both the SWF and HTML5 boxes so the tutorial would run on an iPad.  However, when I view the tutorial on the iPad, the tutorial does not run properly.  The pages do not advance (even though, in Captivate, I have the slides advancing automatically - not on mouse clicks), all of the bullets on a slide do not appear, and the narration stops in the middle of a slide and does not resume.
    Do you have any suggestions?
    Thank you,
    Sarah

    Hi Joel,
    I removed all bullet animations and re-published the project (I checked the "Force re-publish all the slides").  My tutorial runs on an iPad, without the slides hanging up.  It appears removing the bullet annimations solved that issue.  Thanks for the suggestion.
    However, neither my music introduction on the first slide nor my narration on subsequent slides comes in.  I confirmed I do not have "mute" on and that my volume is up.  Also, I confirmed the sound works by running the tutorial on my desktop. 
    Do you have any ideas?
    Thanks,
    Sarah

  • Vz protect not running properly

    I have the latest version, but it is not running properly (just keeps scanning).
    How can I fix this? Should I uninstall and then reinstall? Is there a charge to do that?

    hello lhill123, maybe that's an issue with hardware acceleration - first please try [[Upgrade your graphics drivers to use hardware acceleration and WebGL|updating your graphics driver]], or in case this doesn't solve the issue or there is no new version available at the moment, start firefox into safemode '''by pressing the shift key while the application is launching''' & disable hardware acceleration in the firefox ''menu ≡ > options > advanced > general'' (that setting will take a restart of the browser to take effect).
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • I have bought a iPhone 4 , yesterday . I heard that iOS 7 is not running properly on iPhone 4 , so I have decided to upgrade it to 6.1.2 . Please help to do this.

    I have bought a iPhone 4 , yesterday . I heard that iOS 7 is not running properly on iPhone 4 , so I have decided to upgrade it to 6.1.2 . Please help to do this.

    YOU CAN'T.
    If you upgrade your phone you can only upgrade to iOS 7 and that is it.  You can only ever update to the lastest available software, which in this case is iOS 7.  You either upgrade to this or not at all because you can't upgrade to anything else.

  • I defined custom action but it is not running properly.

    Hi,
    I defined custom action but it is not running properly.
    I deployed in MII (System Management --> Custom Actions)
    When i use it as an action in a transaction error below generated.
    Errors
    [ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action
    [ERROR]: STEP EXCEPTION (Custom_Action_0) : Item 'Custom_Action_0' is not an Action
    Custom action code is below.
    package com.wipro.action;
    import com.sap.xmii.xacute.actions.ActionReflectionBase;
    import com.sap.xmii.xacute.core.ILog;
    import com.sap.xmii.xacute.core.Transaction;
    @author cemil.bozlagan
    public class CustomAction extends ActionReflectionBase {
        private String strFirstInput;
        private String strSecondInput;
        private String strOutString;
        public CustomAction() {
            strFirstInput = "";
            strSecondInput = "";
            strOutString = "";
        @Override
        public String GetIconPath() {
            return "/com/wipro/action/resources/icons/CustomAction.png";
        @Override
        public void Invoke(Transaction trx, ILog ilog) {
            try {
                strOutString = strFirstInput + strSecondInput;
                // This varaible is defined in ActionReflectionBase class
                _success = true;
            } catch (Exception e) {
                _success = false;
        public String getFirstInput() {
            return strFirstInput;
        public void setFirstInput(String strFirstInput) {
            this.strFirstInput = strFirstInput;
        public String getSecondInput() {
            return strSecondInput;
        public void setSecondInput(String strSecondInput) {
            this.strSecondInput = strSecondInput;
        public String getOutString() {
            return strOutString;
        @Override
        public boolean isConfigurable() {
            return false;
    How can i solve this problem?
    Thanks.

    Hi Cemil,
    Pls check document, I hv sent to your mail.
    May be it helps.
    Regards
    Padma

  • Javascript does not run properly in Firefox

    Firefox does not run javascript properly.
    For example:
    http://vk.com/app2622342_40916334#NEW/comp1427
    Comment form does not run at all in Firefox ( the last version = 20.0.1)
    but runs OK in Opera.
    WHY?
    Mozilla still is HALF-DONE SOFTWARE!!!!!!!
    WHEN YOU DO IT IN A GOOD WAY?

    I have javazcript-enabled = TRUE in my about:config. So your comment did not solve my problem. I noticed that javascript does not run properly in some websites (forms in vk.com) but those forms run OK in OPERA - how can you explain this!?
    And I have no errors in the Web Console (Firefox/Tools > Web Developer).
    I wrote you a link to the page where javascript does not work.
    ( you need to login to vk.com to see that page
    http://vk.com/app2622342_40916334#NEW/comp1427
    )

  • 'Mail" not running properly

    After updating to Lion (10.7.2), "Mail" will not run properly. For each of my accounts, either the incoming or outgoing servers go offline, and while I can access incoming mail (sometimes), outgoing is impossible. I have deleted and reinstalled all of my accounts. Doesn't help.
    Anyone else having issues?

    WHOA!!!!! meant to say "After installing LION...."!!!
    Sorry.....

  • [svn:bz-trunk] 13744: Bug: BLZ-481 - AMFConnection JUnit test do not run properly as part of checkintests on Mac  (and Windows?)

    Revision: 13744
    Revision: 13744
    Author:   [email protected]
    Date:     2010-01-25 01:14:09 -0800 (Mon, 25 Jan 2010)
    Log Message:
    Bug: BLZ-481 - AMFConnection JUnit test do not run properly as part of checkintests on Mac (and Windows?)
    QA: No
    Doc: No
    Checkintests: Pass
    Details:
    -Don't start the server before unit task, unit task already checks if the server is not running and starts the server.
    -Don't stop the server after FlexUnit tests, JUnit tests need the server running, and they will stop the server after they are done.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-481
    Modified Paths:
        blazeds/trunk/build.xml
        blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml

    Tony,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Why is a simple Java applet not diplaying properly in its window bounds?

    Hello, I am having difficulty displaying applets on the Mac. Here is one of the simplest applets copied exactly from the Sun java website. This applet runs fine on PCs, unfortunately, on my sister's Mac, it does not display properly. It looks like the browser reserves the proper cutout window for the applet. But then the applet does not display in that window, instead, it paints itself shifted away from that window, even covering browser's borders and toolbars.
    She is using Leopard, the Mac was bought new last year, and the browser is Firefox. She is using java 1.4, I don't want to switch that, because that is what is by default running there. Most internet users would not know to switch their java version if an applet does not show properly. So it has to show properly for any java version that may be default on a Mac.
    Here is the SSCCE:
    file HelloWorld.java:
    import javax.swing.JApplet;
    import java.awt.Graphics;
    public class HelloWorld extends JApplet {
    public void paint(Graphics g) {
    g.drawRect(0, 0,
    getSize().width - 1,
    getSize().height - 1);
    g.drawString("Hello world!", 5, 15);
    file HelloWorld.html:
    <APPLET CODE=HelloWorld.class WIDTH=850 HEIGHT=730 >
    </APPLET>

    You'll most likely get a cogent response posting to the Unix forum under OS X Technologies.

  • Applet not running in the broweser.

    Hello everyone I have a problem that is bugging me.
    in my pc at home i have operating system window xp i have oracle9i installed and also java and j2ee and version of internet explorer is 6.0
    .there is no proble running html pages but the problem is the applet are not running in the broweser even the java demo from sun is not running
    .when i try to run the applet a dialog box appears and shows this
    " jvm not find Download now" i do not have internet connection.
    and one more thing i want to down load or save file in webserver
    i donot know whether my pc is having default webserver but when i type this "http://localhost" a page of oracle is display listing jserver ,appache server and so many thing.
    do i have a webserver that can be used by me for java program(adv java) or i have to get one .as i told you there is java1.3 and j2ee1_2_3
    something like this i donot remember is there no default webserver along with them .how can i use them for my java programe .
    let me remind you the applet not getting downloaded in the browser is a bigger problem for me.
    i appreciate your concern please help me out
    have a nice day bye.

    1} The applet is not getting loaded in my internet
    browser.Error messages? Are you sure your setup is correct? Search. "Applet not working" usually has only a small range of reasons, all well-covered here.
    2}why the oracle page is displayed when i type
    "http://localhost".
    Maybe because you have some Oracle webserver?
    3} Do i have any default webbrowser in my system.Yes. The one that opens when you double-click on an HTML page.
    >
    thanks.

  • Repaint not running properly when called in another class/actionlistener

    I've got this code that is suppose to call and create a JPanel
    (The frame and timeframe variables were declared statically at the beginning of the class)
    When I call the runGame1 method from the main, the code runs fine and my JPanel is being repainted with the time and pictures, but when I can this runGame1 method from an ActionListener/actionPerformed method, it doesn't repaint properly and the while loop is running properly but I think there isn't enough resources for the method to actually paint my JFrame?? The JFrames open but nothing is painted.
    Anyone know what I can do?
    More Info........................
    Basically my program contains a title JFrame and 2 game JFrames, I want to be able to call the game JFrames from the title JFrames and go back and forth from the JPanels.
    The title JFrame consists of just components such as JLabels and JButtons.
    One of the game JFrames consists of JLabels, JTextFields and JButtons, basically the method generates random numbers and an arithmetic operation that the user has to calculate and enter in the program and the program checks if its correct or not.
    One of the game JFrames consist of a paint method that paints circles and the user has to click on it and when a circle is clicked on, it is repainted to not show the circle.(a coordinate system is used etc etc)
    public static void runGame1(){
              k=20;
              kcolor=2;
              fillcolor();
              checkcolor();
              frame = new Circlepix();
              timeframe = new TimerPanel();
              time1 = System.currentTimeMillis();     
              //Repaints the count down
              while((60-seconds)>0){
                   try{
                        Thread.sleep(1000);
                   catch(InterruptedException e){
                   timeframe.repaint();
                   System.out.println("aaa");
              timeframe.dispose();
    public void actionPerformed(ActionEvent e) {
                   if (e.getActionCommand().equals("Reset Scores"))
                        game1score=0;
                        game2score=0;
                   else if(e.getActionCommand().equals("Speed Circles")){
                   mainframe.dispose();
                   runGame1();
              }

    main is running in a different thread (the main thread)
    action events are sent via the event dispatch thread, and painting is done on the event dispatch thread.
    You should always be calling your runGame1 method from a separate thread of your own, so you don't block the event dispatch thread and painting
    http://java.sun.com/docs/books/tutorial/uiswing/concurrency/index.html
    Edited by: bsampieri on Jun 5, 2008 4:50 PM

Maybe you are looking for

  • Logical Standby to Physical Standby

    Hi Group, Please clarify. Is it possible to return from a Logical Standby to Physical standby without copying the datafiles from Primary enviroment again?. If yes, how? Thanks a lot. Oracle 10.2.0.4 SO: AIX 6.1 We also have all archives generated by

  • BT studio Plus 5100

    Dear Friends/ BT Team/ Keith Beddoe Hi! Re the above, after having charged the unit and connecting same to the phone line , we find that the display reads "SEARCHING", and there in no dial tone on the hand set.  I rechecked whether the phone line was

  • Renaming Multiple photo titles in iPhoto

    I work for a photographer who recently purchased a iMac. He wants to use iPhoto for importing and editing but he uses different flash cards and when the photos are imported there are multiple pictures with the same file name (example: IMG_0001) Is th

  • Cs4: possible to assign shortcut to "rotate view" tool?

    Just wondering if we can assign a keyboard shortcut to the rotate view tool button. I can't seem to find where under the keyboard shortcuts pannel...

  • Airport Extreme Network (Wired) Dropoffs

    Hi everyone, I've been suffering with a problem with my Airport Express for as long as I've owned it and finally decided I would make a major step to resolving the problem (primarily held back by not wanting to purchase another router to prove the pr