import magic
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 05 Jul 2005 10:16:31 GMT
I understand that I import classes in Java so that it can figure out
if the method signatures on the calls match those off the imported
callees. IT need help finding the packages of the class names I use.
Why is it that if I write:
Font temp = x.getFont();
y.setFont( temp );
I need to import java.awt.Font;
but If I write:
y.setFont( x.getFont() );
I don't.
It seem on first breath they are equally difficult problems.
So how come Java needs help with import on the first but not the
second.
It seems odd that some trivial detail as to whether you use a temp
variable somewhere, e.g. added for debugging, that it should any
bearing on something so overarching as imports. I am still using the
exact same classes!
I hate the way you have to keep putting them in and taking them out.
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
.
- Follow-Ups:
- Re: import magic
- From: Dale King
- Re: import magic
- From: Boudewijn Dijkstra
- Re: import magic
- From: Tim Miller
- Re: import magic
- Prev by Date: Re: more than 16 significant figures
- Next by Date: Re: import magic
- Previous by thread: getting a RuntimeException in Vector.add()
- Next by thread: Re: import magic
- Index(es):
Relevant Pages
|