Hi, I'm developing a GUI with several forms, one of which contains a jLabel that displays a JPEG image of a graph as it's icon. How do I go about plotting a simple 2d curve on that image from a set of data? I know of drawLine etc, but how can I do that on a jLabel?
Many thanks!
matt_5104 0 Newbie Poster
Recommended Answers
Jump to Postuse paintComponent(Graphics g)
Jump to PostHe 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 …
Jump to Postohhh 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 …
Jump to PostYou can draw an arc in java, I guess that would be the same thing as a curve:
Somthing like... Graphics.drawArc(//code);
All 15 Replies
server_crash 64 Postaholic
Fasola 0 Junior Poster
server_crash 64 Postaholic
Fasola 0 Junior Poster
server_crash 64 Postaholic
OurNation 5 Master Poster
Fasola 0 Junior Poster
server_crash 64 Postaholic
server_crash 64 Postaholic
server_crash 64 Postaholic
OurNation 5 Master Poster
matt_5104 0 Newbie Poster
server_crash 64 Postaholic
Fasola 0 Junior Poster
server_crash 64 Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.