public NovationNova1PatchSender(JFrame Parent,Patch p, Driver driver)
public NovationNova1PatchSender(JFrame Parent,Patch p, IPatchDriver driver)
    public NovationNova1PatchSender(JFrame Parent,Patch p, Driver driver)    {        super(Parent,"Nova1 Patch Sender",true);        byte [] newsysex = new byte[296];        localPatch = new Patch(newsysex);        System.arraycopy(p.sysex,0,localPatch.sysex,0,296);        localDriver = driver;        JPanel container= new JPanel();        container.setLayout (new BorderLayout());        JPanel buttonPanel = new JPanel();        buttonPanel.setLayout ( new FlowLayout(FlowLayout.CENTER) );        JButton ProgButton = new JButton("Prog");        ProgButton.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            ProgPressed();        }});        buttonPanel.add( ProgButton );        JButton Part1Button = new JButton("Part 1");        Part1Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(1);        }});        buttonPanel.add( Part1Button );        JButton Part2Button = new JButton("Part 2");        Part2Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(2);        }});        buttonPanel.add( Part2Button );        JButton Part3Button = new JButton("Part 3");        Part3Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(3);        }});        buttonPanel.add( Part3Button );        JButton Part4Button = new JButton("Part 4");        Part4Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(4);        }});        buttonPanel.add( Part4Button );        JButton Part5Button = new JButton("Part 5");        Part5Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(5);        }});        buttonPanel.add( Part5Button );        JButton Part6Button = new JButton("Part 6");        Part6Button.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            setVisible(false);            SendPatchToPerfBufferPart(6);        }});        buttonPanel.add( Part6Button );        JButton HidePannel = new JButton("Hide this");        HidePannel.addActionListener( new ActionListener() {            public void actionPerformed(ActionEvent e) {            infoPannel info = new infoPannel(null);            info.show();            setVisible(false);        }});        buttonPanel.add( HidePannel  );        getRootPane().setDefaultButton(ProgButton);        container.add(buttonPanel, BorderLayout.SOUTH);        getContentPane().add(container);        setSize(640,80);        centerDialog();    }