开发者

Where can I find the source code for javax.swing.BorderLayout class please?

Where can I find the source code for ja开发者_Go百科vax.swing.BorderLayout class, please?


In the JDK that you dowloaded, in the src.zip file.


Assuming you mean java.awt.BorderLayout: http://www.docjar.com/html/api/java/awt/BorderLayout.java.html or google.


This has already been long before answered, but here I provide an 'once and for all' solution that beats the rest in elegance.

In my experience, this is the most convenient way of accessing any Java source. However, it's Eclipse-only.

After installing a Java Decompiler Eclipse plug-in (e.g. Eclipse Class Decompiler, JD, etc.), you are almost there. Now, whenever you need source, press F3 to go to its declaration, once the name has been highlighted.

Workflow:

  • Just put javax.swing.BorderLayout; somewhere,
  • select BorderLayout,
  • press F3

That's basically it.

Edit: As pointed out by @cricket_007 the same goes for InteliJ. (w/ Ctrl+B)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜