01  /*
02  * applet - AWT
03  * <applet code="aplayer.class" width="640" height="360"></applet>
04  * проверка через appletviewer player.html
05  */
06  import java.applet.*;
07  import java.awt.*;
08  import java.awt.event.*;
09  public class aplayer extends Applet implements ActionListener, MouseListener  
10  {  
11   Button bon, bpl, bpu, bst, bfor, bres, bof, bau;
12   Panel pl, pon, pme, pmo, pkn;
13   List me;
14   String m = " ";
15   Font f;
16   public void init()
17   {                 
18    f = new Font("Verdana", Font.BOLD, 15);
19    setLayout(new BorderLayout());           
20    setBackground(Color.cyan);pl = new Panel(); pl.setBackground(Color.black); add(BorderLayout.WEST, pl);
21    pmo = new Panel();
22    pmo.setBackground(Color.blue);	 
23    add(BorderLayout.CENTER, pmo);
24    pmo.addMouseListener(this);
25    pon = new Panel();
26    pon.setBackground(Color.black); 
27    pon.setLayout(new FlowLayout(FlowLayout.RIGHT));	 
28    pon.add(new Button("_"));
29    pon.add(new Button("O"));
30    add(BorderLayout.NORTH, pon);
31    me = new List(50, false); 
32    me.add("BBT_s07e11");
33    me.add("BBT_s07e12");
34    me.add("Friends_s03e09");
35    me.add("Friends_s03e10");          
36    me.add("Futurama_s02e21");
37    pme = new Panel();
38    pme.setBackground(Color.black);
39    add(BorderLayout.EAST, pme);
40    pme.add(me);
41    pkn = new Panel();
42    pkn.setBackground(Color.black);
43    pkn.setLayout(new FlowLayout(FlowLayout.LEFT));		 
44    pkn.add(new Button("PLAY"));
45    pkn.add(new Button("PAUSE"));
46    pkn.add(new Button("STOP"));
47    pkn.add(new Button("FOR"));
48    pkn.add(new Button("RES"));
49    add(BorderLayout.SOUTH, pkn); 	 
50   }
51   public Insets getInsets(){return new Insets(5, 5, 5, 5);}
52  }                
                       рис.1