Skip to content

Instantly share code, notes, and snippets.

View vilmaralmeida's full-sized avatar

Vilmar Almeida vilmaralmeida

  • Cuiabá, Brazil
View GitHub Profile
@vilmaralmeida
vilmaralmeida / ButtonAction.java
Created December 23, 2011 16:07 — forked from luizfonseca/ButtonAction.java
Simple Java Clock app for testing the Observer pattern.
// PACKAGE GOES HERE <--------
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ButtonAction implements ActionListener {
private Clock clock = new Clock();
@Override
public void actionPerformed(ActionEvent e) {
@vilmaralmeida
vilmaralmeida / digital_clock.java
Created December 23, 2011 13:37
Digital clock with observer pattern
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package relogio;
/**
*
* @author 02440101109
*/