Results 1 to 2 of 2
Thread: drawString()
- 10-24-2012, 11:55 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 2
- Rep Power
- 0
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);
}
- 10-25-2012, 02:11 AM #2
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
g.drawstring removal
By jwl in forum New To JavaReplies: 4Last Post: 10-20-2012, 04:04 AM -
How can I click on an image from drawstring()?
By rippon in forum Java 2DReplies: 5Last Post: 10-24-2011, 08:00 PM -
How to change size of drawString in Jpanel?
By david522 in forum New To JavaReplies: 1Last Post: 05-17-2011, 01:56 PM -
help with drawString
By h3nch in forum AWT / SwingReplies: 5Last Post: 01-16-2010, 02:58 PM -
drawString with Chinese Characters
By vaskarbasak in forum Advanced JavaReplies: 1Last Post: 06-10-2008, 07:49 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks