GUI Problem

Hi every body
i made a JPanel with a custom background (photo) and it contains many labels (label1 ... label 4)
each label (i) with a custom photo (photo i) as background ...
a JComboBox is made for showing a label and hidding all other labels by selecting the desired label ...
the problem is :
when i select label1 for example : okey it shows the photo1
when i select label2 for example : it shows the photo1 and photo2 still appears
and when i select label3 also photos 1 2 3 are visibles one over others ... and also the Jpanel main photo is no longer visible...
(each time i resize the application window a little, the photo1 photo2 disappear correctly but Jpanel main photo is still invisible...)

Re: GUI Problem

Re: GUI Problem

No, don't pretend that Darryl never replied so you can keep doing as little as possible. Create an SSCCE and THEN you'll get "any help". First you make some effort to present a clear problem description.

Re: GUI Problem

Hi all,
thanks for your replies above....
the complete code is too long and i can NOT paste it here completely ...
here is a short but clear explanation :
First i made many labels (3 for example) with a custom background and put them in a main JPanel :

/// the main Panel
mainPanel = new JPanel();
mainPanel.setBounds(0,30,1420,830);
mainPanel.setLayout(null);

the problem still exists : When i choose Label 2 for example : the Label 2 is Visible okey, but the label 1 is also still visible and there is a clutter of labels...
Please note that : if i resize the window a little (make it bigger or smaller a little) the label 1 disappears ....

Re: GUI Problem

Please place your code between code tags [CODE][/CODE]. And where is the SSCCE? I can't answer your question as presented but I have done enough graphics programming to know that it doesn't take much code to put a couple of buttons in a JPanel.