I attached the src.zip
that came with my JDK, but it seems to be missing a few files.
It's as if I don't have any of the sun.*;
packages. I would understand if they maybe got changed out for java.awt.AppContext
, but that doesn't exit.
I found AppContext
in Container.java
(been looking at how Oracle does things), but it shows me bytecode instead of actual code.
Where could I get these files? I looked around on google and found nothing /:
Another thing, when I manually import sun.awt
, my IDE shows me that the package exists, but no files in it. Maybe I need to upgrade my JDK? (version 7u45, not too bad)
EDIT on December 30, 2014: Still looking for an answer, now using JDK 8u25
These types can be found via the OpenJDK's jdk
GitHub Repository.
Here's the implementation for sun.awt.AppContext, which can be found under src > java.desktop > share > classes > sun > awt