I recently dicovered the RuzzeeBorders stuff on the internet. So I
tried to use it. But it doesn't work. Anyway I have two questions:
1. How can I create rounded corners with GWT?
2. The second question refers to the code I wrote for testing Ruzzee
Borders:
I copy and pasted Borders.java from this page
http://gwt.components.googlepages.com/roundcorners
Then I wrote following (it's the example from the webpage):
public class Main implements EntryPoint {
public void onModuleLoad() {
HTML myHTML = new HTML("Cool");
Borders.simpleBorder( myHTML , 5 );
RootPanel.get().add( myHTML );
}
}
My Main.html looks like this:
<html>
<head>
<script language="javascript" src="RuzeeBorders/ruzeeborders.js"></
script>
<script language='javascript' src='RoundCorners.Main.nocache.js'></
script>
</head>
<body>
</body>
</html>
But I get the following error message when i try to run it in hosted
mode:
[ERROR] Unable to load module entry point class
RoundCorners.client.Main (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: JavaScript TypeError
exception: Null value
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
481)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
270)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
137)
at RoundCorners.client.Borders.simpleBorder(Borders.java:13)
at RoundCorners.client.Main.onModuleLoad(Main.java:10)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:
326)
Why doesn't it work?