This is long before the answer, but here I am providing the solution βonce and for allβ, which surpasses the rest in elegance.
In my experience, this is the most convenient way to access any Java source. However, this is only Eclipse.
After installing the Java Decompiler Eclipse plug-in (e.g. Decliler of the Eclipse class , JD , etc.), you are almost there. Now that you need the source, press F3 to go to its declaration as soon as the name is highlighted.
Workflow:
- Just put
javax.swing.BorderLayout; somewhere - select
BorderLayout , - press F3
Mainly.
Edit: As pointed out by @ cricket_007, the same goes for InteliJ. (w / Ctrl + B)
user8 source share