aspose file tools
The moose likes Swing / AWT / SWT and the fly likes label Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

label

shalini gnana
Ranch Hand

Joined: Sep 18, 2007
Posts: 189
Pls say me, how can i place the label in all co-ordinates while drawing a graph?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
Unless you want to use absolute positioning to put a Label (or JLabel) on the canvas (which is tricky), you can use the Graphics.drawchars method to paint strings of text at particular positions.


Android appsImageJ pluginsJava web charts
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Duplicate of this thread - closing this one. Shalini, please stop posting duplicate questions - if you have additional information about a question, you can post a reply to your own original question. Having duplicate posts about the same question duplicates effort (because different people may answer each of your duplicate questions) and it also makes it harder for others that may have the same problem to find all the information associated with this question.
[ September 28, 2007: Message edited by: Nathan Pruett ]

-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: label
 
Similar Threads
Struts 2 Checkbox problem
Label/Component/Listener
WA #1.....word association
Need component separator ->
Pause in Swing Applet