home *** CD-ROM | disk | FTP | other *** search
- package com.sfs.iavazip;
-
- import com.sfs.awt.TexturePanel;
- import java.awt.BorderLayout;
- import java.awt.Button;
- import java.awt.Container;
- import java.awt.FlowLayout;
- import java.awt.GridLayout;
- import java.awt.Label;
- import java.awt.Panel;
- import java.awt.TextField;
- import java.awt.event.ActionListener;
-
- class LicensePanel extends Panel {
- public TextField userName;
- public TextField registrationCode;
-
- public LicensePanel(iavaZip var1, ActionListener var2) {
- ((Container)this).setLayout(new BorderLayout());
- 1 var3 = new 1(this);
- ((Container)var3).setLayout(new GridLayout(4, 1));
- ((Container)var3).add(new Label("Enter user ID:"));
- ((Container)var3).add(this.userName = new TextField(System.getProperty("user.name")));
- ((Container)var3).add(new Label("Enter license key:"));
- ((Container)var3).add(this.registrationCode = new TextField(""));
- ((Container)this).add("Center", var3);
- TexturePanel var4 = new TexturePanel(this, var1.backgroundTexture);
- ((Container)var4).setLayout(new FlowLayout());
- Button var5 = new Button("License iavaZIP now");
- ((Container)var4).add(var5);
- var5.addActionListener(var2);
- var5 = new Button("Cancel");
- ((Container)var4).add(var5);
- var5.addActionListener(var2);
- ((Container)this).add("South", var4);
- }
- }
-