Advice on graphics
I'm fairly new to coding so apologies if this is in the wrong place but anyway.
I've got a system (mostly) set up and need to get it to draw some simple diagrams (Lines and boxes) from data held in some Arrays.
I could really do with some advice on what I aught to be using to do this and some advice on how to go about it would be appreciated as well.
it's easy. You can use swing api for it and private cause this use canvas.
see java - How to make canvas with Swing? - Stack Overflow
Thanks for the quick response. I've had a look through the tutorials you linked and tried them out successfully.
I can get it to draw a box where I want using the drawRect() method but only when I give it the 4 values, not from my arrays. Any tips on how to feed it the data?
The "DrawOnComponent" example from Custom Painting Approaches « Java Tips Weblog shows you how to loop through an ArrayList to paint rectangles.