Sagewire Logo

AssertionError Exception

6 Message(s) by 4 Author(s) originally posted in developer netbeans java


From: Wessam Abd Rabo Date:   Friday, August 24, 2007
------=_Part_23717_20559581.1188002188165

Content-Disposition: inline

Hi,

I get an AssertionError exeption on creating a connection between 2
IconNodeWidgets in a graph scene using Visual Library2. It is specifically in
setEdgeSource() method. Does anyone know what could be causing this
exception to be thrown?

Thanks in advance,

Wessam

------=_Part_23717_20559581.1188002188165

Content-Disposition: inline

<div>Hi,</div>
<div>&nbsp;</div>
<div>I get an AssertionError exeption on creating a connection between 2 IconNodeWidgets in a graphscene using Visual Library2. It is specifically in setEdgeSource() method. Does anyone know what could be causing this exception to be thrown?
</div>
<div>&nbsp;</div>
<div>Thanks in advance,</div>
<div>&nbsp;</div>
<div>Wessam</div>
<div>&nbsp;</div>
<div>&nbsp;</div>

------=_Part_23717_20559581.1188002188165--


From: Peter Blemel Date:   Saturday, August 25, 2007
I found that checking out the graph source s from the repository to be well
worth the effort, as you can inspect the sources yourself. If you are going
to be doing much development, then I strongly suggest that you do so too.
The web pages document how to download only the sources necessary for
graphs.

Looking at the sources, I see that setEdgeSource() has two assert
statements. The first is if the source node (widget ) doesn't exist in the
scene, and the second is if the edge doesn't exist. Without knowing the
line number of your assertion, I can not say which you are encountering.

Peter>From: "Wessam Abd Rabo" <wessam.abdrabo@xxxxxxxxxxx>
Reply-To: nbdev@xxxxxxxxxxx
To: nbdev@xxxxxxxxxxx, users@xxxxxxxxxxx, "David Kaspar"
<David.Kaspar@xxxxxxxxxxx>, "David Van Couvering" <david@xxxxxxxxxxx>,
epple@xxxxxxxxxxx, "Trey Spiva" <Leonard.Spiva@xxxxxxxxxxx>, "Jim Davidson"
<Jim.Davidson@xxxxxxxxxxx>, joelle.lam@xxxxxxxxxxx
Subject: [nbdev] AssertionError Exception
Date: Sat, 25 Aug 2007 03:36:28 +0300
Hi,
I get an AssertionError exeption on creating a connection between 2
IconNodeWidgets in a graphscene using Visual Library2. It is specifically
in
setEdgeSource() method. Does anyone know what could be causing this
exception to be thrown?
Thanks in advance,
Wessam



_________________________________________________________________
Now you can see trouble…before he arrives
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507


From: Wessam Abd Rabo Date:   Saturday, August 25, 2007
------=_Part_28233_5369804.1188050127712

Content-Disposition: inline

Thanks. Which graph sources are you talking about? do you mean the graph
examples?I could not reach all examples, only the first few.
I have been trying handling selection of widgets the way you told me
(implementing my own selectprovider). I'm still confused.Could you send me
the code fragment of selectprovider implementation class ?and any code
related to the properties window. That'd be very helpful.

About that AssertionError exception. I do not think the reason could be that
the edge does not exist, cause I call addEdge(edge) before I all
setSourceEdge(edge,source). I think the problem is with the source node. In
attachNodeWidget method, I store every added widget along with its node,
with the widget as a key. Inside isSource(sourcewidget) method, I get the
node whose sourcewidget is sent a parameter. I doubt that the error might b=
e
wrote in message : protected Widget attachNodeWidget(MyNode node) {
IconNodeWidget widget =3D new IconNodeWidget(this);
widget.setImage(node.getImage());
widget.setLabel(node.getname());
mainLayer.addChild(widget);
map.put(widget, node); //single-click, the event isn't consumed:
widget.getActions().addAction(createSelectAction());

widget.createActions(ACTION_SELECT).addAction(moveAction);

widget.createActions(ACTION_CONNECT).addAction(connectAction);
//double-click, the event is consumed while double-clicking only:
widget.getLabelWidget().getActions().addAction(editorAction);

return widget;

}

protected Widget attachEdgeWidget(String edge) {

ConnectionWidget connection =3D new ConnectionWidget(this);

connection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
connection.setEndPointShape(PointShape.SQUARE_FILLED_BIG);
connection.getActions().addAction(createObjectHoverAction());
connection.getActions().addAction(createSelectAction());
int eractionLayer.addChild(connection);
return connection;
}

protected void attachEdgeSourceAnchor (String edge, MyNode
oldSourceNode, MyNode sourceNode) {

Widget w =3D sourceNode !=3D null ? findWidget(sourceNode) : null;
((ConnectionWidget) findWidget(edge)).setSourceAnchor(
AnchorFactory.createRectangularAnchor(w));
}

protected void attachEdgeTargetAnchor (String edge, MyNode
oldTargetNode, MyNode target Node) {
Widget w =3D targetNode !=3D null ? findWidget(targetNode) : null;
((ConnectionWidget) findWidget(edge)).setTargetAnchor(
AnchorFactory.createRectangularAnchor(w));
}

class SceneConnectProvider implements ConnectProvider {

private MyNode source =3D null;
private MyNode target =3D null;

public boolean isSourceWidget(Widget sourceWidget) {
source=3D(MyNode) map.get(sourceWidget);
return true;
}

public boolean hasCustomTargetWidgetResolver(Scene scene) {
return false;
}

public Widget resolveTargetWidget(Scene scene, Point sceneLocation)
{
return null;
}

public void createConnection(Widget sourceWidget, Widget
targetWidget) {
String edge =3D "edge"+edgeCounter++;
addEdge(edge);
source=3D(MyNode) map.get(sourceWidget);
setEdgeSource(edge, source);
setEdgeTarget(edge, target);
}

public ConnectorState isTargetWidget(Widget sourceWidget, Widget
targetWidget) {
target=3D(MyNode)map.get(targetWidget);
if (target !=3D null)
return ConnectorState.ACCEPT;
return ConnectorState.REJECT;
}
private int edgeCounter=3D0
}

Wessam
wrote in message:
I found that checking out the graph sources from the repository to be wel=
l
worth the effort, as you can inspect the sources yourself. If you are
going
to be doing much development, then I strongly suggest that you do so too.
The web pages document how to download only the sources necessary for
graphs.
Looking at the sources, I see that setEdgeSource() has two assert
statements. The first is if the source node (widget) doesn't exist in
the
scene, and the second is if the edge doesn't exist. Without knowing th=
e
line number of your assertion, I can not say which you are encountering.
Peter
>From: "Wessam Abd Rabo" <wessam.abdrabo@xxxxxxxxxxx>
>Reply-To: nbdev@xxxxxxxxxxx
>To: nbdev@xxxxxxxxxxx, users@xxxxxxxxxxx, "David Kaspar"
><David.Kaspar@xxxxxxxxxxx>, "David Van Couvering" <david@xxxxxxxxxxx>,
>epple@xxxxxxxxxxx, "Trey Spiva" <Leonard.Spiva@xxxxxxxxxxx>, "Jim Davidson"
><Jim.Davidson@xxxxxxxxxxx>, joelle.lam@xxxxxxxxxxx
>Subject: [nbdev] AssertionError Exception
>Date: Sat, 25 Aug 2007 03:36:28 +0300
>
>Hi,
>
>I get an AssertionError exeption on creating a connection between 2
>IconNodeWidgets in a graphscene using Visual Library2. It is specificall=
y
>in
>setEdgeSource() method. Does anyone know what could be causing this
>exception to be thrown?
>
>Thanks in advance,
>
>Wessam
_________________________________________________________________
Now you can see trouble=85before he arrives
http://newlivehotmail.com/?ocid=3DTXT_TAGHM_migration_HM_viral_protection=
_0507


------=_Part_28233_5369804.1188050127712

Content-Disposition: inline

<div>Thanks. Which graph sources are you talking about? do you mean the gra=
ph examples?I couldn&#39;t reach all examples, only the first few. </div>
<div>I&#39;ve been trying handling selection of widgets the way you told me=
(implementing my own selectprovider). I&#39;m still confused.Could you sen=
d me the code fragment of selectprovider implementation&nbsp;class?and any =
code related to the properties window. That'd be very helpful.
</div>
<div>&nbsp;</div>
<div>About that AssertionError exception. I don&#39;t think the reason coul=
d be that the edge doesn&#39;t exist, cause I call addEdge(edge) before I a=
ll setSourceEdge(edge,source). I think the problem is with the source node.=
In attachNodeWidget method, I store every added widget along with its node=
, with&nbsp; the widget as a key. Inside isSource(sourcewidget) method, I g=
et the node whose sourcewidget is sent a parameter. I doubt that&nbsp;the e=
rror might be in this section but i&#39;m not sure.&nbsp;Next is part of &n=
wrote in message:
</div>
<div>&nbsp;</div>
<div><br>
<p>&nbsp; protected Widget attachNodeWidget(MyNode node) {<br>&nbsp;&nbsp;&=
nbsp; IconNodeWidget widget =3D new IconNodeWidget(this);<br>&nbsp;&nbsp;&n=
bsp; widget.setImage(node.getImage());<br>&nbsp;&nbsp;&nbsp; widget.setLabe=
l(node.getname());<br>&nbsp;&nbsp;&nbsp;&nbsp; mainLayer.addChild(widget);&=
nbsp;&nbsp;=20
<br>&nbsp;&nbsp;&nbsp;&nbsp; map.put(widget, node);<br>&nbsp;&nbsp;&nbsp;&n=
bsp; </p>
<p>&nbsp;&nbsp;&nbsp; //single-click, the event isn't consumed:<br>&nbsp;&=
nbsp;&nbsp; widget.getActions().addAction(createSelectAction()); <br>&nbsp;=
&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; widget.createActions(ACTION_SELECT).add=
Action(moveAction);<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; widg=
et.createActions
(ACTION_CONNECT).addAction(connectAction);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; //double-click, the event is consumed while double-clicking only:<br>&nbs=
p;&nbsp;&nbsp; widget.getLabelWidget().getActions().addAction(editorAction)=
;<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return widget;</p>
<p>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; protected Widget attachEdgeWidget(String edge) {<br>&=
nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conn=
ectionWidget connection =3D new ConnectionWidget(this);<br>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c=
onnection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connection.setEndPointShape(Poin=
tShape.SQUARE_FILLED_BIG);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; co=
nnection.getActions().addAction(createObjectHoverAction());<br>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; connection.getActions().addAction(createSele=
ctAction());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
interactionLayer.addChild(connection);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; return connection;<br>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; protected void attachEdgeSourceAnchor (String edge, M=
yNode oldSourceNode, MyNode sourceNode) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Widget w =
=3D sourceNode !=3D null ? findWidget(sourceNode) : null;<br>&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; ((ConnectionWidget) findWidget(edge)).setSourc=
eAnchor(
AnchorFactory.createRectangularAnchor(w));<br>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; protected void attachEdgeTargetAnchor (String edge, M=
yNode oldTargetNode, MyNode targetNode) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; Widget w =3D targetNode !=3D null ? findWidget(targetNod=
e) : null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((ConnectionWidget=
) findWidget(edge)).setTargetAnchor(
AnchorFactory.createRectangularAnchor(w));<br>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;class SceneConnectProvider implements ConnectProvider {<br>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; private MyNode source =3D null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; private MyNode target =3D null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public boolean=
isSourceWidget(Widget sourceWidget) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sour=
ce=3D(MyNode) map.get(sourceWidget);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return true;<br>&nbsp;&nbsp;&nb=


sp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public boolean hasCustomTar=
getWidgetResolver(Scene scene) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; }
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; public Widget resolveTargetWidget(Scene scene, Point sce=
neLocation) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; return null;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; public void createConnection(Widget sourceWidget, Widget targe=
tWidget)&nbsp;{
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stri=
ng edge =3D &quot;edge&quot;+edgeCounter++;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=3D"#ff0000"> addEdge(edge=
);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; so=
urce=3D(MyNode) map.get(sourceWidget);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setEdgeSource(edge, source);<br>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setEdgeTarget(edg=
e, target);
<br></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p=
ublic ConnectorState isTargetWidget(Widget sourceWidget, Widget targetWidge=
t) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target=3D(MyN=
ode)map.get(targetWidget);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; if (target !=3D null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return=20
ConnectorState.ACCEPT;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; return ConnectorState.REJECT;<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private =
int edgeCounter=3D0<br>&nbsp;&nbsp;&nbsp; }</p>
<p>Wessam<br></p></div>
<div><span class=3D"gmail_quote">On 8/25/07, <b class=3D"gmail_sendername">=
Peter Blemel</b> &lt;<a href=3D"mailto:pblemel@xxxxxxxxxxx">pblemel@xxxxxxxxxxx=
wrote in message:</span>
<blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<br>I found that checking out th=
e graph sources from the repository to be well<br>worth the effort, as you =
can inspect the sources yourself.&nbsp;&nbsp;If you are going
<br>to be doing much development, then I strongly suggest that you do so to=
o.<br>The web pages document how to download only the sources necessary for=
<br>graphs.<br><br>Looking at the sources, I see that setEdgeSource() has t=
wo assert
<br>statements.&nbsp;&nbsp; The first is if the source node (widget) does n=
ot exist in the<br>scene, and the second is if the edge doesn't exist.&nbs=
p;&nbsp; Without knowing the<br>line number of your assertion, I can&#39;t =
say which you are encountering.
<br><br>Peter<br><br><br><br><br><br>&gt;From: &quot;Wessam Abd Rabo&quot; =
&lt;<a href=3D"mailto:wessam.abdrabo@xxxxxxxxxxx">wessam.abdrabo@xxxxxxxxxxx</a=
&gt;<br>&gt;Reply-To: <a href=3D"mailto:nbdev@xxxxxxxxxxx">nbdev@xxxxxxxxxxx=
.org


</a><br>&gt;To: <a href=3D"mailto:nbdev@xxxxxxxxxxx">nbdev@xxxxxxxxxxx</a=
, <a href=3D"mailto:users@xxxxxxxxxxx">users@xxxxxxxxxxx</a>=


, &quot;David Kaspar&quot;<br>&gt;&lt;<a href=3D"mailto:David.Kaspar@xxxxxxxxxxx=
m">

David.Kaspar@xxxxxxxxxxx</a>&gt;, &quot;David Van Couvering&quot; &lt;<a href=
=3D"mailto:david@xxxxxxxxxxx">
david@xxxxxxxxxxx</a>&gt;,<br>&gt;<=
a href=3D"mailto:epple@xxxxxxxxxxx">
epple@xxxxxxxxxxx</a>, &quot;Trey Spi=
va&quot; &lt;
<a href=3D"mailto:Leonard.Spiva@xxxxxxxxxxx">Leonard.Spiva@xxxxxxxxxxx</a>&gt;, &qu=
ot;Jim Davidson&quot;<br>&gt;&lt;<a href=3D"mailto:Jim.Davidson@xxxxxxxxxxx">Ji=
m.Davidson@xxxxxxxxxxx</a>&gt;, <a href=3D"mailto:joelle.lam@xxxxxxxxxxx">joelle.la=
m@xxxxxxxxxxx
</a><br>&gt;Subject: [nbdev] AssertionError Exception<br>&gt;Date: Sat, 25 =
Aug 2007 03:36:28 +0300<br>&gt;<br>&gt;Hi,<br>&gt;<br>&gt;I get an Assertio=
nError exeption on creating a connection between 2<br>&gt;IconNodeWidgets i=
n a graphscene using Visual Library2. It is specifically
<br>&gt;in<br>&gt;setEdgeSource() method. Does anyone know what could be ca=
using this<br>&gt;exception to be thrown?<br>&gt;<br>&gt;Thanks in advance,=
<br>&gt;<br>&gt;Wessam<br><br>_____________________________________________=
____________________
<br>Now you can see trouble=85before he arrives<br><a href=3D"http://newliv=
ehotmail.com/?ocid=3DTXT_TAGHM_migration_HM_viral_protection_0507">
http://n=
ewlivehotmail.com/?ocid=3DTXT_TAGHM_migration_HM_viral_protection_0507</a><=
br>
</blockquote>
</div><br>

------=_Part_28233_5369804.1188050127712--


From: David Kaspar Date:   Tuesday, September 18, 2007
Hi Wessam,

Could you send me the stack trace of the exception?

Thanks,
wrote in message:
Hi,
I get an AssertionError exeption on creating a connection between 2
IconNodeWidgets in a graphscene using Visual Library2. It is
specifically in setEdgeSource() method. Does anyone know what could be
causing this exception to be thrown?
Thanks in advance,
Wessam





From: Wessam Abd Rabo Date:   Tuesday, September 18, 2007
------=_Part_12160_12375806.1190119228997

Content-Disposition: inline

Thanks David:)

I already took care of this error

wrote in message:
Hi Wessam,
Could you send me the stack trace of the exception?
Thanks,
David
wrote in message:
> Hi,
>
> I get an AssertionError exeption on creating a connection between 2
> IconNodeWidgets in a graphscene using Visual Library2. It is
> specifically in setEdgeSource() method. Does anyone know what could be
> causing this exception to be thrown?
>
> Thanks in advance,
>
> Wessam
>
>



------=_Part_12160_12375806.1190119228997

Content-Disposition: inline

<div>Thanks David:)</div>
<div>&nbsp;</div>
<div>I already took care of this error</div>
<div>&nbsp;</div>
<div>Wessam<br><br>&nbsp;</div>
wrote in message:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi Wessam,<br><br>Could you send me the stack trace of the exception?<br><br>Thanks,<br>David<br><br><br>
wrote in message:<br>&gt; Hi,<br>&gt;<br>&gt; I get an AssertionError exeption on creating a connection between 2<br>&gt; IconNodeWidgets in a graphscene using Visual Library2. It is<br>&gt; specifically in setEdgeSource() method. Does anyone know what could be
<br>&gt; causing this exception to be thrown?<br>&gt;<br>&gt; Thanks in advance,<br>&gt;<br>&gt; Wessam<br>&gt;<br>&gt;<br></blockquote></div><br>

------=_Part_12160_12375806.1190119228997--


From: Maneesh_Arora Date:   Friday, December 21, 2007
Hi
Please let me know what I m doing wrong.

I m not able to move the widget if I write the following code but I can
select it(Widget)..
however if I change the order of adding actions (First the Move Action and
Then Select Action) to the widget I m able to Move the Widget but I m not
able to Select it by Single Click, however on Double Clicking , it is
Selected. Cn you please Tell me how I can Select the widget by Single Click.LabelWidget widget = new LabelWidget(myScene);
widget.setLabel("Test");
widget.setBorder(BorderFactory.createResizeBorder(5));
widget.getActions().addAction(ActionFactory.createResizeAction());
widget.getActions().addAction(ActionFactory.createSelectAction(new
CreateProvider()));
widget.getActions().addAction(ActionFactory.createMoveAction(new
CreateMoveStrategy(),new CreateMoveProvider() ));
widget.getActions().addAction(myScene.createWidgetHoverAction());
mainLayer.addChild(widget);
--
View this message in context: http://www.nabble.com/AssertionError-Exception-tp12321924p14454151.html
Sent from the Netbeans - Dev mailing list archive at Nabble.com.



Next Message: How to create property sheet for a widget?


Blogs related to AssertionError Exception

Java Classes
AssertionError AsyncBoxView AsynchronousCloseException Attr Attribute Attribute AttributeException AttributeInUseException AttributeList AttributeList AttributeListImpl AttributeModificationException AttributeSet AttributeSet ...

Re: [grails-user] No luck with Grails Unit-Testing
AssertionError">java.lang.AssertionError: Expression: (podcast != null). Values: podcast = null at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:396) at org.codehaus.groovy.runtime. ...

[fabric3-scm] [637] runtimes/trunk/itest/plugin/src/main/java/org ...

Modified Paths


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional