aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Need help on graphics 2d plot to add functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Need help on graphics 2d plot to add functions" Watch "Need help on graphics 2d plot to add functions" New topic
Author

Need help on graphics 2d plot to add functions

paul krov
Greenhorn

Joined: Mar 11, 2011
Posts: 8
Hello, i need to make this code draw not only numbers but whatever function inserted.


EDIT. Like i cant explain more precisely but maybe it should be created another button and in that button i have to input function like f(x)=x^2 and then program draws graph.

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Please EaseUp. Remember that we are all volunteers. Could you tell us more about the problem you're having because I don't get it. What doesn't work, what do you expect and what actually happens.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
I ought to have moved this discussion to our GUIs forum earlier, but have been busy.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help on graphics 2d plot to add functions