I am trying to make an rpg using swing (yes it is stupid I agree, but I am doing this for learning rather than actual working product). And currently I am working on each character stat.
I have a JPanel, and I would like to draw a line.
My intention is to have something similar to this
The left side is a JPanel that has two components, table 1, and JLabel. Right side is also JPanel that has it's own elements but that is another story.
My question is that I would like to create a jpanel that would only have an image, and that image will be two lines going to the corners in relation to the selected element in the table.
But unfortunately I do not know how to go about drawing custom image on the JLabel. Can anyone suggest a way of going about drawing my own lines and everything on a JLabel? I have looked at a lot of questions, but they show how to draw already created image onto the JLabel, but I would liek to draw my own stuff (just the two lines).