problem with background image and buttons
Hi all,
i'm currently trying to design an interface for an hotel management system. The problem that i am getting is that i cant display my background picture and put four buttons on it.... I have succeeded only in displaying my background picture and having only a button displayed at the "south" border of the applet.
Can anyone help me out in solving this problem please?
Here is my code:
public static void main(String[]args)
{
JFrame frame=new JFrame("Super Hotels");
Container contentPane=frame.getContentPane();
Icon icon=new ImageIcon ("laplaya.jpg","Super Hotels");
JLabel lab=new JLabel(icon);
JScrollPane pane=new JScrollPane(lab);
contentPane.add(pane);
JButton b1=new JButton("Hotel Management");
b1.setToolTipText("Click here for Hotel Management!");
frame.setSize(550,400);
frame.show();
}

