Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Abfrage {
- public Abfrage(String[] namen, File file) {
- int lenght = 1920;
- int width = 1080;
- JFrame frame = new JFrame("Supertsar");
- JButton buttonJa = new JButton("Ja");
- JButton buttonNein = new JButton("Nein");
- JPanel panel = new JPanel();
- JPanel pfad = new JPanel();
- JLabel label = new JLabel();
- JLabel labelPfad = new JLabel();
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(lenght, width);
- pfad.setLayout(new BoxLayout(pfad, BoxLayout.Y_AXIS));
- panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
- panel.setBorder(BorderFactory.createEmptyBorder(750,790,10,10));
- buttonJa.setBounds(600, 800, 150, 50);
- buttonNein.setBounds(870, 800, 150, 50);
- pfad.add(labelPfad);
- panel.add(label);
- frame.add(buttonJa);
- frame.add(buttonNein);
- frame.add(panel);
- frame.add(pfad);
- labelPfad.setText("tttt");
- label.setText(namen[0]);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement