XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Sat Dec 01, 2007 4:21 pm
So I have to make a program for school and I refactored the code so that I could follow it (everything was bunched up into 1 class which was very difficult to follow) and now, I can't get it to compile. ;_;
What gets me is that I'm getting an compile-time error on the default Java classes.
Code: Select all
cannot find symbol
symbol : class Border
location: package javax.swing
import javax.swing.Border;
^Code: Select all
cannot find symbol
symbol : class Border
location: class MyClass
Border border = BorderFactory.createLineBorder(Color.black);
^
I'm lost. o.o
Would anyone happen to have any insight on this problem?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Dec 01, 2007 4:28 pm
javax.swing.border, not javax.swing.Border.
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Sat Dec 01, 2007 4:34 pm
^_^
So, when I import a package, it doesn't automatically import subpackages? Ohhh... Okay.
I need to have both:
and
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Dec 01, 2007 4:35 pm
Correct, subpackages are not imported automatically.