home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Graphics;
-
- public class DialogWindow extends Applet {
- private OurFrame m_frame;
-
- public void start() {
- }
-
- public void stop() {
- }
-
- public String getAppletInfo() {
- return "Name: DialogWindow\r\n" + "Author: Stephan R. Davis\r\n" + "Created for Learn Java Now";
- }
-
- public void destroy() {
- }
-
- public void init() {
- ((Applet)this).resize(320, 240);
- this.m_frame = new OurFrame(this);
- }
-
- public void paint(Graphics g) {
- DialogData data = this.m_frame.getData();
- if (data != null) {
- g.drawString(data.toString(), 10, 20);
- }
-
- }
- }
-