@@ -0,0 +1,2092 @@
+package me.ruyili;%0A%0Aimport javax.swing.*;%0Aimport javax.swing.filechooser.FileNameExtensionFilter;%0A%0Aimport org.apache.commons.io.FileUtils;%0A%0Aimport java.io.*;%0Aimport java.awt.event.*;%0A%0Apublic class GUI%7B%0A%09static final JFrame f = new JFrame(%22ZippyJar - Jar to zip Converter%22);%0A%09public static void main(String%5B%5D args)%7B%0A%09%09JPanel p = new JPanel();%0A%09%09final JTextField jar = new JTextField(13);%0A%09%09JButton browseJar = new JButton(%22Browse...%22);%0A%09%09JButton convert = new JButton(%22Convert%22);%0A%09%09final String%5B%5D s1 = %7B%22/%22%7D;%0A%09%09jar.setEditable(false);%0A%09%09jar.setText(%22Jar directory%22);%0A%09%09%0A%09%09f.setSize(300, 125);%0A%09%09f.setResizable(false);%0A%09%09f.setVisible(true);%0A%09%09f.setLocationRelativeTo(null);%0A%09%09f.add(p);%0A%09%09p.add(jar);%0A%09%09p.add(browseJar);%0A%09%09p.add(convert);%0A%09%09f.revalidate();%0A%09%09p.revalidate();%0A%09%09%0A%09%09browseJar.addActionListener(new ActionListener()%7B%0A%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09%0A%09%09%09%09JFileChooser jfc1 = new JFileChooser();%0A%09%09%09%09jfc1.setFileFilter(new FileNameExtensionFilter(null, %22jar%22));%0A%09            jfc1.setCurrentDirectory(new File(%22.%22));%0A%09            jfc1.setDialogTitle(%22Browse for jar file...%22);%0A%09            jfc1.setAcceptAllFileFilterUsed(false);%0A%09            %0A%09            if (jfc1.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) %7B%0A%09                jar.setText(%22%22 + jfc1.getSelectedFile());%0A%09                s1%5B0%5D = jar.getText();%0A%09            %7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%0A%09%09%7D);%0A%09%09%0A%09%09convert.addActionListener(new ActionListener()%7B%0A%0A%09%09%09@Override%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09if(s1%5B0%5D == %22/%22)%7B%0A%09%09%09%09%09JOptionPane.showMessageDialog(f, %22You didn't specify the jar directory.%22);%0A%09%09%09%09%7Delse%7B%0A%09%09%09%09%09try %7B%0A%09%09%09%09%09%09jarToZip(s1%5B0%5D, %22/%22 + s1%5B0%5D + %22_converted.zip%22);%0A%09%09%09%09%09%09JOptionPane.showMessageDialog(f, %22The file was successfully converted!%22);%0A%09%09%09%09%09%7D catch (IOException e1) %7B%0A%09%09%09%09%09%09JOptionPane.showMessageDialog(f, %22Invalid input!%22);%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D);%0A%09%09%0A%09%09%0A%09%7D%0A%09%0A%0A%09public static void jarToZip(String oldName, String newName) throws IOException%7B%0A%09%09%0A%09%09File file = new File(oldName);%0A%09%09File file2 = new File(newName);%0A%09%09FileUtils.copyFile(file, file2);%0A%09%09%0A%09%7D%0A%7D%0A

Create GUI.java