Drawing to Canvas
HiHow I can, paint lines to canvas?I have application and GUI in Swing and I need to plott graph, but I don't know how I can do it :(I think that I need canvas and dwar lines to it, but I'm not sure :(please past here same sample code Please help me :)
Well there area methods like drawLine(...), drawPolyLine(...) which can be used. I think the is a graphing package, JGraph. Search the forum for other ideas.
I know, but where in my code i should use this functions?for example: I init my components of GUI (buttons, textflieds...) in constructor, but i don't know where i must call drawline :(