Uses 2805K of libraries. Click here for Pure Java version (8437L/56K/203K).
!7 p { File jdkLocation = userDir("jdk1.8.0_112"); // example showSourceCodeOfJDKClass(JTable.class, jdkLocation); } svoid showSourceCodeOfJDKClass(Class c, File jdkLocation) { File srcZip = new File(jdkLocation, "src.zip"); if (!srcZip.exists()) fail(f2s(srcZip) + " not found"); S path = classNameToJavaFile(c); S text = loadTextFileFromZip(srcZip, path); if (text == null) fail(path + " not found in " + f2s(srcZip)); editJavaX(path, text); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007119 |
| Snippet name: | Show source code of a JDK class [demo] |
| Eternal ID of this version: | #1007119/6 |
| Text MD5: | c9b7e0c26dc83f7ce113ae441dcbbea6 |
| Transpilation MD5: | 4d4ed507fc5560d5a0cb98df78784a03 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-28 18:06:17 |
| Source code size: | 477 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 790 / 926 |
| Version history: | 5 change(s) |
| Referenced in: | #1015846 - Show source code of a JDK class v2 [try to find src.zip automatically, OK] |