   [java] I'm sorry bout the upfrontness of the q
  I''m sorry bout the upfrontness of the q...but what''s wrong with this code ... the jb JLabel isn''t displaying ii, but if i put text in it''s fine ... middle.jpg is in the right folder ... i''ve looked at the java tutorials ...I can''t make heads or tails of it ... Creature is working perfectly too. I''d love to be able to make the image appear ... sorry about being so upfront ... thank you for your timeimport java.awt.event.*;import java.awt.*;import javax.swing.*;import javax.swing.event.*;import java.io.*;import java.util.*;class LLines extends JFrame implements ActionListener, WindowListener{    public Creature player1 = new Creature();    public Creature player2 = new Creature(1,100,2);    public JTextField t;    public JLabel ap;    public JLabel bp;    public JLabel jb;    public ImageIcon ii;   public LLines()    {   setTitle("Life Lines");   t = new JTextField(25);   ap = new JLabel();   bp = new JLabel();   ii = new ImageIcon("middle.jpg");   jb = new JLabel(ii);   init();    }   public void init()    {   getContentPane().setLayout(null);   getContentPane().add(t);   getContentPane().add(ap);   getContentPane().add(bp);   getContentPane().add(jb);   positions();   listen();    }   public void positions()    {   setLocation(10,10);   setSize(500,500);   t.setLocation(10,35);   t.setSize(75, 20);   ap.setLocation(90,30);   ap.setSize(150, 20);   bp.setLocation(250,30);   bp.setSize(150, 20);   ap.setText("Player1 POWER " + player1.power + ".");   bp.setText("Player2 POWER " + player2.power + ".");   jb.setIcon(ii);   jb.setSize(20,22);   jb.setLocation(200,200);   getContentPane().validate();   show();    }   public void listen()    {   addWindowListener(this);   t.addActionListener(this);    }   public void actionPerformed(ActionEvent e)    {   if(e.getSource().equals(t))   {  String temp = t.getText();  if (temp.compareTo("close") == 0)  { dispose();  }  t.setText("");   }    }   public void windowActivated(WindowEvent e)    {    }   public void windowClosed(WindowEvent e)    {    }   public void windowClosing(WindowEvent e)    {   dispose();    }   public void windowDeactivated(WindowEvent e)    {    }   public void windowDeiconified(WindowEvent e)    {    }   public void windowIconified(WindowEvent e)    {    }   public void windowOpened(WindowEvent e)    {    }} 
  Why are you not using a layout manager? that could be your problem but it shouldn''t be. I''ll have to look closer at your code to see more, but I have to go back to work now. I''ll come bacl later and have a look, if no one else has solved it... ;  look at this site, the info you want should be on it...http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html ;  Uh, same here, a layout manager might be useful, but probably not the problem, unless all the jPanels are stacking, how do you know the other panels are visible?You might want to look at WindowAdapter class -- just an aside. ;  I went to that site before i posted the q ... and the layout manager didn't have anything to do with it (I've tried with different layout managers and I like not having one the best), however it's no rush on the answer because the group of us planned on a different path in design so i can use straight text instead. Thanks for the help, and if you figure out the answer I do want to figure it out (there is just no rush).   I know the other panels are visible because I can see them and i can see jb if i add text too, just i don't see the picture. You don't need a layout manager if you are willing to manage the layout yourself (which i'm willing to do).Thank you for your time and patienceGod bless-Gryfang   [edited by - gryfang on February 3, 2004 8:54:19 PM]