Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package videolib;
- import javax.swing.*;
- import java.awt.*;
- import java.util.*;
- import java.awt.event.*;
- /**
- *
- * @author anma1701
- */
- public class videoGui extends JFrame implements ActionListener{
- public JPanel panel1;
- public JPanel panel2;
- public JTextArea utData;
- public JButton print;
- LinkedList videoLista;
- public videoLista v;
- public JButton clear;
- public videoGui(videoLista vin) {
- super("Andreas Video Adder");
- this.setSize(640,480);
- this.setVisible(true);
- videoLista = new LinkedList();
- v=vin;
- panel1 = new JPanel();
- panel2 = new JPanel();
- print = new JButton("asdf");
- utData = new JTextArea("");
- clear = new JButton();
- // Huvudfönster
- panel1.setLayout(new GridLayout(1,1));
- panel2.setLayout(new GridLayout(2,2));
- panel1.add(utData);
- panel1.add(print);
- panel1.add(panel2);
- //Outprint
- }
- public void actionPerformed(ActionEvent AE) {
- if (AE.getSource() == print) {
- v.Print(videoLista);
- }
- }
- }
Add Comment
Please, Sign In to add comment