Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with having Canvas and Panel rendering on Frame for animation

Jibby Lala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,
i have problem with canvas Jpanel and need optimized solution
i got this design from web

i have three classes :
one is for animation which is canvas(BallPanel), one is frame(Main) and one is panel for swing controls(ControlPanel)

Main is rending both Controlpanel and BallPanel, but in the end, i can't see the drawworld() rendering from BallPanel but i can only ControlPanel
i can't see animation and black background
,seems like controlpanel is all on frame and canvas (black background) is behind that or somewhere but invisible


the Main class above start() is calling from here :

this is controlpanel whichis working as controller:

many thanks for any help and how we could handle such GUI with RMI animation and swing control for interacting/controlling that
can somebody tell optimized way.
jibby lala

P.S: i thought there is some thread problem while i m calling the remote method and rendering the drawworld, either of thread is going on suspension or blocked
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic