void () { JPanel timePanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); timePanel.add(myHours); timePanel.add(new JLabel(" : ")); timePanel.add(myMinutes); timePanel.add(new JLabel(" : ")); timePanel.add(mySeconds); add(timePanel); }