🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7999

Re: Problems with refreshing teh Screens using SWING

#7999
From: Nitesh Arora
Date: Mon, 06 Nov 2000 00:00
25 lines
1697 bytes
HI...

Well i fully agree with ur concepts of Threading. Can u suggest me someway
so that i can incorporate this functionality in my existing code without
major modifications. What i have understood from your reply is that you want
us to implement the threading for printing. It would be really nice if u can
suggest way with minimum of code changes.

Thanx

Nitesh

> Right.  Because your app doesn't use a thread for its printing, the
repainting
> performance is affected.  The JVM itself uses multiple threads and one of
> those threads handles painting, but that same thread also handles events.
>
> If you fire an event which then triggers some long-lived process, and
don't
> take steps to get that process into its own thread, then everything else
> in that thread's workload will be delayed, including SWING's ability to
> paint the screen.
>
> Here's a link to sun's threads tutorial:
> http://java.sun.com/docs/books/tutorial/essential/threads/definition.html
Technical Details
Message-ID: <3a06465c_1@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3a03cc65_1@dnews> <8u1ku3$ju7@bornews.borland.com> <3a062a67_1@dnews> <8u5bei$6ig4@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c81aa637807908b9
X-Google-Attributes: gid111d45,public
From: "Nitesh Arora" <nitesh.arora@patni.com>
Subject: Re: Problems with refreshing teh Screens using SWING
Date: 2000/11/06
Message-ID: <3a06465c_1@dnews>
X-Deja-AN: 690164391
References: <3a03cc65_1@dnews> <8u1ku3$ju7@bornews.borland.com> <3a062a67_1@dnews> <8u5bei$6ig4@bornews.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Trace: 5 Nov 2000 21:49:16 -0800, 204.165.186.134
Organization: PCS, Mumbai
X-MSMail-Priority: Normal
Reply-To: "Nitesh Arora" <nitesh.arora@patni.com>
Newsgroups: borland.public.jbuilder.java.swing