Since LWJGL 3 is not a rendering engine but (merely) Java bindings to low-level libraries like OpenGL, Vulkan, etc., any such solution will obviously depend on your own layers of abstraction in your own application/engine. You can of course simply render a line with OpenGL or Vulkan in many different ways (targeting different versions of OpenGL or Vulkan).