Since GraphicsPanel is derived from JPanel, just implement PaintComponent()
in GraphicsPanel and do your drawing in there.
-Vince

At 01:54 PM 10/26/99 -0400, Eric Dofonsou wrote:
>  Humm I do not quite get it...
>  Why don't you just get a reference the panel object and call it's
>paint/repaint. methode....?????
>
>
>Don't read everything you believe.
>----------------------------------------------------------------
>VVeB : triple Ws dot audiophile dot com slash wrick
>|V|@!l : wrick at audiophile dot com
>---------------------------------------------( Eric Dofonsou )--
>On Tue, 26 Oct 1999, Tolga Sakman wrote:
>
>> Hello All,
>>
>> I am developing a swing application where the main frame is divided into 3
>> panels, w/ the following architecture:
>>
>> MainFrame (JFrame w/ BorderLayout)
>>  |
>>  |--ToolsPanel (JPanel, on the WEST)
>>  |
>>  |--StatusPanel (JPanel, on the SOUTH)
>>  |
>>  |--GraphicsPanel (JPanel, on the CENTER)
>>
>> I need my paint method to target the GraphicsPanel, but I -apparently- am
>> not able to do that, since I do not see any frames when I include the paint
>> method, and the shapes are drawn on the absolute JFrame. Can anybody
tell me
>> how to reference this specific panel? Do I need to have a Canvas object to
>> draw on?
>>
>> Thanks,
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Tolga Sakman
>> Project Engineer
>>
>> Analytic & Computational Research, Inc. -- ACRi
>> Cincinnati, OH
>> Phone: 513-794-0888
>> Fax: 513-794-9779
>> [EMAIL PROTECTED]
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> ===========================================================================
>> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
>> [EMAIL PROTECTED] and include in the body of the message "help".
>>
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA2D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>

-------------------------------------------------------
Vince Paragano
Media Vision Group, Vision Technology Laboratory
Sarnoff Corporation
609-734-2580, Fax 609-514-4000
Mailto:[EMAIL PROTECTED]
http://www.sarnoff.com

Mail:     CN 5300, Princeton, NJ 08543-5300
Shipping: 201 Washington Road, Princeton, NJ 08540-6449
-------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to