Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Draw something on JPanel  RSS feed

 
James Tan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It takes me much time to make clear how to draw something on a panel. Firstly I used the methods of Graphics drawing on panel directly, but as all know, it can not be reserved if the window changed. Then, I used BufferImage with the instruction from JavaRanch. It works well, and I finished my assignment at last.
However, are there any different methods to do this job. For me, a beginer, I can not think out any other methods, but I do not believe it is the only way.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!