Hi Luong, Your second paragraph answers your first paragraph :) CoveragePanel isn't part of the Geotools library, it's a class within the example app, ie. a source file in your project using the code under the heading "Rendering a grid coverage".
The second error is just a typo in your import statement... change this... import java.awt.color; to this... import java.awt.Color; and all will be well. Michael 2008/7/9 fx5900 <[EMAIL PROTECTED]>: > > Hi i am following the Image Lab lesson and i am adding the code, line by line > so i can understand what exactly is going on. I am up to the point where i > need to add the code CoveragePanel panel; but for some reason i get an error > message saying cannot find symbol CoveragePanel. Does anybody know which > import statement i need to use because i cannot see on listed. When i did > some reasearch i found out that it was linked to > melantha.coverage.gui.CoveragePanel but can't see this on the lesson. Can > sombody tell me why that is the case. > > Also, i have created a simple java file called CoveragePanel for Rendering > Grid Coverage section, but when adding the setBackground(Color.WHITE); code > i have an error cannot find symbol. Do i also need to place this as > dependecy or download the swing/awt api or something. > > > > > package org.luong; > > import javax.swing.JPanel; > import java.awt.color; > > > /** > * > * @author > */ > public class CoveragePannel extends JPanel { > CoveragePannel () > { > setBackground(Color.WHITE); > } > > > } > > > Cheers > -- > View this message in context: > http://www.nabble.com/Coverage-Pannel-Problem-tp18349789p18349789.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users