Results 1 to 4 of 4
Thread: Advice on graphics
- 04-13-2011, 12:02 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
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.
- 04-13-2011, 01:02 PM #2
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 OverflowSkype: petrarsentev
http://TrackStudio.com
- 04-13-2011, 04:38 PM #3
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
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?
- 04-13-2011, 05:08 PM #4
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,143
- Rep Power
- 5
The "DrawOnComponent" example from Custom Painting Approaches « Java Tips Weblog shows you how to loop through an ArrayList to paint rectangles.
Similar Threads
-
got any advice?
By cejay in forum NetworkingReplies: 2Last Post: 03-17-2011, 10:33 AM -
looking for OO advice
By intrepid604 in forum New To JavaReplies: 7Last Post: 02-16-2011, 05:01 PM -
need for some advice
By kasiopi in forum AWT / SwingReplies: 3Last Post: 01-26-2011, 12:36 PM -
Drawing a graphics onto another Graphics ?
By Ziden in forum Java AppletsReplies: 0Last Post: 01-08-2011, 07:30 PM -
Im new n looking for an advice
By azlynn in forum New To JavaReplies: 2Last Post: 12-10-2009, 02:47 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks