Results 1 to 2 of 2

Thread: drawString()

  1. #1
    SYENCE is offline Member
    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    Default drawString()

    Is there a way to use the drawString() method and have whatever it draws brought to the front? For some reason whenever I set the x coordinate above 10 I cannot see it . ie
    super.paintComponent(g);

    if (symbol == '1') {
    String chin0 = "\u4E00";
    g.setFont(new Font(chin0, Font.BOLD, 16));
    g.drawString(chin0 , 55, 10);
    }

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: drawString()

    Guide For New Members
    BB Code List - Java Programming Forum

    Whatever's last drawn is drawn over anything previously drawn. To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. g.drawstring removal
    By jwl in forum New To Java
    Replies: 4
    Last Post: 10-20-2012, 04:04 AM
  2. Replies: 5
    Last Post: 10-24-2011, 08:00 PM
  3. How to change size of drawString in Jpanel?
    By david522 in forum New To Java
    Replies: 1
    Last Post: 05-17-2011, 01:56 PM
  4. help with drawString
    By h3nch in forum AWT / Swing
    Replies: 5
    Last Post: 01-16-2010, 02:58 PM
  5. drawString with Chinese Characters
    By vaskarbasak in forum Advanced Java
    Replies: 1
    Last Post: 06-10-2008, 07:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •