I have some code which uses java.awt.Color. I want to translate my Java Code to GWT. So I will emulate java.awt.Color in my GWT Project.
One approach is to write a module called java.AWT.gwt.xml whose source path is awt and a class called java.awt.Color.
The other approach is to create a folder com.google.gwt.emul.java.awt and create java.awt.Color class inside that path. Eclipse will show errors. But compiler will work.
Which one is appropriate way to add java.awt.Color for GWT?