public static void verifica() throws DbfDatabaseException {
longi=0;booleanresposta=true;while(true){
i++;resposta=RomaneioDBFModel.verificaRomaneio();if(resposta==true){
System.out.println("Existe Romaneios I = "+i);if(i==5){
//getContentPane().setBackground(Color.ORANGE); <-- ERRO}elseif(i==10){
//getContentPane().setBackground(Color.RED); <-- ERRO}}else{
i=0;System.out.println("NAO Existe Romaneios I = "+i);//FORMVOLTANDOAONORMAL}
try{
Thread.sleep(5000);}catch(InterruptedExceptionex){
Logger.getLogger(InicioSeparacaoView.class.getName()).log(Level.SEVERE,null,ex);}
}
}
ViniGodoy
Usa a tag code, senão fica impossível ler seu código:
ViniGodoy
Usa a tag code, senão fica impossível ler seu código:
thibalta
publicstaticvoidmain(Stringargs[]){@Overridepublicvoidrun(){newInicioSeparacaoView().setVisible(true);}});try{verifica();}catch(DbfDatabaseExceptionex){Logger.getLogger(InicioSeparacaoView.class.getName()).log(Level.SEVERE,null,ex);}}publicstaticvoidverifica()throwsDbfDatabaseException{longi=0;booleanresposta=true;while(true){i++;resposta=RomaneioDBFModel.verificaRomaneio();if(resposta==true){System.out.println("Existe Romaneios I = "+i);if(i==5){// getContentPane().setBackground(Color.ORANGE); <-- ERRO}elseif(i==10){// getContentPane().setBackground(Color.RED); <-- ERRO}}else{i=0;System.out.println("NAO Existe Romaneios I = "+i);//FORM VOLTANDO AO NORMAL}try{Thread.sleep(5000);}catch(InterruptedExceptionex){Logger.getLogger(InicioSeparacaoView.class.getName()).log(Level.SEVERE,null,ex);}}}