Is it normal that whenever I debug a Java application that has a swing gui using Eclipse it fails to debug properly whenever it reaches a line that has something to do with swing.
Heres an example:
int number = 0; //Debugs fine
textbox.setText(Integer.toString(number)); //Takes me to this window saying "Source not Found"
Below is an image detailing what comes up when the debugger reaches a line that has something to do with the swing GUI:
Make sure you have a JDK installed; there should be a file src.zip
in the root folder of your Java installation. Without that, Eclipse can't find the sources.
Make sure Eclipse picks up the sources. There must a tiny overlay over the JARs in the JRE definition dialog for the first 5 entries or so. The more important one is rt.jar
There may be chance that you have put the your debug Break Point on source class too. i would like you to follow the following suggestion.
i hope this will work for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.