Sebastian Wong wrote:My drawings is done using by overriding the paint() method as the paintComponent() method does not work in my case.
Richard Tookey wrote:
Sebastian Wong wrote:My drawings is done using by overriding the paint() method as the paintComponent() method does not work in my case.
You should use the paintComponent() method and if overriding the paintComponent() method does not work then you are doing something wrong but of course without seeing the faulty paintComponent() method it is impossible to say what.
Rob Camick wrote:You don't need any listener to do scrolling. Scrolling happens automatically. Make sure you override the getPreferredSize() method of the panel where you do custom painting.
Post a SSCCE that demonstrates your problem, if you need more help.
knowledge is the difference between drudgery and strategic action -- tiny ad
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|