Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.BorderLayout;
- import java.awt.Dimension;
- import javax.swing.*;
- public class AfficheSave extends JFrame{
- private JTextField infoPath=new JTextField();
- private JPanel milieu=new JPanel();
- private JPanel sud=new JPanel();
- private DessinSave dessinLanceur=null;
- public AfficheSave(Traitement t){
- dessinLanceur=new DessinSave(t);
- milieu.setLayout(new BorderLayout());
- milieu.add(dessinLanceur);
- infoPath.setText("Path: " +t.getName());
- infoPath.setPreferredSize(new Dimension(275,20));
- infoPath.setHorizontalAlignment(JTextField.CENTER);
- infoPath.setEditable(false);
- sud.setLayout(new BorderLayout());
- sud.add(infoPath);
- this.setTitle("Lanceur pour " +t.getName().substring(t.getName().lastIndexOf('/')+1));
- this.setMinimumSize(new Dimension(300, 300));
- this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
- this.setLocationRelativeTo(null);
- this.getContentPane().add(milieu,BorderLayout.CENTER);
- this.getContentPane().add(sud,BorderLayout.SOUTH);
- this.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement