| | |
plotting graphs
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2005
Posts: 188
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by server_crash
He said he wanted to draw some graphics on a JLabel, well that's how. Maybe you should think a little harder before posting stupid replys. Besides, if you didn't even know what I was talking about, why did you even post? It was obvious that helped...Now stop taking away from other people's posts.
i was just trying to learn something
i don't know what he means my JLabel...i'd like to know
i don't know how that one line of code you gave him answers his question
it looked like only part of an answer...
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
ohhh Sorry dude, I thought you were like trying to insult my intelligence or something....Dang, I hate it when I do that...Really, I am sorry for being an a$$...please forgive me...
Anyways,
JLabel, is a component in swing...It's like any other label, in any other programming language..All it does is display information, and in matt's case, he's wanting to draw on top of the component...So, in order to do that, he has to override the paintComponent method...And no, it doesn't fully answer his question, it answers only part of it...I'll try answering the rest of it later...
Again, I'm really sorry..I thought you were trying to say that I didn't know what I was talking about! sorry :o
Anyways,
JLabel, is a component in swing...It's like any other label, in any other programming language..All it does is display information, and in matt's case, he's wanting to draw on top of the component...So, in order to do that, he has to override the paintComponent method...And no, it doesn't fully answer his question, it answers only part of it...I'll try answering the rest of it later...
Again, I'm really sorry..I thought you were trying to say that I didn't know what I was talking about! sorry :o
Are you talking about not answering the curve part? Could you just drwa multiple lines making it appear to be a curve only being made up of line segments.
PETA People for the Eating of Tasty Animals.
FireFox
Hijack This
Ad-Aware
Hijack this tutorial
Microsoft AntiSpyware
CompUchat
FireFox
Hijack This
Ad-Aware
Hijack this tutorial
Microsoft AntiSpyware
CompUchat
•
•
Join Date: Jan 2005
Posts: 188
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by server_crash
ohhh Sorry dude, I thought you were like trying to insult my intelligence or something....Dang, I hate it when I do that...Really, I am sorry for being an a$$...please forgive me...
Anyways,
JLabel, is a component in swing...It's like any other label, in any other programming language..All it does is display information, and in matt's case, he's wanting to draw on top of the component...So, in order to do that, he has to override the paintComponent method...And no, it doesn't fully answer his question, it answers only part of it...I'll try answering the rest of it later...
Again, I'm really sorry..I thought you were trying to say that I didn't know what I was talking about! sorry :o
its no biggie, appreciate the information
i still don't have a complete grasp of what it is you guys are trying to do
but i have more to go by now, i need to look up JLabel, Swing, and basics of plotting 2 dimensional curves in java
Matt,
i was reading up on Java "Java for Dummies" a few weeks back and it spoke on using drawline which was some type of an object in one of java's built in libraries
from what i remeber it basically spoke on how "drawline" illustrates the grid of an applet by dragging the mouse from coordinates (x, y) and droping it to (x2, y2).
Is that what you mean my drawline (you'll have to excuse me i don't even own a computer, i just keep read this stuff until i can afford one)?
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
•
•
•
•
Originally Posted by OurNation
Are you talking about not answering the curve part? Could you just drwa multiple lines making it appear to be a curve only being made up of line segments.
![]() |
Similar Threads
- C++ Graphs (C++)
- plotting 10 graphs in 1 figure (Python)
Other Threads in the Java Forum
- Previous Thread: IF statement question
- Next Thread: 'Back' buttons
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes clear client code component consumer database draw eclipse ee error event exception fractal free game gameprogramming gis givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javaprojects jni jpanel julia jvm key linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows






