Guest User

Untitled

a guest
Aug 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.34 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package videolib;
  6.  
  7. import javax.swing.*;
  8. import java.awt.*;
  9. import java.util.*;
  10. import java.awt.event.*;
  11. /**
  12.  *
  13.  * @author anma1701
  14.  */
  15. public class videoGui extends JFrame implements ActionListener{
  16.  
  17.     public JPanel panel1;
  18.     public JPanel panel2;
  19.     public JTextArea utData;
  20.     public JButton print;
  21.     LinkedList videoLista;
  22.     public videoLista v;
  23.     public JButton clear;
  24.  
  25.    
  26.  
  27.  
  28.     public videoGui(videoLista vin) {
  29.         super("Andreas Video Adder");
  30.         this.setSize(640,480);
  31.         this.setVisible(true);
  32.         videoLista = new LinkedList();
  33.         v=vin;
  34.         panel1 = new JPanel();
  35.         panel2 = new JPanel();
  36.         print = new JButton("asdf");
  37.         utData = new JTextArea("");
  38.         clear = new JButton();
  39.        
  40.        
  41.         // Huvudfönster
  42.         panel1.setLayout(new GridLayout(1,1));
  43.         panel2.setLayout(new GridLayout(2,2));
  44.         panel1.add(utData);
  45.         panel1.add(print);
  46.         panel1.add(panel2);  
  47.        
  48.        
  49.        
  50.  
  51.         //Outprint
  52.        
  53.     }
  54.  
  55.     public void actionPerformed(ActionEvent AE) {
  56.         if (AE.getSource() == print) {
  57.            
  58.             v.Print(videoLista);
  59.         }
  60.        
  61.        
  62.     }
  63. }
Add Comment
Please, Sign In to add comment