Hello to all. I'm a
Java newbie (sort of).
My question is this: Why won't this code compile:
****************************************
package tutorials;
import javax.swing.*; // <== This package does not exist anywhere on my machine!
public class HelloWorld {
private JFrame frame; // <== Cannot resolve symbol: 'JFrame'
public void testCreate() {
System.out.println ("Hello World");
}
}
****************************************
My Java environment:
Originally, I had SE JDK 1.6.0-45 installed but that did not seem to contain any 'swing' package(s).
So, I uninstalled that and downloaded and installed another version from Oracle: SE JDK 1.7.0-51.
This made no difference whatsoever.
(The rest of the story: Windows 7 Pro-64 (up-to-date) with Intelli-J Community Edition v. 13.0.3,
JUnit 4.11)
This stuff has been working great for 6 months with every other aspect of Java.
Where are the 'swing' packages?
Do I need to install
J2EE instead?
I've 'Googled' this question for several hours and nobody seems to be able to tell me where the swing packages are located.
Can someone please help ?
I am fresh out of ideas.
Thanks a big, fat, hairy bundle.
-- BugMeister