//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
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
- utrrrongeeb
- Posts: 254
- Joined: 2006-05-14 09:48
- Location: Eastern Canada
draw image
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)
the problem is in the synchronization - I need that the data will be to the new data (after calc the new point)
this java code is for mobile
so you can not download all data - you dont have memory for all the picture