Java source

B

bob smith

So, I'm doing some Java Swing development, and I wanted to jump to the source of this method:

java.awt.Window.setVisible(boolean)

However, I'm on a Mac, and I'm not sure how to attach the source. Anyone know how to do this?

Thanks.
 
S

Stefan Ram

bob smith said:
So, I'm doing some Java Swing development, and I wanted to jump to the source of this method:
java.awt.Window.setVisible(boolean)

Unzip src.zip/jar and open »Window.java« in the folder »java/awt«.

Under Mac src.zip/jar might be in

/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/

or so. Or try this search in a web search engine (it should
be an engine with the G [generic] search engine interface):

"package java.awt" "class Window" "shaio" -summary
 
B

bob smith

So, I'm doing some Java Swing development, and I wanted to jump to the source of this method:



java.awt.Window.setVisible(boolean)



However, I'm on a Mac, and I'm not sure how to attach the source. Anyone know how to do this?



Thanks.



I went to the Apple Developer Connection and got some Java thing for Developers.

It was about 150 MB.


Then the source is here:

/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/src.jar


BTW, anyone know why I can't post images to this group?
 
R

Roedy Green

So, I'm doing some Java Swing development, and I wanted to jump to the source of this method:

java.awt.Window.setVisible(boolean)

However, I'm on a Mac, and I'm not sure how to attach the source. Anyone know how to do this?

This depends on your IDE. I use IntelliJ. I point to a word, hit
Ctrl-B and it takes me to the definition.

For it to work, you normally have to do some sort of configuring to
tell your IDE where to look for source code.

Try google "name-of-my-ide java jump to definition source"
--
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development
time.
~ Tom Cargill Ninety-ninety Law
 
J

Joerg Meier

This depends on your IDE. I use IntelliJ. I point to a word, hit
Ctrl-B and it takes me to the definition.
For it to work, you normally have to do some sort of configuring to
tell your IDE where to look for source code.

On Eclipse, it's F3. If the source is not attached, it will ask you to
locate it.

Liebe Gruesse,
Joerg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top