This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The default layout manager for connection widgets does not take into account the direction of the edge. So, in order to make the label look correct you have to calculate the direction of the edge, and then determine the correct constraint. This would work for when you create the edge, however it will not work for when the nodes move and the direction of the edge changes. It would be nice to have a layout manager that would layout the edge to mean the following Top is above the edge if the edge is horizontal, and to the right of the edge if the edge is vertical, and bottom is below the edge if the edge is horizontal and to the left of the edge if the edge is vertical.
Created attachment 52539 [details] The labels on a vertical edge
Created attachment 52540 [details] The labels on a horizontal edge
The Layout would just have count with "ConnectionWidget.getControlPoints()" or "Anchor.compute().getDirections()" which resolving Widget locations.
This should have been fixed by the issue 128348. *** This issue has been marked as a duplicate of 128348 ***