daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Oct 28th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Abfrage {
  2.  
  3.     public Abfrage(String[] namen, File file) {
  4.         int lenght = 1920;
  5.         int width = 1080;
  6.         JFrame frame = new JFrame("Supertsar");
  7.         JButton buttonJa = new JButton("Ja");
  8.         JButton buttonNein = new JButton("Nein");
  9.         JPanel panel = new JPanel();
  10.         JPanel pfad = new JPanel();
  11.         JLabel label = new JLabel();
  12.         JLabel labelPfad = new JLabel();
  13.        
  14.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  15.        
  16.         frame.setSize(lenght, width);
  17.         pfad.setLayout(new BoxLayout(pfad, BoxLayout.Y_AXIS));
  18.         panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
  19.         panel.setBorder(BorderFactory.createEmptyBorder(750,790,10,10));
  20.         buttonJa.setBounds(600, 800, 150, 50);
  21.         buttonNein.setBounds(870, 800, 150, 50);
  22.        
  23.         pfad.add(labelPfad);
  24.         panel.add(label);
  25.         frame.add(buttonJa);
  26.         frame.add(buttonNein);
  27.         frame.add(panel);
  28.         frame.add(pfad);
  29.         labelPfad.setText("tttt");
  30.         label.setText(namen[0]);
  31.         frame.setVisible(true);
  32.        
  33.  
  34.     }
  35.  
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top