Creating Graphs

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Creating Graphs

 
0
  #1
Mar 23rd, 2005
Hi,

I am making a task-manager like program and i wanted to create a pie chart referring to the free/max memory (like the pie chart u see if you right click "My Computer.")

Can anybody please tell me how to do this (oh yeah, it's an application, not an applet)

THANK YOU SO MUCH IN ADVANCED,
C++
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Creating Graphs

 
0
  #2
Mar 23rd, 2005
For pie charts, you would use the drawArc() method. I have an example, but I accidently deleted one of the source files, but I still have all of the class files. So, I can post the source files that I do have, if you want. I could also give you the class files so you can run it.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 189
Reputation: George2 is an unknown quantity at this point 
Solved Threads: 0
George2 George2 is offline Offline
Junior Poster

Re: Creating Graphs

 
0
  #3
Mar 23rd, 2005
Hello C++,


Originally Posted by C++
Hi,

I am making a task-manager like program and i wanted to create a pie chart referring to the free/max memory (like the pie chart u see if you right click "My Computer.")

Can anybody please tell me how to do this (oh yeah, it's an application, not an applet)

THANK YOU SO MUCH IN ADVANCED,
C++
Do you mean you want to know how to draw graphics or how to monitor free/max memory?


regards,
George
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating Graphs

 
0
  #4
Mar 23rd, 2005
server_crash, i would really appreciate it if you could post the code.

george, i already know how to monitor memory - i just want to create the pie chart(with colors)
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Creating Graphs

 
0
  #5
Mar 23rd, 2005
Originally Posted by C++
server_crash, i would really appreciate it if you could post the code.

george, i already know how to monitor memory - i just want to create the pie chart(with colors)
I think I'll post them in attachments, and since one of the classes I accidently deleted, I will post the class files so you can run the program...But that is only if you ask me for the class files.

I'm sorry, but the actuall file that does the drawing of the arcs is the one delted, but I'll still post what I haven't got rid of. Maybe later, I will rewrite that file, so you can see. I do have the class file though, so you could actually decompile it if you knew how.
Attached Files
File Type: java PieApplet.java (1.1 KB, 6 views)
File Type: java PiePanel.java (1.5 KB, 6 views)
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating Graphs

 
0
  #6
Mar 23rd, 2005
that didnt really help (no offense).

More help would be appreciated...
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Creating Graphs

 
0
  #7
Mar 23rd, 2005
Originally Posted by C++
that didnt really help (no offense).

More help would be appreciated...

I know, I told you the file that would help was accidently deleted.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC