24 lines
674 B
Java
24 lines
674 B
Java
package gui;
|
|
|
|
import javax.swing.JFrame;
|
|
|
|
public class MainWindow extends JFrame{
|
|
|
|
private static final long serialVersionUID = 13L;
|
|
|
|
public MainWindow(){
|
|
JFrame fenetre = new JFrame();
|
|
fenetre.setTitle("Client");
|
|
fenetre.setSize(550, 250);
|
|
fenetre.setLocationRelativeTo(null);
|
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
fenetre.add(new ArgumentsGen());
|
|
//String[] listTest = {"test", "test2", "test3", "test4", "test5", "test6", "test7", "fichier1",
|
|
// "fichier2", "fichier3", "fichier4"};
|
|
//fenetre.add(new DownloadSelectionGen(listTest));
|
|
fenetre.setVisible(true);
|
|
ErrorFrame erreur = new ErrorFrame("ceci est une erreur");
|
|
}
|
|
|
|
}
|