File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Maximised window goes slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Maximised window goes slow" Watch "Maximised window goes slow" New topic
Author

Maximised window goes slow

Malcolm Storey
Ranch Hand

Joined: Nov 09, 2008
Posts: 31
Have just noticed that when I maximise the window, it all goes slow as though there's a processor-hungry background process. javascript:%20x() It's not my code cos the following modified simple example from the Sun website shows the problem (sorry about Sun's lengthy disclaimer but thought I'd better leave it in!)

Am running Windows XP-Pro v2002 SP3 on a Pentium 4, 1.70GHz 1.69GHz 1.25GB RAM. I'd be grateful for advice (or somebody telling me my PC's flakey!)

Many thanks
Malcolm Storey



[Edit] Added code tags. RP [/Edit]
[ November 09, 2008: Message edited by: Rob Prime ]

Malcolm

I wouldn't join any Collection with an add() method that would accept me as a parameter
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

Please Use Code Tags. I've added them for you this time.

I've tried it but found no slowness at all. Can you open your Windows task manager, then do your stuff while the task manager is still visible (it's always on top so that's a plus), and check the CPU usage of your program?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Malcolm Storey
Ranch Hand

Joined: Nov 09, 2008
Posts: 31
Task Manager shows Javaw.exe using a lot of processor time (20-30, rising to 90 when I drag slowly). It uses a lot less (10-15) when not maximised.

Have checked Java control panel and it says I have the latest version. Have just updated Eclipse. No improvement.

Am not sure about the libraries tho. (Am new to Java)
Thanks
Malcolm
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

That's odd that your CPU usage goes up like that.

Sure it's "only" a P4, but I've just tested it on a P4 3GHz with just 1GB of RAM, and even with hardware acceleration turned off for the graphics adapter it didn't go over 6%.
Malcolm Storey
Ranch Hand

Joined: Nov 09, 2008
Posts: 31
Thanks Rob. Seems it's just my flakey old PC - a problem that will get fixed sooner or later by buying a new one.

Thanks again, and apologies for missing out the code tags.
[ November 11, 2008: Message edited by: Malcolm Storey ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maximised window goes slow