java - How to continue draw something on JPanel after clicked the button without repaint? -


i have define jpanel named drawpanel, , button named jbutton1 actionlistener. want continue draw on drawpanel after clicked jbutton1. , not want clear drawpanel first , draw more things, want continue draw on drawpanel , show in jframe.

check out custom painting approaches 2 common ways this:

  1. keep list of objects want paint , iterated through list every time.
  2. paint bufferedimage , paint bufferedimage.

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -