Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to draw "text" using GWT-Graphics
    primarykey
    data
    text
    <p>I am using <a href="http://vaadin.com/web/hene/wiki/-/wiki/Main/GWT%20Graphics%20Manual;jsessionid=591AF166DFFD20E90A118E772363AAAE#section-GWT+Graphics+Manual-SettingUpTheLibraryInYourProject" rel="nofollow noreferrer">GWT-Graphics</a> to create shapes like rectangle, circles etc... Now i am trying to add text to these shapes. Here is how the code looks like:</p> <pre><code>DrawingArea d1 = new DrawingArea(100, 100); Ellipse e = new Ellipse(29, 20, 30, 20); Text t = new Text(10, 20, "A"); d1.add(e); d1.add(t); boundaryPanel.add(d1, 200, 40 ); </code></pre> <p>But when i run the program i am getting the following Error:</p> <pre><code>[ERROR] Uncaught exception escaped java.lang.AssertionError: The style name 'v-text-align' should be in camelCase format at com.google.gwt.dom.client.Style$.assertCamelCase$(Style.java:63) at com.google.gwt.dom.client.Style$.setProperty$(Style.java:42) at com.vaadin.contrib.gwtgraphics.client.impl.VMLImpl.createElement(VMLImpl.java:101) at com.vaadin.contrib.gwtgraphics.client.VectorObject.&lt;init&gt;(VectorObject.java:37) at com.vaadin.contrib.gwtgraphics.client.Shape.&lt;init&gt;(Shape.java:27) at com.vaadin.contrib.gwtgraphics.client.shape.Text.&lt;init&gt;(Text.java:25) at com.e.r.d.client.ERD1$2.onClick(ERD1.java:74) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:90) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320) at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126) at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:264) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:557) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) </code></pre> <p>Any input on this will be of great help.</p> <p>Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload