fileTicker.setSize(150,12);
fileTicker.setLocation(550, 465);
fileTicker.setForeground(new Color(display,255,255,255));
fileTicker.setBackground(new Color(display,38,25,116));
fileTicker.setFont(new Font(display, "",6, 0));
//fileTicker.setText("None File Selected");
new Thread(new Runnable() {
public void run() {
while (!display.isDisposed()) {
try {
display.asyncExec(new Runnable() {
public void run() {
fileTicker.setText(myctrl.getFile().getStrFilename());
Point p = fileTicker.getLocation();
if(p.x<=410)
{
fileTicker.setLocation(550,465);
}
else{
fileTicker.setLocation(p.x-3,p.y);
}
}
});
Thread.sleep(60);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}).start();
}