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/scape/ItemNotAvailableDialog.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/ItemNotAvailableDialog.java')
| -rw-r--r-- | NET/worlds/scape/ItemNotAvailableDialog.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/NET/worlds/scape/ItemNotAvailableDialog.java b/NET/worlds/scape/ItemNotAvailableDialog.java new file mode 100644 index 0000000..0a23386 --- /dev/null +++ b/NET/worlds/scape/ItemNotAvailableDialog.java @@ -0,0 +1,62 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.Console; +/* */ import NET.worlds.console.DialogReceiver; +/* */ import NET.worlds.console.ImageButtons; +/* */ import NET.worlds.console.ImageButtonsCallback; +/* */ import NET.worlds.console.PolledDialog; +/* */ import java.awt.Component; +/* */ import java.awt.Event; +/* */ import java.awt.Rectangle; +/* */ import java.awt.Window; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class ItemNotAvailableDialog +/* */ extends PolledDialog +/* */ implements ImageButtonsCallback +/* */ { +/* */ private static final long serialVersionUID = 1L; +/* */ private ImageButtons ib; +/* */ +/* */ public ItemNotAvailableDialog(Window parent, DialogReceiver receiver) +/* */ { +/* 28 */ super(parent, receiver, Console.message("Not-Available"), false); +/* 29 */ setAlignment(1); +/* 30 */ Rectangle[] rects = new Rectangle[1]; +/* 31 */ rects[0] = new Rectangle(101, 22, 48, 19); +/* 32 */ this.ib = new ImageButtons(Console.message("notavail.gif"), rects, this); +/* 33 */ ready(); +/* */ } +/* */ +/* */ protected void build() +/* */ { +/* 38 */ add("Center", this.ib); +/* */ } +/* */ +/* */ public Object imageButtonsCallback(Component who, int which) +/* */ { +/* 43 */ done(false); +/* 44 */ return null; +/* */ } +/* */ +/* */ @Deprecated +/* */ public boolean keyDown(Event event, int key) +/* */ { +/* 50 */ if (key == 27) +/* 51 */ return done(false); +/* 52 */ if (key == 10) +/* 53 */ return done(false); +/* 54 */ return super.keyDown(event, key); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ItemNotAvailableDialog.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |