title: Draw curves to make arrows in the Codename One GlassPane
body: <p>In a CodenameOne App, I need to draw curved arrows in the GlassPane. The use of the GlassPane is not mandatory, however I've already used some layers in the ContentPane and some layers in the LayeredPane, so I suppose that the GlassPane is the best option to be sure that the arrows are "over" the app.</p>
  
  <p>The arrows should be like the following ones:</p>
  
  <p><a href="https://i.stack.imgur.com/xnxaI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnxaI.png" alt="Arrow"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Q3AO7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q3AO7.png" alt="Arrow"></a></p>
  
  <p>I suppose that I can create an algorithm that decides the absolute X and Y coordinates of the "Start" and "End" points, more other few points (P0, P1, P2, etc.), that describes the curves. For example:</p>
  
  <p><a href="https://i.stack.imgur.com/tUymg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tUymg.png" alt="Points of lines"></a></p>
  
  <p><a href="https://i.stack.imgur.com/02WLG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/02WLG.png" alt="Points of lines"></a></p>
  
  <p>My problem is that I don't know how to do it. Usually I don't need low-level drawing in a Codename One app like in this case. Could you please show me a correct and complete code to do this drawing <em>(assuming to know the coordinates of Start, End, P0, P1, etc.)</em>? Thank you.</p>