diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/LogMailDialog.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/LogMailDialog.java')
| -rw-r--r-- | NET/worlds/console/LogMailDialog.java | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/NET/worlds/console/LogMailDialog.java b/NET/worlds/console/LogMailDialog.java new file mode 100644 index 0000000..b075d3a --- /dev/null +++ b/NET/worlds/console/LogMailDialog.java @@ -0,0 +1,76 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.awt.GridBagConstraints; +/* */ import java.awt.TextArea; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class LogMailDialog +/* */ extends OkCancelDialog +/* */ { +/* */ private static final long serialVersionUID = -6276776216084519247L; +/* */ private TextArea commentArea; +/* */ private String tagString; +/* */ +/* */ public LogMailDialog(DialogReceiver rcvr, String tag) +/* */ { +/* 27 */ super(Console.getFrame(), rcvr, Console.message("Log-Mailer"), Console.message("Dont-Report"), Console.message("Report"), null, false); +/* 28 */ this.tagString = tag; +/* 29 */ this.commentArea = new TextArea("", 5, 60, 1); +/* 30 */ this.commentArea.setEditable(true); +/* 31 */ setConfirmKey(-1); +/* */ } +/* */ +/* */ +/* */ protected void build() +/* */ { +/* 37 */ GridBagConstraints c = new GridBagConstraints(); +/* 38 */ if (this.tagString != null) { +/* 39 */ c.weightx = 1.0D; +/* 40 */ c.weighty = 1.0D; +/* 41 */ c.gridwidth = 0; +/* 42 */ add(this.gbag, new MultiLineLabel(this.tagString, 5, 5), c); +/* */ } +/* */ +/* */ +/* 46 */ c.weightx = 1.0D; +/* 47 */ c.weighty = 1.0D; +/* 48 */ c.gridwidth = 0; +/* 49 */ add(this.gbag, this.commentArea, c); +/* */ +/* */ +/* 52 */ int count = 0; +/* 53 */ if (this.okButton != null) +/* 54 */ count++; +/* 55 */ if (this.cancelButton != null) +/* 56 */ count++; +/* 57 */ c.gridwidth = count; +/* 58 */ c.weightx = 1.0D; +/* 59 */ c.weighty = 0.0D; +/* 60 */ if (this.okButton != null) +/* 61 */ add(this.gbag, this.okButton, c); +/* 62 */ if (this.cancelButton != null) { +/* 63 */ add(this.gbag, this.cancelButton, c); +/* */ } +/* */ } +/* */ +/* */ public String getComment() { +/* 68 */ return this.commentArea.getText(); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\LogMailDialog.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |