Uses 2805K of libraries. Click here for Pure Java version (8437L/56K/203K).
1 | !7 |
2 | |
3 | p { |
4 | File jdkLocation = userDir("jdk1.8.0_112"); // example |
5 | showSourceCodeOfJDKClass(JTable.class, jdkLocation); |
6 | } |
7 | |
8 | svoid showSourceCodeOfJDKClass(Class c, File jdkLocation) { |
9 | File srcZip = new File(jdkLocation, "src.zip"); |
10 | if (!srcZip.exists()) fail(f2s(srcZip) + " not found"); |
11 | S path = classNameToJavaFile(c); |
12 | S text = loadTextFileFromZip(srcZip, path); |
13 | if (text == null) fail(path + " not found in " + f2s(srcZip)); |
14 | editJavaX(path, text); |
15 | } |
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: | 550 / 635 |
Version history: | 5 change(s) |
Referenced in: | [show references] |