Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23230

Re: What is the import for a Layer

From Arved Sandstrom <asandstrom2@eastlink.ca>
Newsgroups comp.lang.java.programmer
Subject Re: What is the import for a Layer
References <32362f98-0254-4534-b5c7-03c05878f880@googlegroups.com> <515caac7$0$32111$14726298@news.sunsite.dk>
Message-ID <P527t.313515$SE5.264497@newsfe28.iad> (permalink)
Organization Public Usenet Newsgroup Access
Date 2013-04-03 19:32 -0300

Show all headers | View raw


On 04/03/2013 07:18 PM, Arne Vajhøj wrote:
> On 4/3/2013 6:01 PM, clusardi2k@aol.com wrote:
>> I've got a project that doesn't reconize "Layer". Is there something
>> that I can try importing to get past this error.
>
> There may be many Layer classes out there.
>
> One is org.jfree.ui.Layer.
>
> You IDE should be able to suggest something.
>
> Arne
>
>
Also, is there a fully-qualified import statement already in the source 
file, for a Layer class or interface? If not, what is the package of the 
class that needs Layer? These are ways of identifying what Layer is 
required, that and looking at the source to see what kinds of methods 
are invoked on Layer objects, and matching that with APIs you discover 
by Googling.

It's not a safe attitude to "get past" errors, not with imports nor 
anything else. And even if you've got a number of libraries that supply 
class X, and you can successfully compile with several, only one may be 
correct at runtime. Don't rely on your IDE to make the right suggestion, 
it can only know the possibilities: you yourself must know what you need.

AHS

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What is the import for a Layer clusardi2k@aol.com - 2013-04-03 15:01 -0700
  Re: What is the import for a Layer Arne Vajhøj <arne@vajhoej.dk> - 2013-04-03 18:18 -0400
    Re: What is the import for a Layer Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-04-03 19:32 -0300
    Re: What is the import for a Layer "John B. Matthews" <nospam@nospam.invalid> - 2013-04-04 07:26 -0400
  Re: What is the import for a Layer Lew <lewbloch@gmail.com> - 2013-04-03 15:33 -0700

csiph-web