home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / Java / AMReminder / MainWindow.java < prev    next >
MacBinary  |  1996-10-26  |  2.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Oct 26 15:57:06 1996, modified Sat Oct 26 15:57:06 1996, creator 'CWIE', type ASCII, 1837 bytes "MainWindow.java" , at 0x7ad 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 4d 61 69 6e 57 69 | 6e 64 6f 77 2e 6a 61 76 |..MainWi|ndow.jav|
|00000010| 61 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |a.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 07 2d 00 | 00 01 1e ae 98 1d 92 ae |......-.|........|
|00000060| 98 1d 92 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3c 00 00 00 |........|....<...|
|00000080| 2f 2f 20 4d 61 69 6e 57 | 69 6e 64 6f 77 2e 6a 61 |// MainW|indow.ja|
|00000090| 76 61 20 2d 2d 20 61 20 | 70 61 6e 65 6c 0d 2f 2f |va -- a |panel.//|
|000000a0| 20 67 65 6e 65 72 61 74 | 65 64 20 62 79 20 41 70 | generat|ed by Ap|
|000000b0| 70 4d 61 6b 65 72 0d 0d | 69 6d 70 6f 72 74 20 6a |pMaker..|import j|
|000000c0| 61 76 61 2e 61 77 74 2e | 4c 61 62 65 6c 3b 0d 69 |ava.awt.|Label;.i|
|000000d0| 6d 70 6f 72 74 20 6a 61 | 76 61 2e 61 77 74 2e 4c |mport ja|va.awt.L|
|000000e0| 69 73 74 3b 0d 69 6d 70 | 6f 72 74 20 6a 61 76 61 |ist;.imp|ort java|
|000000f0| 2e 61 77 74 2e 42 75 74 | 74 6f 6e 3b 0d 0d 69 6d |.awt.But|ton;..im|
|00000100| 70 6f 72 74 20 6a 61 76 | 61 2e 61 77 74 2e 43 6f |port jav|a.awt.Co|
|00000110| 6c 6f 72 3b 0d 69 6d 70 | 6f 72 74 20 6a 61 76 61 |lor;.imp|ort java|
|00000120| 2e 61 77 74 2e 45 76 65 | 6e 74 3b 0d 69 6d 70 6f |.awt.Eve|nt;.impo|
|00000130| 72 74 20 52 65 63 74 50 | 61 6e 65 6c 3b 0d 0d 2f |rt RectP|anel;../|
|00000140| 2f 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 70 75 62 6c |/-------|---.publ|
|00000150| 69 63 20 63 6c 61 73 73 | 20 4d 61 69 6e 57 69 6e |ic class| MainWin|
|00000160| 64 6f 77 20 65 78 74 65 | 6e 64 73 20 52 65 63 74 |dow exte|nds Rect|
|00000170| 50 61 6e 65 6c 0d 7b 0d | 09 4c 61 62 65 6c 09 09 |Panel.{.|.Label..|
|00000180| 09 6d 59 65 61 72 4c 61 | 62 65 6c 3b 0d 09 4c 61 |.mYearLa|bel;..La|
|00000190| 62 65 6c 09 09 09 6d 52 | 65 6d 69 6e 64 65 72 73 |bel...mR|eminders|
|000001a0| 4c 61 62 65 6c 4c 61 62 | 65 6c 3b 0d 09 4c 69 73 |LabelLab|el;..Lis|
|000001b0| 74 09 09 09 6d 52 65 6d | 69 6e 64 65 72 73 4c 69 |t...mRem|indersLi|
|000001c0| 73 74 3b 0d 09 42 75 74 | 74 6f 6e 09 09 09 6d 41 |st;..But|ton...mA|
|000001d0| 64 64 42 75 74 74 6f 6e | 3b 0d 09 42 75 74 74 6f |ddButton|;..Butto|
|000001e0| 6e 09 09 09 6d 45 64 69 | 74 42 75 74 74 6f 6e 3b |n...mEdi|tButton;|
|000001f0| 0d 09 42 75 74 74 6f 6e | 09 09 09 6d 44 65 6c 65 |..Button|...mDele|
|00000200| 74 65 42 75 74 74 6f 6e | 3b 0d 0d 09 2f 2f 2d 2d |teButton|;...//--|
|00000210| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 09 70 75 62 6c 69 63 |--------|..public|
|00000220| 20 4d 61 69 6e 57 69 6e | 64 6f 77 28 29 0d 09 7b | MainWin|dow()..{|
|00000230| 0d 09 09 73 75 70 65 72 | 28 29 3b 0d 0d 09 09 2f |...super|();..../|
|00000240| 2f 20 42 69 6e 64 69 6e | 67 4c 61 79 6f 75 74 20 |/ Bindin|gLayout |
|00000250| 62 20 3d 20 6e 65 77 20 | 42 69 6e 64 69 6e 67 4c |b = new |BindingL|
|00000260| 61 79 6f 75 74 28 29 3b | 0d 09 09 09 2f 2f 20 42 |ayout();|....// B|
|00000270| 69 6e 64 69 6e 67 4c 61 | 79 6f 75 74 20 69 73 20 |indingLa|yout is |
|00000280| 61 20 4c 61 79 6f 75 74 | 4d 61 6e 61 67 65 72 0d |a Layout|Manager.|
|00000290| 09 09 09 2f 2f 20 74 68 | 61 74 20 69 6d 70 6c 65 |...// th|at imple|
|000002a0| 6d 65 6e 74 73 20 22 62 | 69 6e 64 69 6e 67 22 20 |ments "b|inding" |
|000002b0| 6f 66 20 63 6f 6d 70 6f | 6e 65 6e 74 73 0d 09 09 |of compo|nents...|
|000002c0| 09 2f 2f 20 73 6f 20 74 | 68 61 74 20 74 68 65 79 |.// so t|hat they|
|000002d0| 20 72 65 73 69 7a 65 20 | 77 68 65 6e 20 74 68 65 | resize |when the|
|000002e0| 79 20 63 6f 6e 74 61 69 | 6e 65 72 20 69 73 20 72 |y contai|ner is r|
|000002f0| 65 73 69 7a 65 64 2e 0d | 09 09 09 2f 2f 20 42 69 |esized..|...// Bi|
|00000300| 6e 64 69 6e 67 4c 61 79 | 6f 75 74 20 77 61 73 20 |ndingLay|out was |
|00000310| 77 72 69 74 74 65 6e 20 | 62 79 20 61 20 52 6f 61 |written |by a Roa|
|00000320| 73 74 65 72 20 65 6e 67 | 69 6e 65 65 72 0d 09 09 |ster eng|ineer...|
|00000330| 09 2f 2f 20 61 6e 64 20 | 69 73 20 6e 6f 74 20 70 |.// and |is not p|
|00000340| 75 62 6c 69 63 6c 79 20 | 61 76 61 69 6c 61 62 6c |ublicly |availabl|
|00000350| 65 2e 0d 09 09 09 2f 2f | 20 49 66 20 42 69 6e 64 |e.....//| If Bind|
|00000360| 69 6e 67 4c 61 79 6f 75 | 74 20 62 65 63 6f 6d 65 |ingLayou|t become|
|00000370| 73 20 70 75 62 6c 69 63 | 6c 79 20 61 76 61 69 6c |s public|ly avail|
|00000380| 61 62 6c 65 0d 09 09 09 | 2f 2f 20 74 68 65 6e 20 |able....|// then |
|00000390| 41 70 70 4d 61 6b 65 72 | 20 77 69 6c 6c 20 67 65 |AppMaker| will ge|
|000003a0| 6e 65 72 61 74 65 20 63 | 6f 64 65 20 66 6f 72 20 |nerate c|ode for |
|000003b0| 69 74 2e 0d 09 09 2f 2f | 20 73 65 74 4c 61 79 6f |it....//| setLayo|
|000003c0| 75 74 28 62 29 3b 0d 09 | 09 73 65 74 4c 61 79 6f |ut(b);..|.setLayo|
|000003d0| 75 74 20 28 6e 75 6c 6c | 29 3b 0d 0d 09 09 72 65 |ut (null|);....re|
|000003e0| 73 69 7a 65 20 28 33 38 | 30 2c 20 32 34 38 29 3b |size (38|0, 248);|
|000003f0| 0d 0d 09 09 61 64 64 20 | 28 6d 59 65 61 72 4c 61 |....add |(mYearLa|
|00000400| 62 65 6c 20 3d 20 6e 65 | 77 20 4c 61 62 65 6c 20 |bel = ne|w Label |
|00000410| 28 22 31 39 39 36 22 29 | 29 3b 0d 09 09 6d 59 65 |("1996")|);...mYe|
|00000420| 61 72 4c 61 62 65 6c 2e | 72 65 73 68 61 70 65 20 |arLabel.|reshape |
|00000430| 28 33 31 30 2c 20 32 38 | 2c 20 35 30 2c 20 31 39 |(310, 28|, 50, 19|
|00000440| 29 3b 0d 0d 09 09 61 64 | 64 20 28 6d 52 65 6d 69 |);....ad|d (mRemi|
|00000450| 6e 64 65 72 73 4c 61 62 | 65 6c 4c 61 62 65 6c 20 |ndersLab|elLabel |
|00000460| 3d 20 6e 65 77 20 4c 61 | 62 65 6c 20 28 22 4c 69 |= new La|bel ("Li|
|00000470| 73 74 20 6f 66 20 52 65 | 6d 69 6e 64 65 72 73 3a |st of Re|minders:|
|00000480| 22 29 29 3b 0d 09 09 6d | 52 65 6d 69 6e 64 65 72 |"));...m|Reminder|
|00000490| 73 4c 61 62 65 6c 4c 61 | 62 65 6c 2e 72 65 73 68 |sLabelLa|bel.resh|
|000004a0| 61 70 65 20 28 31 36 2c | 20 35 36 2c 20 31 32 34 |ape (16,| 56, 124|
|000004b0| 2c 20 31 36 29 3b 0d 0d | 09 09 61 64 64 20 28 6d |, 16);..|..add (m|
|000004c0| 52 65 6d 69 6e 64 65 72 | 73 4c 69 73 74 20 3d 20 |Reminder|sList = |
|000004d0| 6e 65 77 20 4c 69 73 74 | 28 29 29 3b 0d 09 09 6d |new List|());...m|
|000004e0| 52 65 6d 69 6e 64 65 72 | 73 4c 69 73 74 2e 72 65 |Reminder|sList.re|
|000004f0| 73 68 61 70 65 20 28 31 | 36 2c 20 37 36 2c 20 33 |shape (1|6, 76, 3|
|00000500| 34 37 2c 20 31 31 36 29 | 3b 0d 09 09 6d 52 65 6d |47, 116)|;...mRem|
|00000510| 69 6e 64 65 72 73 4c 69 | 73 74 2e 61 64 64 49 74 |indersLi|st.addIt|
|00000520| 65 6d 20 28 22 6f 6e 65 | 22 29 3b 0d 09 09 6d 52 |em ("one|");...mR|
|00000530| 65 6d 69 6e 64 65 72 73 | 4c 69 73 74 2e 61 64 64 |eminders|List.add|
|00000540| 49 74 65 6d 20 28 22 74 | 77 6f 22 29 3b 0d 09 09 |Item ("t|wo");...|
|00000550| 6d 52 65 6d 69 6e 64 65 | 72 73 4c 69 73 74 2e 61 |mReminde|rsList.a|
|00000560| 64 64 49 74 65 6d 20 28 | 22 74 68 72 65 65 22 29 |ddItem (|"three")|
|00000570| 3b 0d 09 09 6d 52 65 6d | 69 6e 64 65 72 73 4c 69 |;...mRem|indersLi|
|00000580| 73 74 2e 61 64 64 49 74 | 65 6d 20 28 22 69 6e 66 |st.addIt|em ("inf|
|00000590| 69 6e 69 74 79 22 29 3b | 0d 0d 09 09 61 64 64 20 |inity");|....add |
|000005a0| 28 6d 41 64 64 42 75 74 | 74 6f 6e 20 3d 20 6e 65 |(mAddBut|ton = ne|
|000005b0| 77 20 42 75 74 74 6f 6e | 20 28 22 41 64 64 c9 22 |w Button| ("Add."|
|000005c0| 29 29 3b 0d 09 09 6d 41 | 64 64 42 75 74 74 6f 6e |));...mA|ddButton|
|000005d0| 2e 72 65 73 68 61 70 65 | 20 28 32 39 32 2c 20 32 |.reshape| (292, 2|
|000005e0| 31 32 2c 20 37 32 2c 20 | 32 30 29 3b 0d 09 09 6d |12, 72, |20);...m|
|000005f0| 41 64 64 42 75 74 74 6f | 6e 2e 73 65 74 42 61 63 |AddButto|n.setBac|
|00000600| 6b 67 72 6f 75 6e 64 20 | 28 43 6f 6c 6f 72 2e 77 |kground |(Color.w|
|00000610| 68 69 74 65 29 3b 0d 0d | 09 09 61 64 64 20 28 6d |hite);..|..add (m|
|00000620| 45 64 69 74 42 75 74 74 | 6f 6e 20 3d 20 6e 65 77 |EditButt|on = new|
|00000630| 20 42 75 74 74 6f 6e 20 | 28 22 45 64 69 74 c9 22 | Button |("Edit."|
|00000640| 29 29 3b 0d 09 09 6d 45 | 64 69 74 42 75 74 74 6f |));...mE|ditButto|
|00000650| 6e 2e 72 65 73 68 61 70 | 65 20 28 32 30 34 2c 20 |n.reshap|e (204, |
|00000660| 32 31 32 2c 20 37 32 2c | 20 32 30 29 3b 0d 09 09 |212, 72,| 20);...|
|00000670| 6d 45 64 69 74 42 75 74 | 74 6f 6e 2e 73 65 74 42 |mEditBut|ton.setB|
|00000680| 61 63 6b 67 72 6f 75 6e | 64 20 28 43 6f 6c 6f 72 |ackgroun|d (Color|
|00000690| 2e 77 68 69 74 65 29 3b | 0d 0d 09 09 61 64 64 20 |.white);|....add |
|000006a0| 28 6d 44 65 6c 65 74 65 | 42 75 74 74 6f 6e 20 3d |(mDelete|Button =|
|000006b0| 20 6e 65 77 20 42 75 74 | 74 6f 6e 20 28 22 44 65 | new But|ton ("De|
|000006c0| 6c 65 74 65 22 29 29 3b | 0d 09 09 6d 44 65 6c 65 |lete"));|...mDele|
|000006d0| 74 65 42 75 74 74 6f 6e | 2e 72 65 73 68 61 70 65 |teButton|.reshape|
|000006e0| 20 28 33 36 2c 20 32 31 | 32 2c 20 37 32 2c 20 32 | (36, 21|2, 72, 2|
|000006f0| 30 29 3b 0d 09 09 6d 44 | 65 6c 65 74 65 42 75 74 |0);...mD|eleteBut|
|00000700| 74 6f 6e 2e 73 65 74 46 | 6f 72 65 67 72 6f 75 6e |ton.setF|oregroun|
|00000710| 64 20 28 6e 65 77 20 43 | 6f 6c 6f 72 20 28 32 35 |d (new C|olor (25|
|00000720| 35 2c 20 30 2c 20 30 29 | 29 3b 09 2f 2f 20 52 65 |5, 0, 0)|);.// Re|
|00000730| 64 0d 09 09 6d 44 65 6c | 65 74 65 42 75 74 74 6f |d...mDel|eteButto|
|00000740| 6e 2e 73 65 74 42 61 63 | 6b 67 72 6f 75 6e 64 20 |n.setBac|kground |
|00000750| 28 43 6f 6c 6f 72 2e 77 | 68 69 74 65 29 3b 0d 09 |(Color.w|hite);..|
|00000760| 7d 0d 0d 09 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |}...//--|--------|
|00000770| 0d 09 70 75 62 6c 69 63 | 20 62 6f 6f 6c 65 61 6e |..public| boolean|
|00000780| 09 61 63 74 69 6f 6e 20 | 28 0d 09 09 45 76 65 6e |.action |(...Even|
|00000790| 74 09 65 29 0d 09 7b 0d | 09 09 72 65 74 75 72 6e |t.e)..{.|..return|
|000007a0| 20 66 61 6c 73 65 3b 0d | 09 7d 0d 7d 0d 00 00 00 | false;.|.}.}....|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000810| 70 4a ae ff 94 67 1e 20 | 0c 67 1a 20 4c 20 07 a0 |pJ...g. |.g. L ..|
|00000820| 27 55 8f 3e b8 02 20 4a | 5f 67 24 70 00 2d 40 00 |'U.>.. J|_g$p.-@.|
|00000830| 0f 4d 61 69 6e 57 69 6e | 64 6f 77 2e 6a 61 76 61 |.MainWin|dow.java|
|00000840| 02 00 00 00 54 45 58 54 | 43 57 49 45 00 00 c7 b3 |....TEXT|CWIE....|
|00000850| 00 00 54 45 58 54 43 57 | 49 45 00 00 c7 b3 c0 76 |..TEXTCW|IE.....v|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 ae 97 e5 50 00 00 | 07 2d 00 00 01 1e ba fc |.....P..|.-......|
|00000880| 1a 3c 1f 4a ae ff 94 66 | 42 20 6e 00 08 2f 10 4e |.<.J...f|B n../.N|
|00000890| ba fe 42 2d 40 ff 94 58 | 4f 66 0e 20 4c a0 23 70 |..B-@..X|Of. L.#p|
|000008a0| 00 2d 40 00 10 60 00 00 | d8 20 6e 00 08 22 6e ff |.-@..`..|. n.."n.|
|000008b0| 94 22 a8 00 04 20 6e 00 | 08 22 6e ff 94 23 68 00 |."... n.|."n..#h.|
|000008c0| 08 00 04 20 6e ff 94 21 | 45 00 08 4a 46 66 14 20 |... n..!|E..JFf. |
|000008d0| 6e ff 94 21 4c 00 0c 20 | 4c a0 2a 20 4c a0 49 60 |n..!L.. |L.* L.I`|
|000008e0| 00 00 9a 70 00 26 40 59 | 8f 2f 3c 73 6c 75 74 3f |...p.&@Y|./<slut?|
|000008f0| 3c bf 5b a9 a0 2d 5f ff | 90 67 58 59 8f 2f 2e ff |<.[..-_.|.gXY./..|
|00000900| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+