@@ -0,0 +1,845 @@
+import java.awt.Font;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JPanel;%0Aclass MediatorDemo extends JFrame implements ActionListener %7B%0A    Mediator med = new Mediator();%0A    MediatorDemo() %7B%0A        JPanel p = new JPanel();%0A        p.add(new BtnView(this, med));%0A        p.add(new BtnBook(this, med));%0A        p.add(new BtnSearch(this, med));%0A        getContentPane().add(new LblDisplay(med), %22North%22);%0A        getContentPane().add(p, %22South%22);%0A        setSize(400, 200);%0A        setVisible(true);%0A    %7D%0A    public void actionPerformed(ActionEvent ae) %7B%0A        Command comd = (Command) ae.getSource();%0A        comd.execute();%0A    %7D%0A    public static void main(String%5B%5D args) %7B%0A        new MediatorDemo();%0A    %7D%0A%7D%0A

Create MediatorDemo.java