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

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

+6
source share
3 answers

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

+11
source

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

+5
source

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)

0
source

Source: https://habr.com/ru/post/891648/


All Articles