@@ -0,0 +1,2417 @@
+import java.awt.Dimension;%0Aimport java.awt.GridLayout;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.JTextField;%0A%0Aimport com.skype.ContactList;%0Aimport com.skype.Friend;%0Aimport com.skype.Skype;%0Aimport com.skype.SkypeException;%0A%0Apublic class Spam extends JFrame %7B%0A%09%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%09%0A%09public void spam(String friend, String am, String msg) throws SkypeException, InterruptedException%7B%0A%09%09ContactList contacts = Skype.getContactList();%0A%09%09Friend fr = contacts.getFriend(friend);%0A%09%09int amm = Integer.parseInt(am);%0A%09%09for(int i = 0; i %3C amm; i++) %7B%0A%09%09%09fr.send(msg);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public Spam(String title) %7B%0A%09%09super(title);%0A%09%09%0A%09%09final JTextField msg = new JTextField();%0A%09%09msg.setText(%22message to spam...%22);%0A%09%09msg.setToolTipText(%22Enter the message you wanna spam%22);%0A%09%09final JTextField am = new JTextField();%0A%09%09am.setText(%22how many times to spam...%22);%0A%09%09am.setToolTipText(%22Enter how many times you wanna spam the message%22);%0A%09%09final JTextField who = new JTextField();%0A%09%09who.setText(%22who to spam...%22);%0A%09%09who.setToolTipText(%22Enter the exact skype name of who you wanna spam%22);%0A%09%09final JButton button = new JButton(%22Spam!%22);%0A%09%09%0A        JPanel buttonPanel = new JPanel();%0A        JPanel containerPanel = new JPanel();%0A        buttonPanel.setLayout(new GridLayout(4,4));%0A        buttonPanel.add(msg);%0A        buttonPanel.add(am);%0A        buttonPanel.add(who);%0A        buttonPanel.add(button);%0A        buttonPanel.setPreferredSize(new Dimension(650, 250));%0A        containerPanel.add(buttonPanel);%0A        getContentPane().add(containerPanel);%0A%09%09%0A%09%09button.addActionListener(new ActionListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09String msgg = msg.getText();%0A%09%09%09%09String amm = am.getText();%0A%09%09%09%09String whoo = who.getText();%0A%09%09%09%09if(msg.getText().isEmpty()) %7B%0A%09%09%09%09%09msg.setText(%22You need to enter the message you wanna spam%22);%0A%09%09%09%09%7D%0A%09%09%09%09if(am.getText().isEmpty()) %7B%0A%09%09%09%09%09am.setText(%22You need to enter how many times you wanna spam the message%22);%0A%09%09%09%09%7D%0A%09%09%09%09if(who.getText().isEmpty()) %7B%0A%09%09%09%09%09who.setText(%22You need to enter the exact skype name of who you wanna spam%22);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09spam(whoo, amm, msgg);%0A%09%09%09%09%7D catch (SkypeException %7C InterruptedException e1) %7B%0A%09%09%09%09%09e1.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%7D%0A

Create Spam.java