Hi,
I have an
applet that displays some Swing controls in a Container using a BorderLayout. I have a JLabel in the NORTH area, a JSlider in the CENTER, and a JButton in the SOUTH. I need to draw two lines (using AWT I suppose), in the EAST and WEST areas, respectively. I don't mind using absolute co-ordinates to position them where I want, but when I try, the lines first get painted on a white background. Clicking this brings the slider in a grey box over the top of them. The JLabel and JButton aren't visible.
I'm positioning all the Swing components in the init() method, and drawing the lines in a separate paint(Graphics g) method. How do I get this to work?
This
picture shows what I need (I've drawn the two lines in manually here).
Thanks for any help.