Results 1 to 5 of 5
  1. #1
    ace_quorthon is offline Member
    Join Date
    Jan 2011
    Posts
    7
    Rep Power
    0

    Default Java Application - weird behavior

    Dear all,

    My Java (Swing) applet started acting weird yesterday morning.
    Image explanation Applet:
    http://dl.dropbox.com/u/1933084/Fotos/problem.png

    Text explanation
    On the image above, you see two versions of my application (which I can run both as an applet, and as an application in a JFrame). The left version is what I get at start-up. This is the correct setup for my program (even though all content is placeholder). The right version shows the weird behavior that I'm trying to explain to you.

    The behavior itself consists of:
    • If you move over a component with a *Listener (MouseMotion-, Action-, etc), the 'image' of the component is drawn in the left-upper-corner of the applet/application. This is not where the actual component is.
    • If you click one of my buttons, I insert a new page (extended JPanel), which should be at the center of the app, below the buttons. This image also goes to the left-upper-corner of the app.
    • When the image is at the left upper-corner, it is not the actual component that is there, since you cannot perform an action on it. In fact, the actual component is in the correct place, because when you move over it, it becomes visible again, exactly where it should be.
    • I have the idea that the program is not properly 'wiped' & repainted, however this only happens on my pc (see below).


    These are the actions I have taken to solve/check the issue:
    • Go back 200 revisions on svn to see if the problem existed there. Yes, it happens 200 revisions back. And no, it did not do this at the time I actually was at that revision. (So something in my system changed!)
    • Update java on this pc.
    • Ask a friend to also run the program. No, he did not have the issue.
    • Run the program on a different pc, java version 6.22. No.
    • Run the program on that other pc, java version 6.23 (latest). No. It does not seem to be the new java version.
    • Try to reinstall latest java jdk anyway. Removed, reboot, reinstall, reboot. Problem still exists.
    • Search google for equal issues. Haven't found one...
    • Run virus-scanner & mbam. Nothing.
    • Search Windows updates, none found.
    • See if other java applications act weird. Yes, some do act weird, screens get black instead of showing the actual content. Others don't. It looks like repaint issues, just like my program.
    • Update gfx drivers through Steam.


    I'm kind of lost now. The only thing I have in mind is to format and reinstall everything. I always see that as a last resort, as it can take multiple days to reinstall and update all the software & devkits I use.

    I'm using Win7 64bit, programming in Eclipse Galileo latest version (but also occurs from .jar), and have a ATI Radeon HD 5800 gc.

    My question:
    Do you have any ideas what more I can update or check to solve this issue?
    Note that I dont think a code example is needed here, since I seem to have the only system that experiences this problem.

    Thanks for bearing with me (I know it's a lot of info, and very vague...), and I hope you have some good potential solutions.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,701
    Rep Power
    8

    Default

    We can't really help you without seeing any code. If you want help with code, you'll have to provide some code. And no, we don't want the whole thing- we want an SSCCE that demonstrates the problem in as few lines as possible.

    Boil your problem down to the bare essentials. Take out any code that doesn't impact the problem directly. This isn't just for us. Chances are, you'll find the problem yourself in the process of creating the SSCCE.

    Don't forget the code tags.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    ace_quorthon is offline Member
    Join Date
    Jan 2011
    Posts
    7
    Rep Power
    0

    Default

    Quote Originally Posted by KevinWorkman View Post
    We can't really help you without seeing any code. If you want help with code, you'll have to provide some code. And no, we don't want the whole thing- we want an SSCCE that demonstrates the problem in as few lines as possible.

    Boil your problem down to the bare essentials. Take out any code that doesn't impact the problem directly. This isn't just for us. Chances are, you'll find the problem yourself in the process of creating the SSCCE.

    Don't forget the code tags.

    I know what you mean, appreciate that you try to help, and understand that you did not read through the whole thing. I get that it is a lot to read through in your spare time. However your post is not at all related to the problem or the question I asked.

    An SSCCE (or other code example) would not provide any additional info because the problem seems to be software related and not code related (as it occurs on my system only). All I want to know is what software influence the java environment, so I can try to reinstall / update it.

    I'm 100% sure my code used to work a few svn revisions back. Now it doesn't even work when I go 200 revisions back. This means something in my system changed. And I'm simply not the only one operating it.
    Last edited by ace_quorthon; 01-20-2011 at 01:49 PM.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,701
    Rep Power
    8

    Default

    And even if it is only on your system, it will still help to figure out what lines are resulting in the strange behavior. I'm not really sure what you expect us to do without any code. And we can't really work with anything except SSCCEs.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    ace_quorthon is offline Member
    Join Date
    Jan 2011
    Posts
    7
    Rep Power
    0

    Default

    I have tried to filter out the behavior and put it in an SSCCE. I have broken down my program and tried to find out when the behavior exists, and at what point it behaves as expected. Then I tried to copy the setup in (multiple times) a simple example, however the behavior did not occur there.

    So I decided to format and reinstall everything. Now, my program functions once again, however not with a satisfying solution. Let's just hope this doesn't happen again!

    Locked.

Similar Threads

  1. Weird post in New to Java forum
    By gcalvin in forum Forum Lobby
    Replies: 3
    Last Post: 03-18-2010, 06:07 PM
  2. Weird java problems
    By debylni in forum Advanced Java
    Replies: 5
    Last Post: 03-10-2010, 02:17 PM
  3. Strange behavior with java from command line
    By ocean in forum New To Java
    Replies: 1
    Last Post: 12-07-2009, 12:26 AM
  4. Java Crossplatform Behavior
    By wdavis in forum New To Java
    Replies: 2
    Last Post: 11-05-2009, 01:22 PM
  5. Replies: 9
    Last Post: 09-30-2008, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •