Code: Selecteer alles
WaitDialog dialog = new WaitDialog(this,"Please wait", "Converting ...");
dialog.open();
//hier het werk doen
dialog.dispose();
Iemand?
Code: Selecteer alles
WaitDialog dialog = new WaitDialog(this,"Please wait", "Converting ...");
dialog.open();
//hier het werk doen
dialog.dispose();
Code: Selecteer alles
File f = fc.getSelectedFile();
KARloader loader = new KARloader();
loader.loadFile(f);
WaitDialog dialog = new WaitDialog(this,"Please wait", "Converting ...");
loader.convert();
(new Thread(dialog)).start();
while (loader.isConverting()) {
}
setLyrics(loader.getLyrics());
library.save();
dialog.dispose();