I'm trying to figure out what would be the most optimal way of drawing lines in a JPanel
. The panel is called at the beginning of the execution but the X and Y positions are be passed on after selecting an XML file and parsing said file.
So far I've using JPanel mypanel.add(new JLabel())
for images but I'm not sure how to add lines.