This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Try this one out , it seems u didnt give the relative path to the image. 1) The first argument to the ImageIcon constructor specifies the file to load, relative to the directory containing the application's class file. 2) The second argument provides a description of the icon.
ImageIcon icon = new ImageIcon("images/middle.gif", "Inam Reyi "); label1 = new JLabel("some text", icon, JLabel.CENTER);