Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

label

 
shalini gnana
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Report post to moderator
Pls say me, how can i place the label in all co-ordinates while drawing a graph?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
    Bookmark Topic Watch Topic
  • New Topic