This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The JPanel "p" is never added to the GUI, so it -and everything it contains- won't be drawn.
I have added code tags to your post, which keep code much more readable. Next time you post code, please use them as well - they're accessible through the "CODE" button beneath the text entry field when you post.
Joined: Aug 31, 2005
How to add separate panel for drawing lines and separate panel for controls like buttons.
Joined: Mar 22, 2005
This seems more of a Swing question than an applet question, so I'm moving this to our GUI forum. Please continue the discussion there. [ January 09, 2006: Message edited by: Ulf Dittmer ]