Java doesn't have callbacks or delegates. It has listeners: usually, these are tiny interfaces (1-4 methods) that you implement and pass that object to whoever should call you back.
Code:
JButton button = new JButton("Hit Me");
button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
        JOptionPane.showMessageBox("Whee!");
    }
});