FileDocCategorySizeDatePackage
Main.javaAPI DocAzureus 3.0.3.42304Thu Feb 09 19:43:20 GMT 2006org.gudy.azureus2.applet

Main

public class Main extends Applet
author
Olivier

Fields Summary
JPanel
appletPanel
JLabel
lFileName
JLabel
lDownSpeed
JLabel
lPercentDone
String
url
String
savePath
org.gudy.azureus2.core3.download.DownloadManager
dm
Constructors Summary
public Main()

    appletPanel = new JPanel();
    GridLayout layout = new GridLayout(3,2);
    appletPanel.setLayout(layout);
    
    appletPanel.add(new JLabel("File :"));
    lFileName = new JLabel();
    appletPanel.add(lFileName);
    
    appletPanel.add(new JLabel("Down Speed :"));
    lDownSpeed = new JLabel();
    appletPanel.add(lDownSpeed);
        
    appletPanel.add(new JLabel("% done :"));
    lPercentDone = new JLabel();
    appletPanel.add(lPercentDone);  
    
    
    //Initialize parameters
    url = this.getParameter("torrentUrl");
    JFileChooser fileChooser = new JFileChooser();
    int result = fileChooser.showSaveDialog(this);
    if(result == JFileChooser.APPROVE_OPTION)
      savePath =  fileChooser.getSelectedFile().getName();
      
    System.out.println(url + "\n" + savePath);   
      
    
    this.add(appletPanel);
    this.setSize(200,100);
  
Methods Summary