home *** CD-ROM | disk | FTP | other *** search
- import java.awt.BorderLayout;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Event;
- import java.awt.Frame;
- import java.awt.Graphics;
- import java.awt.Window;
-
- class AnalyzerFrame extends Frame {
- DigSim applet;
- AnalyzerPanel MyAnalyzerPanel;
-
- public AnalyzerFrame(DigSim var1) {
- super("Logic analyzer");
- this.applet = var1;
- ((Container)this).setLayout(new BorderLayout());
- ((Container)this).add("Center", this.MyAnalyzerPanel = new AnalyzerPanel(var1, this));
- ((Component)this).resize(400, 250);
- ((Window)this).show();
- ((Component)this).resize(400, 250);
- ((Component)this).repaint();
- }
-
- public void paint(Graphics var1) {
- if (this.MyAnalyzerPanel != null) {
- this.MyAnalyzerPanel.repaint();
- }
-
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 201) {
- ((Component)this).hide();
- this.applet.MyAnalyzerFrame = null;
- return true;
- } else {
- return super.handleEvent(var1);
- }
- }
- }
-