@@ -0,0 +1,1689 @@
+package cab.invoice.generator;%0A%0Aimport java.awt.EventQueue;%0Aimport java.io.File;%0Aimport java.io.IOException;%0Aimport java.net.MalformedURLException;%0A%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.border.EmptyBorder;%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.JEditorPane;%0Aimport javax.swing.JButton;%0A%0Apublic class Invoice extends JFrame %7B%0A%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%09private JPanel contentPane;%0A%09private File file;%0A%09private JEditorPane editorPane;%0A%09private JScrollPane scrollPane;%0A%0A%09/**%0A%09 * Launch the application.%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09EventQueue.invokeLater(new Runnable() %7B%0A%09%09%09public void run() %7B%0A%09%09%09%09try %7B%0A%09%09%09%09%09Invoice frame = new Invoice();%0A%09%09%09%09%09frame.setVisible(true);%0A%09%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%0A%09/**%0A%09 * Create the frame.%0A%09 * @throws IOException %0A%09 * @throws MalformedURLException %0A%09 */%0A%09public Invoice() throws MalformedURLException, IOException %7B%0A%09%09%0A%09%09setResizable(false);%0A%09%09setTitle(%22Invoice%22);%0A%09%09setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);%0A%09%09setBounds(100, 100, 800, 600);%0A%09%09contentPane = new JPanel();%0A%09%09contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));%0A%09%09setContentPane(contentPane);%0A%09%09contentPane.setLayout(null);%0A%09%09%0A%09%09scrollPane = new JScrollPane();%0A%09%09scrollPane.setBounds(0, 0, 794, 572);%0A%09%09contentPane.add(scrollPane);%0A%09%09%0A%09%09editorPane = new JEditorPane();%0A%09%09editorPane.setEditable(false);%0A%09%09scrollPane.setViewportView(editorPane);%0A%09%0A%09%09file = new File(%22temp.txt%22);%0A%09%09editorPane.setPage(file.toURI().toURL());%09%0A%09%09%0A%09%09JButton btnPrintPreview = new JButton(%22Print%22);%0A%09%09scrollPane.setColumnHeaderView(btnPrintPreview);%0A%09%7D%0A%7D%0A

Create invoice.java