b.addActionListener(new ToggleL()); Panel p = new Panel(); p.add(t); p.add(b); c.add(p);
while (true) { if(runFlag) t.setText(Integer.toString(count++)); try { sleep(100); } catch (InterruptedException e){} }