im recieving an error from this code
thanks in advance annieCode://declare vars //images Icon image1= new ImageIcon("image1.jpg"); Icon image2= new ImageIcon("image2.jpg"); //init() getContentPane().add(image0); image0.setBounds(12, 155, 100, 50); getContentPane().add(image1); image1.setBounds(25, 255, 100, 50); ????can anyone suggest why this will not appear these are the messages i recieve 1cannot resolve symbol: method add (javax.swing.Icon) in class java.awt.Container 2cannot resolve symbol: method setBounds (int,int,int,int) in interface javax.swing.Icon 3cannot resolve symbol: method add (javax.swing.Icon) in class java.awt.Container 4cannot resolve symbol: method setBounds (int,int,int,int) in interface javax.swing.Icon so i know its the four lines in init() what can i do to resolve this i think i have all the correct libraries i ineed in my applet??? import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.*; import java.io.*; import java.sql.*; import symantec.itools.db.beans.jdbc.*; import java.util.Date; import java.text.DateFormat;




Reply With Quote