Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

join thread

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
j6df
Posts: 9
Joined: 2006-08-30 17:37

join thread

#1 Post by j6df »

//this is my thread:
public class threadMoveRight implements Runnable{
Storeroom sto = new Storeroom();
String url;
Image image1;
boolean flag;

public threadMoveRight(String purl,Image pImage) {
this.url = purl;
this.image1 = pImage;
}

public void run() {
searchData();
flag = true;
}

}
//and after the user press on right he go to this code :
if (sto.doINeedConection){
while (sto.flag==false){
sleep();
}
}
repaint();
//the result:
//the program stay a lot of time in the sleep

User avatar
utrrrongeeb
Posts: 254
Joined: 2006-05-14 09:48
Location: Eastern Canada

#2 Post by utrrrongeeb »

Could you explain what it is, and what it's supposed to do?
utrrrongeeb formerly lecaro
Art #429775 on 'Etch' 4.0r0

j6df
Posts: 9
Joined: 2006-08-30 17:37

draw image

#3 Post by j6df »

there is big picture that i get from the internet but the user see only the center picture so after the user press on (right,left,up,down) right for example the picture go to right but when he press a lot so the picture go to the end - I need to call new data from the internet
the problem is in the synchronization - I need that the data will be to the new data (after calc the new point)

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#4 Post by lacek »

Well, I don't know if I get you right, but why don't you download the whole picture, and put it on a scroller of some kind?
Also, what language is this code written in?

j6df
Posts: 9
Joined: 2006-08-30 17:37

this java code is for mobile

#5 Post by j6df »

so you can not download all data - you dont have memory for all the picture

Post Reply