I am leaning Java basics. I wrote code to produce the following output
the image on the right. I have a problem to make things touch each other at the middle of the screen. i. e. line going from the left upper corner touch lines going from the right bottom corner. Also, the output should have the same look when resizing the window. My code( Java pastebin - collaborative debugging tool )and ( Java pastebin - collaborative debugging tool ). I am not so good in math. Can anyone here help me to get the required output?
Thanks in advance