Jump to content

Osbot alternative to useDefaultPaint(false)?


adc

Recommended Posts

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 by todamach
Link to comment
Share on other sites

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

 

  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...