View unanswered posts | View active topics It is currently Wed Jun 19, 2013 8:05 pm



Reply to topic  [ 4 posts ] 
 MiGLayout causes GUI do lag 
Author Message

Joined: Tue Apr 19, 2011 6:48 pm
Posts: 8
Post MiGLayout causes GUI do lag
Hi,

When I add a tab containing lots of components to a JTabbedPane, it takes a while for the tab to be added. When running jvisualvm to profile the application, it appears that about 90% of the time taken to add this tab is spent in MiGLayouts methods.

It takes about a second for the tab to be added. MiGLayout is used quite a few times in the tab which is added (I think 26).

When not using MiGLayout and using standard swing layouts instead, the tab is pretty much added instantly.

Any ideas on what's wrong, and how I might fix it? Do you need more information on this?

Cheers


Sat May 07, 2011 5:48 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: MiGLayout causes GUI do lag
Hello,

If you can make the simplest possible test case that is slow I will have look at it.

I assume you are using the latest version?

Cheers,
Mikael


Sat May 07, 2011 5:50 pm
Profile WWW

Joined: Tue Apr 19, 2011 6:48 pm
Posts: 8
Post Re: MiGLayout causes GUI do lag
Yes, I am using version 3.7.4. I will make a simple example and post it here in a short while (after I've eaten = ) )


Sat May 07, 2011 5:55 pm
Profile

Joined: Tue Apr 19, 2011 6:48 pm
Posts: 8
Post Re: MiGLayout causes GUI do lag
I'm having trouble reproducing a simple example that causes the same lag, but I will get back to you when I have managed to figure out exactly what the problem is


Tue May 10, 2011 1:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.