import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ClockFrame implements ActionListener { JFrame frame; JPanel p1; JLabel l1 = new JLabel(); JLabel l2 = new JLabel(); String [] s = {"Лос-Анджелес","Нью-Йорк","Москва","Лондон","Париж","Сидней","Токио", "Сантьяго","Каир","Текущее время"}; JButton[]b = new JButton[s.length]; runningTime p; LabelTown lb; public void StartFrame(){ frame = new JFrame(); p = new runningTime(); p.getS(); l1 = p.l1; lb = new LabelTown(); l2 = lb.l1; l1.setHorizontalAlignment(JLabel.CENTER); p1 = new JPanel(new GridLayout(1,1)); p1.add(l2); p1.add(l1); for(int i = 0;i