// Zegar
JLabel label = new JLabel("Time", JLabel.CFf ER);
ActionListener listener = new ActionListenerO public void act±onPerformed(ActionEvent e) label.setText ((new Date()) .toStringO ); ł
Timer t - new TimerCLOOO, listener); t. start ();
getContentPane().add(label); setVisible(true);
ryt* 6