lable hides image in frame

Hello

I am trying to display a label over a chart but the lable hides the chart

Can anyone help me see what parametres I have to set to stop this from happening?

super("Chart");

JLabel label;

chart ch = new chart();

add(ch);

add(new Label("Hi There!"));

setLayout(new FlowLayout(FlowLayout.CENTER, 10, 10));

setSize(400, 400);

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );

setVisible(true);

Thanks :-)

[486 byte] By [concretea] at [2007-11-26 21:16:58]
# 1
Set the layout before you add() the components. In addition, FlowLayout goes left to right, so you might want to give a vertical BoxLayout a try.#
duckbilla at 2007-7-10 2:55:37 > top of Java-index,Java Essentials,New To Java...