Applet jerks when moving a window over it

Hi together !
I'm programming an applet at the moment. In that I move many pictures from up to down so an turning effect comes up.
I have realised this with the grapics objekt from Java and the Graphics.drawImage() methode. I begin to draw the picture on the top of the applet wait a little time and then draw it again down on the y-axis until the and of the applet.
My problem now is that this effect hangs up or is jerking when i move another window over the applet. This seems to be a general problem of many applets, but I have seen some good applets where this problem does not appear.
Maybe anyone got an idea how i can solve this?
TY, Java_programmer_21

AndrewThompson64 wrote:
Welcome to the Sun forums.
Java_programmer_21 wrote:
Hi together !Don't call me 'together'.
I'm sorry that i called you 'together'. I didn't knew that you are the only one that can answer questions here :-D.
I'm programming an applet..Stop that right now! GUIs are difficult, and applets are another order of magnitude harder to develop and debug. They are not for newbies.
I'm not a newbie!
Maybe anyone got an idea how i can solve this?Double buffering.
If you cannot figure how to proceed from that tip, is validates my earlier comment to "Stop that right now!".By the way i know what Double Buffering is and I'm also using it, but this don't solves the problem! The problem normally don't appears! It only appears when I move another window over the applet.
If anyone else got a possible solution which he can post, I would be glad!

Similar Messages

  • High cpu usage when moving application windows

    Hello all,
    I have two machines with arch installed:
    - an eeepc 701 surf/intel gpu(xorg driver) with xfce
    - an amd 3800+ X2/nvidia 8860 gt(proprietary driver) with kdemod3(also checked with xfce4)/arch amd64 installed.
    I noticed that when i move a window of an application(for example konsole, etc..) too fast i get high cpu usage(30-40 %), when checking with htop.
    Is it normal that the X server uses the cpu so much when moving a window??
    EDIT: up to now i tested it in a friends windows machine, and it happens exactly the same, so i guess is normal. It seems i need to be informed better about how X works :-)
    Last edited by mechmg93 (2008-10-15 08:04:10)

    today i switced back my desktop system to debian unstable and tried to see what the difference is concerning this problem.
    I found out that in kde3 the solution to the "problem" is debians kde default configuration about window behaviour.
    Especially the one mentioned below :
    In debian this is not ticked and this has as a result zero cpu usage when windows are moved.
    Last edited by mechmg93 (2008-10-23 18:36:58)

  • Traces when moving swing windows

    Hello,
    when I move a swing frame to another place on the sceen, thereby crossing over another frame, the moving frame leaves traces on the lower one in the form of white cascading stripes. I first thought this is due to my old graphic board. But now I have a new computer with Win7 and it's still the same. Moreover I observed that the traces happen only on swing windows and never on other applications' windows.
    Is this a peculiarity of my site or a common phenomenon?

    Joerg22 wrote:
    Well, the "empty" panel I just mentioned, is shown when the JFrame comes up and the application "waits" for some menu being selected. That should not block the EDT, does it? Since there is no other activity in the appliction, I wonder whether suspending the EDT will make a change, but I'm ready to run any test you want me to.With just two frames I mean:
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import javax.swing.JFrame;
    public class TestFrames {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    JFrame red = new JFrame("RED");
                    red.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    red.getContentPane().setBackground(Color.RED);
                    red.setPreferredSize(new Dimension(800, 600));
                    red.pack();
                    red.setLocationRelativeTo(null);
                    red.setVisible(true);
                    JFrame green = new JFrame("GREEN");
                    green.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    green.setPreferredSize(new Dimension(800, 600));
                    green.getContentPane().setBackground(Color.GREEN);
                    green.pack();
                    green.setLocationRelativeTo(red);
                    green.setVisible(true);
    }If that doesn't show the stripes moving one frame over the other, I suggested to manually suspend the EDT while debugging to see if that will cause the same stripes. If it produces much more artifacts, then the stripes are probably not caused by a blocked EDT.

  • CS5 with OpenGL : Is there a way to disable the "inertia" when moving the window ?

    Hello,
    Following a hardware change, photoshop automatically re-enabled a feature I had deactivated, the OpenGL acceleration.
    I gave up on it 18 months ago because of one thing that incredibly irritated me, the crazy "inertia" when we moved elements.
    Let's say you have an open document. The image is too large for your photoshop window, you only see a part of it.
    So, you keep the Space key held, and you drag and drop with your left mouse click.
    Without openGL acceleration : the moving ends as soon as you release your mouse.
    With openGL acceleration : the moving gradually slows down until it comes to an end, meaning you have zero control over your work window.
    And, well, that's enough of a bother for me to give up on OpenGL acceleration.
    Please, would you know if there's a way to get rid of this feature ? I searched everywhere I could, I think I tried every one of photoshop's options, but to no avail, sadly
    Thank you very much if you can help
    Kind regards,

    Hello Conroy !
    That was it ! Thank you VERY much, I'm really grateful for your help

  • Compressor Crashes When Moving App Window

    Compressor v3x
    I'm having an issue where Compressor will crash when I'm moving the app's window around the desktop. Nothing special going on - just regular work. Setting a QT to compress. Just as soon as I move the window around - bam it crashes to the desktop.
    Compressor related or something different?
    I've got all the recent updates applied.
    Thanks!

    The only reason to suspect the OS is if moving windows in other applications causes the same crash.
    Sorry not to be of more help, I've only seen crashes by touching windows in a few apps. ONe that bugs the crap out of me these days is Microsoft Entourage for the Mac, part of the Office 2008 suite. Not all the time, but sometimes, which makes debugging it impossible, touching the pullout device in the lower right of the app's main window will crash the application.
    This is not related to anything except Microsoft's application, but that's just my isolated case; the same app on an identical Mac does not crash.
    bogiesan

  • cfdocument and cfchart stopped working when moved to Windows 2003/IIS6

    We just moved our content to a new server: from Windows 2000 to Windows  2003 (IIS6).
    We are using Cold Fusion MX 7,0,2,142559.
    Everything works properly after the move except:
    1. <cfdocument> (any, the simpliest one) hangs producing error:"The  document has no pages. null "
    2. <cfchart> crashes producing error: "Invalid attribute: autoAdjust null"
    What can it be? Where should we look? Is it some Windows 2003  feature/problem/blockage? Or does it look like Cold Fusion was not  installed properly?
    Any Hot Fixes are required?
    Any ideas are welcome!!!

    I would avoid installing 7.0.1 hotfixes on an 7.0.2 installation.   The 7.0.2 release notes state that "It also includes all previous ColdFusion MX 7 hot fixes that have been released to date, eliminating the need to install multiple hot fixes and patches."
    CF 7.0.2 Release notes
    http://www.adobe.com/support/documentation/en/coldfusion/mx702/cf702_releasenotes.html 
    You might try installing the ColdFusion MX 7.02 Cumulative Hot Fix 3 or the CFDocument Cumulative Hot Fix. 
    ColdFusion MX 7.02 Cumulative Hot Fix 3
    http://kb2.adobe.com/cps/402/kb402465.html 
    ColdFusion MX 7.02 - CFDocument Cumulative Hot Fix
    http://kb2.adobe.com/cps/402/kb402093.html

  • Individual Panels "Jump" when moving the mouse over

    I am using AE CS2. When I move the mouse over individual panels, the panels "jump". They don't change to a new location, they just jump once in place as if they have been bumped. It is quite annoying. What causes this?
    Thanks.

    Microsoft Intellipoint software is known to cause this issue.

  • JDS3 hangs XDMCP when moving a window as root

    I am running Solaris 10 06/06 on a SPARC and connecting via XDMCP using Cygwin/X on a PC.
    If a log in as a non-root user on a JDS session, then su -, then open a terminal window, if I move the terminal window, the XDMCP session appears to hang. Cygwin itself doesn't bomb, just the X session window.
    If I use a CDE session, this does not happen.
    Any advice is appreciated.

    Hi,
    Just wanted to add to the previous message. We are running Solaris 10 11/06 and having quite similar problem. Logging in from PC using Cygwin/X windows move around fine at first. Then the window being moved just hangs for a minute with frame of window showing. The mouse pointer still moves around fine. CDE performes flawlessly.
    The JDS takes forever to log out also. Almost 3.46 minutes!
    We have another Sun Blade 2500 running Solaris Express 11 11/06 which does not have these issues.
    I login to Failsafe Session and issue gnome-session and this:
    SESSION_MANAGER=local /WMSWS04:/tmp/.ICE-unix/2243,inet6/WMSWS04:33572.inet/WMSWS04:33573
    (gnome-session:2243): GLib-G)bject-CRITICAL **: file gobject.c: line 1579: assertion 'G_IS_OBJECT (object)' failed
    then there are a bunch of:
    permset_set fa49fc48: n=3
    Then:
    ** (gnome-panel:2276): WARNING **: Cannot open font file for Arial 9
    Thanks for any help on this issue,
    James

  • I cannot sign in to some websites because Firefox is not responing when I hover my mouse over the Sign In button...some other buttons are not activated either when moving my mouse over it. That prevents me to surf on the Internet.

    I downloaded lates Firefox and it sometimes does not activate links and buttons...

    That problem can be caused by the Yahoo! Toolbar or the Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • [SOLVED] Windows lag when moved...?

    Using Xfce, with and without composite, the windows lag when being moved. It's like the whole window isn't held together properly; the window movement is kind of choppy, but still smooth, if that makes any sense.
    This makes for a rather bad experience. And I'm clueless as to what causes this. It's certainly not my HW:
    CPU: i5-2500k
    GPU: GTX 460
    RAM: 8GB, 1600mhz
    Also, even more disturbing, is that when moving a window there seems, if you look closely enough, to be a white after-effect where text and the pointer was a few moments ago. As an example: If I grab a window and move it in a small circle, this happens.
    Any ideas? Running nuts here...
    Last edited by nonah (2012-03-19 00:27:31)

    Okay I'll try but I can't guarantee the completeness. Here are all the steps I managed to recollect:
    First install:
    compiz, compiz-decorator-gtk, ccsm, compiz-fusion-plugins-main
    the decorator and plugins are somewhat optional but will provide you with gtk window borders and more options.
    then edit the following paragraph in /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
    <property name="Client0_Command" type="array">
    <value type="string" value="compiz"/>
    <value type="string" value="ccp"/>
    </property>
    (This replaces xfwm4 with compiz as the default window manager for Xfce)
    Then after running
    sudo nvidia-xconfig
    add the following line to the "Device" section within /etc/X11/xorg.conf
    Option "TripleBuffer" "True"
    also add
    nvidia-settings -l
    to your autostart.
    Now open up ccsm and within "General Options" on the tab "Display Settings":
    tick the option for "Sync to VBlank"
    UNtick the option "Detect refresh rate"
    drag the slider for the refresh rate to match the refresh rate of your display (60 Hz in my case)
    Go back to the main page of ccsm and open "Window decoration". Insert the following line into the "command" field:
    gtk-window-decorator --replace
    (This will provide you with your gtk borders on compiz otherwise you would have to use emerald)
    On the main page of ccsm tick "Move windows" under "Window Management". (Otherwise you won't be able to move windows around at all)
    Restart your system and it should load compiz now. If compiz is acting funny you can always temporarily switch back to xfwm by running "xfwm4 --replace".
    Note that you will have the best video experience with mplayer (no GUI).
    Consider using vdpau as video output with the corresponding codecs if you don't plan to play 10bit H264 videos, otherwise stick to xv.

  • Can Openbox change window transparency/opacity when moving windows?

    Can I configure, within Openbox or a compositing manager, differing window transparency/opacity when moving a window?

    I'm currently using cairo-compmgr, but I've also used xcompmgr in the past. I've played around with the settings in both (and transset-df with xcompmgr), with no luck thus far. While getting terminal and tint2 transparency is fairly trivial, and I've also read that you can set specific windows to always have a certain level of transparency/opacity, I'm not sure that you can get the level of opacity/transparency to change whenever you grab a window and move it around. I think I read that the difficulty lies in the fact that Openbox knows when a window is being moved around, but a compositer doesn't. What I'm looking for may only be possible in a DE where the window management and compositing are integrated (e.g. KWin). Just wondering if anybody has done this with Openbox and a specific compositing manager paired together.
    Last edited by CharBar (2013-04-12 20:11:23)

  • Moving plugin windows around causes spinning beach ball.. 8.0.2 near???

    last q. for now...how come when moving plugin windows around in logic it can sometimes cause the dreaded spinning beach ball?? you think logic is going to crash but it doesn't, it recovers and then runs real sluggish... logic or leopard bug??? i can't wait for 10.5.2 to see what it magically fixes in logic!! any hope that we might have 8.0.2 in the near future...there are all these other updates floating down from cupertino but yet logic seems neglected...

    Thanks Pancenter... appreciate your input. Really useful information. When I bought my Mac Pro, there was an issue with the video cards; if you wanted to run 2 x 30" ACD's, then you had to up the spec to a more powerful card. The guy in the mac shop assured me the GeForce 7300 GT that came with the machine would be sweet enough for 2 x 23's... and it was. But that was with Tiger. (?)
    Is Leopard &/or LP8 graphically more demanding than Tiger &/or LP7... I wouldn't have a clue? Does anyone have an opinion on this? (I'd be REALLY interested!) Are the cards shipping with these machines really up to the job of running the OS AND something as complicated as LP8? My opinion is; They SHOULD be.
    Thanks Zuelito... I had noticed this thread & was surprised/dismayed that even 8 CORE machines were having this problem too! But then, if it's a problem with underpowered graphics cards, I don't suppose it matters how many cores you've got... does it??? Thanks for your post... again, really USEFUL information. I appreciate it! (GREAT thread.)
    I only get this problem when I open anything UAD; it runs happily in the background but out comes "the ball" whenever I open & move more than 1 instance of a UAD plug. Haven't once had it happen with Logic or 3rd party AU's.
    Thanks again for your input... keep it comin'!
    Cheers...

  • Windows Crashes with JRE 1.4.2  When Moving around JDialog

    Hi!
    I work on a Java Applet/application that was originally written to run on java 1.1 -- only AWT that too. Recently I managed to convince my manager (and his manager and his manager) to migrate from the AWT framework on java 1.1 (Microsoft JVM that is ) to Swing/JFC on Sun Java 1.4.2 ... it took a lot of explaining, demostrating, begging, pleading etc., to get this project funded.
    Now, my app is all developed in JFC and ready for deployment and during testing found a potential show stopper -- When a Dialog Box or any moveable componant (internal windows etc) is moved around (holding down the mouse on the title bar of a dialog and dragging it around), the OS simply froze up ... nothing could be done other than power cycling the PC. Does anyone know if its a bug in JRE 1.4.2 and if it has been fixed?? This could potentially result in rolling back to AWT :(( .... and of course me looking like a fool in front of my manager!!
    ..... Please provide any suggestion other than moving to JRE 1.5.x beta. I've also noticed this happening in other Java Applications (Netbeans for example). So, I think this is a major bug the JRE 1.4.2.
    A million thanks and few Duke Dollars for anyone pointing me in the right direction.
    Note:
    1. This problem is not just with my app ... some other java apps that are installed on my workstation (like netbeans) behave the same when Moving Around dialog boxes.
    2. The behaviour is very random. But it has happened multiple times (and the very first time my manager run our app on jre 1.4.2)
    I would give a million dollars if I had them. But for now, please do with the million thanks and few duke dollars.

    Have you tried this on another machine?Yes ... actually this has happened on a few workstations here ... all of them are Pentium IV based dell workstations running Windows 2000.
    What exact version of 1.4.2 did you download?Java(TM) Plug-in: Version 1.4.2_04
    Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
    Have you searched the bug database? This one could be related to yours:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4673572
    This sounds similar but the difference is its not just the app that feezes up (so that you could do an alt+ctrl+del and kill it)..... the OS freezes up and you can move the mouse around still the system even queu e is not full and eventuall all I hear is the beeping. At this point I've to power cycle.
    Is there any way you could post the code or is it too big? Or, have you tried just creating a very small >application or applet that just shows one dialog, and if so, does that show the same problem? (What I'm >trying to get at here is - is it something in your code that is causing this, or something in the JRE, or >perhaps something to do with your machine's configuration/OS?)Unfortunately I cannot post the code ... its company rules and regulations. I've tried creating a very small app and it appears to work ok .... but randomly causes this freeze up. There is no definate pattern (except that it happens when you move around a JDialog or a JInternalFrame) . It could freeze up some time and work perfectly fine at other times. It has actually happened on other applications too (Netbeans, JEdit etc). That's why I suspect this might be a obscure bug in the JRE.
    I'll try to find a pattern so that it can be re-produced by everyone.
    Thanks for the help.

  • Application windows remembering original anchor points when moving or resizing

    Recently it seems that most of my windows, especially iTunes, Safari, and Finder, seem to retain the anchor points from when they were opened and revert to their original position if a window is resized. I've noticed the following odd behaviors that seem to be related to this problem:
    After moving an iTunes or Safari window, right-clicking will open the context menu in a location that corresponds to where the window was originally placed.
    After moving a window, a drag-n-drop target remains relative to where the window was. For example, in iTunes, if I open the application and move the window, it becomes impossible to drag a song into a playlist (unless I drag the song to the location where that playlist was when the window originally opened). The same sort of thing happens with Finder windows. In the image below, a screen grab of a Safari window, I right-clicked on the signal strength display pictured on the phone to the left; notice the context menu way off to the right of the Safari window.
    Resizing a Safari window makes the window first snap back to the original location, then allows the resize to occur.
    Opening/closing a tab in Safari, when the action causes the tab bar to appear or disappear, causes the Safari window to snap back to the original anchored position.
    I've noticed this behavior over the past week or so. It was about a week ago that I installed the 10.9.5 update to the OS, but I'm not sure if the problem pre-dated the update or not.
    This is driving me insane. Does anyone have any suggestions or, hopefully, a fix?
    Thanks.

    You can try running the combo update.
    10.9.5 Combo Update

  • Swing Applet Repainting during moving window

    Hi,
    I've run into a problem with my swing JApplet. One of the elements of my GUI is a JLabel that contains a single Image. After the GUI is created, a seperate thread changes the image and prompts the JPanel containing the JLabel to repaint().
    Now, this works perfectly with the AppletViewer using java 1.4.2.03. However, when I run the applet through Microsoft's Internet Explorer using Sun's VM 1.4.2.03 plugin, I notice a problem. If I take the window containing the applet and (assuming it is NOT maximized) move it around the screen, the JLabel's image will not always be drawn at the correct place. It will often overlap some of the other GUI elements.
    I read something that Threads and Applets don't mix which suggested using the SwingUtilities.invokeLater() function, but I need this Thread to sleep() and didn't know how to make it do so because I never see the Thread class through the invokeLater() method.
    It solves the problem if rather than have the JLabel repaint itself, I have the entire applet repaint itself, but this is not the ideal solution. Is there any way to determine when the window containing the applet is being moved and then force the applet to repaint itself entirely? Am I going about this wrong? Any help would be greatly appreciated!
    Thanks,
    B. Danny K.

    The content pane of a JApplet is a JPanel. So you need to use the getContentPane() method and cast the Compnent to a JPanel before you can use revalidate(). However, as you have discovered 99% of the time a validate() also works.
    Note, that is you are using a BorderLayout then you should be removing the old component before adding the new component.

Maybe you are looking for

  • How to deploy a single PBL (Build Runtime Library) in 64Bit

    Hello There, I am testing PB15 and create two Project Files within the application. One Projectfile to compile a 32Bit Version and the other one to deploy a 64Bit version in P-Code. We are delivering today Patches in a Patch Library at the top of the

  • Lost gmail account on ipad

    Had a normally functioning gmail account on iPad which no longer works.  Keeps telling me email account name or password is incorrect, but it's the same one I use on iMac and iPhone.  Tried deleting and recreating account, to no avail.  Help!

  • My Scenario R/3- XI- File systeem

    Hi I would be working on Scenario R/3->XI->File system. I thought of using ABAP proxy at R/3 end but later I realised that I cann't use ABAP proxy as my R/3 system is of 45b version. Can anyone tell me what adapter I should be using for this scenario

  • How to convert the webpage to website

    I had created my website locally eg file:///C:/Users/user/Documents/Unnamed%20Site%202/homepage.html# But I need to change it to website eg www.example.com so that I can include a search function withinin my website. I do not have a server too. Is th

  • Inventory Management loading

    hi xperts,   I am loading infocube,0IC_C032 from the infosource LIS_03_BX,with business content updaterules. But no data is coming into the cube,I set the option as GENERATE INTIAL STATUS,I checked RSA3 in source system data is there. please somebody