Taking Turns on a Swing Component(Event Handling)Example
public void actionPerformed(ActionEvent e) {
welcomeText.setHorizontalAlignment(JTextField.CENTER);
welcomeText.setText("Hello Linux User's Group");
public static void main(String[] args) {
ClickEvent clickEvent1 = new ClickEvent();