Results 1 to 6 of 6
- 01-16-2013, 07:34 AM #1
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
- 01-16-2013, 08:00 AM #2
Re: Creating a Mathematical Curve in Java
Please go through the Forum Rules, particularly the second paragraph. I've merged the thread you started in New to Java here.
dbLast edited by DarrylBurke; 01-16-2013 at 08:04 AM.
Why do they call it rush hour when nothing moves? - Robin Williams
- 01-16-2013, 08:04 AM #3
Re: Creating a Mathematical Curve in Java
To get help, you need to show what you've tried and explain how it doesn't meet your need, then ask a specific question. As it stands, this post looks like 'here's my assignment, someone please do it for me' -- and that isn't going to happen.
Are you familiar with the java.lang.Math class? Do you know how to perform custom painting? Have you read up about 2D Graphics?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-16-2013, 08:16 AM #4
Member
- Join Date
- Jan 2013
- Posts
- 2
- Rep Power
- 0
Re: Creating a Mathematical Curve in Java
I have a book called JAVA 2D Graphics by Jonathan Knudsen. I can create the frames, however making the x and y axis is somewhat misleading. Here is what I did,
public static void main(String[] args) {
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.add(new GraphingData());
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
}
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
}
That's how far I got.
Can you help me out please.
- 01-16-2013, 09:08 AM #5
Re: Creating a Mathematical Curve in Java
Please go through Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-16-2013, 09:11 AM #6
Similar Threads
-
Freehand curve smoothing using Bezier Curve
By JavaIsChallenging in forum Java 2DReplies: 3Last Post: 12-14-2011, 07:56 PM -
Java Learning Curve
By mwildam in forum New To JavaReplies: 13Last Post: 10-17-2008, 11:09 AM -
Help with mathematical part in java
By lenny in forum Advanced JavaReplies: 3Last Post: 08-09-2007, 01:55 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks