adc Posted June 27, 2014 Share Posted June 27, 2014 As in the topic, how exactly do I go about disabling default paint in Osbot2? I can't seem to find a method for it in the API. Also, onPaint is still the correct method in which to draw my paint, right? I've been having issues porting to Osbot2 regarding my paint simply not showing up, whereas it did in Osbot 1.8.15. Link to comment Share on other sites More sharing options...
todamach Posted June 27, 2014 Share Posted June 27, 2014 (edited) public void onPaint(Graphics2D g) { Graphics2D gr = (Graphics2D) g; } Does your onPaint method looks like this? Because I had the same problem, and it was Graphics instead of Graphics2D, i think. I was watching osbot1 paint guide to make a paint for osbot v2, so situation is the same. Edited June 27, 2014 by todamach Link to comment Share on other sites More sharing options...
Precise Posted June 27, 2014 Share Posted June 27, 2014 public void onPaint(Graphics2D g) { Graphics2D gr = (Graphics2D) g; } Does your onPaint method looks like this? Because I had the same problem, and it was Graphics instead of Graphics2D, i think. I was watching osbot1 paint guide to make a paint for osbot v2, so situation is the same. public void onPaint(Graphics2D gr) { } why not that? :P 2 Link to comment Share on other sites More sharing options...
todamach Posted June 27, 2014 Share Posted June 27, 2014 Honestly? No idea. Mine works, and I'm happy Link to comment Share on other sites More sharing options...
Laz Posted June 27, 2014 Share Posted June 27, 2014 Take a look at this method. http://osbot.org/api/org/osbot/rs07/api/Mouse.html#setDefaultPaintEnabled(boolean) It's documented in the API and you can see the rest of the documentation here: http://osbot.org/api/ 1 Link to comment Share on other sites More sharing options...