Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2007, 12:57 AM
Member
 
Join Date: Nov 2007
Posts: 2
peci1 is on a distinguished road
Privileged processing of multiple images?
Hi, I'm developing an applet, which should get an array of image paths on local computer, transform them and then save to the local computer. My first idea was to write a simple for cycle. But it seems to be impossible due to the privileged action interface, which runs as separate thread - the main thread continues the for without waiting to the privileged thread to end. I was able to write code which sleeps the main thread in a while loop to wait to the privileged thread to end. But this solution totally freezes the main applet window. The freeze remains until ALL images are processed, even if I wrote it so it wakes up from sleep before each image. And this is terrible, because I also want to have a progressbar showing transformation progress.

So I ask you how can I let the main thread wait for privileged thread unfreezed and continually getting progress info from the privileged thread

I tried to substitute the sleep with a wait. It didn't freeze the main window, but it threw IllegalMonitorState exception after processing the first image.

Thanx for your opinions
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT processing in Java - II JavaForums Java Blogs 0 04-17-2008 11:30 AM
XSLT processing in Java - I JavaForums Java Blogs 0 04-17-2008 11:30 AM
list processing kazitula Java Applets 1 01-22-2008 10:35 PM
want to make a menu bar for image processing vidhi Java 2D 1 01-15-2008 08:12 PM
Image Processing in J2ME mobeenkhan CLDC and MIDP 1 08-02-2007 06:30 PM


All times are GMT +3. The time now is 10:46 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org