I'm creating a canvas with GWT, and I have seen both solutions using Canvas.createIfSupported(); or new GWTCanvas();

Which one is the preferred, and why?

有帮助吗?

解决方案

Use Canvas. It's part of GWT. GWTCanvas is only in the incubator project, which is deprecated now.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top