/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.saabre.setup.ui.view.operation;

import com.alee.laf.label.WebLabel;
import com.saabre.setup.operation.remote.SendFile;

/**
 *
 * @author Lifaen
 */
public class SendFileResultPanel extends OperationResultPanel {

    public SendFileResultPanel(SendFile sendFile) {
        add(new WebLabel("Test"));
    }
    
}

@@ -247,22 +247,67 @@
 laf.
-label.WebLabel
+text.WebTextArea;%0Aimport com.saabre.setup.helper.FileHelper
 ;%0Aim
@@ -354,16 +354,60 @@
 endFile;
+%0Aimport java.awt.Color;%0Aimport java.io.File;
 %0A%0A/**%0A *
@@ -495,107 +495,631 @@
 nel 
-%7B%0A%0A    public SendFileResultPanel(SendFile sendFile) %7B%0A        add(new WebLabel(%22Test
+implements SendFile.Listener %7B%0A%0A    private final WebTextArea text;%0A    private int fileCount;%0A    %0A    public SendFileResultPanel(SendFile operation) %0A    %7B%0A        text = new WebTextArea();%0A        text.setForeground(Color.white);%0A        text.setBackground(Color.black);%0A        add(text);%0A        %0A        fileCount = 0;%0A        %0A        operation.setListener(this);%0A    %7D%0A%0A    @Override%0A    public void onFileSent(File file) %7B%0A        String size = FileHelper.byteCountToReadable(file.length(), true);%0A        text.append((fileCount == 0 ? %22%22 : %22%5Cn%22) + file.getName() +%22 sent (%22 + size +
 %22)
+%22
 );%0A    
-%7D
+    fileCount++;
 %0A    
+%7D
 %0A%7D%0A

Create the SendFileResultPanel