Esempio n. 1
0
 public static void main(String[] args) throws InterruptedException {
   AnnotationConfigApplicationContext context =
       new AnnotationConfigApplicationContext(Config.class);
   while (true) {
     context.getBean(ColorFrame.class).showOnRandomPlace();
     Thread.sleep(1000);
   }
 }