Clazz.declarePackage ("javajs.swing"); Clazz.load (["javajs.swing.JContainer"], "javajs.swing.JDialog", ["javajs.awt.Color", "javajs.swing.JContentPane", "JU.SB"], function () { c$ = Clazz.decorateAsClass (function () { this.defaultWidth = 600; this.defaultHeight = 300; this.contentPane = null; this.title = null; this.html = null; this.zIndex = 9000; this.loc = null; Clazz.instantialize (this, arguments); }, javajs.swing, "JDialog", javajs.swing.JContainer); $_M(c$, "setZIndex", function (zIndex) { this.zIndex = zIndex; }, "~N"); Clazz.makeConstructor (c$, function () { Clazz.superConstructor (this, javajs.swing.JDialog, ["JD"]); this.add (this.contentPane = new javajs.swing.JContentPane ()); this.setBackground (javajs.awt.Color.get3 (210, 210, 240)); this.contentPane.setBackground (javajs.awt.Color.get3 (230, 230, 230)); }); $_M(c$, "setLocation", function (loc) { this.loc = loc; }, "~A"); $_M(c$, "getContentPane", function () { return this.contentPane; }); $_M(c$, "setTitle", function (title) { this.title = title; }, "~S"); $_M(c$, "pack", function () { this.html = null; }); $_M(c$, "validate", function () { this.html = null; }); $_M(c$, "setVisible", function (tf) { if (tf && this.html == null) this.setDialog (); Clazz.superCall (this, javajs.swing.JDialog, "setVisible", [tf]); }, "~B"); $_M(c$, "dispose", function () { { { SwingController.dispose(this); }}}); $_V(c$, "repaint", function () { this.setDialog (); }); $_M(c$, "setDialog", ($fz = function () { this.html = this.toHTML (); { SwingController.setDialog(this); }}, $fz.isPrivate = true, $fz)); $_V(c$, "toHTML", function () { this.renderWidth = this.getSubcomponentWidth (); if (this.renderWidth == 0) this.renderWidth = this.defaultWidth; this.renderHeight = this.contentPane.getSubcomponentHeight (); if (this.renderHeight == 0) this.renderHeight = this.defaultHeight; var h = this.renderHeight - 25; var sb = new JU.SB (); sb.append ("\n