Results 1 to 1 of 1
Thread: Object Draw canvas Text
- 07-27-2010, 09:54 PM #1Member
- Join Date
- Jul 2010
- Rep Power
Object Draw canvas Text
Hello, I'm new to the forums and still pretty new to java. I'm making a program and need to display text (a variable that holds an integer value).
Right now I'm running into a dilemma. Everything works correctly as I have it written, but it does not work the way I want it to. This is generically what I have:
Text text = new Text (variable, 0.0, 0.0, canvas); text.setColor (Color.WHITE);
Let me know if you need more info or anything, I can assist you helping me find an answer in any way possible. If anything isn't clear enough just let me know.
Thank you very much. Let me know if there is an easier way of doing this or how to just show the latest variable value on the canvas the way I am going about doing it.
P.S. As I said, I'm new to java for the most part, so if you are introducing something that a beginner would find somewhat complicated try your best to explain it. Thank you so much!
I looked around and I saw this. I'm going to say that I would rather stick with Text than 2d graphics since it seems so much simpler, unless you all feel it would be much easier for what I am doing. Just let me know what you think.
Last edited by kyle.g; 07-27-2010 at 11:49 PM.
- By chappa in forum AWT / SwingReplies: 6Last Post: 01-09-2010, 02:37 PM
- By Mpisha in forum NetBeansReplies: 1Last Post: 10-14-2008, 05:27 PM
- By Java Tip in forum SWT TipsReplies: 0Last Post: 06-28-2008, 09:26 PM
- By Java Tip in forum java.awtReplies: 0Last Post: 06-25-2008, 10:31 AM
- By Java Tip in forum java.awtReplies: 0Last Post: 06-23-2008, 11:14 PM