This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Hello,
I use eclipse as IDE,how can I see class implementation in this?for example,class ArrayList,when I click to open its deceleration,eclipse can't show that.
please,guide me step by step!
Thanks.
Go into your build path, find the jar file in question, and underneath it you'll find a "Source Attachment" option which you can edit.
Moein Sol
Greenhorn
Joined: Feb 13, 2012
Posts: 7
posted
0
Paul Clapham wrote:Go into your build path, find the jar file in question, and underneath it you'll find a "Source Attachment" option which you can edit.
I attached,but when I hold ctrl and click on for example JButton,it says that can not find JButton.class , but it show some text ( no in code format) under that.
What source did you attach? The javax.swing.JButton source is in the src.zip file that comes with the JDK. Eclipse should automatically pick up that zip file if you properly configured Eclipse to use a JDK (by default Eclipse uses a JRE). To configure a JDK, in Eclipse go to Window | Preferences | Java | Installed JREs, click the Add button and browse to the JDK home folder. Then make sure that the JDK is selected as the default installation.