Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

what could be the reason my text isn't showing up on panel?

+4 votes
asked Feb 13, 2015 in (Winter 14) by Rafael Rodriguez (100 points)

2 Answers

+4 votes
When you are entering your text, are you using a system.out.println or a system.out.print statement? If so, you might want to try changing your text to a g.drawString so that it will show up on a drawing panel.
answered Feb 13, 2015 by Travis Miller (100 points)
+1 vote
This can also happen when you're drawing in the same color as the background color of your panel, or if you're drawing to coordinates that are off the screen.
answered Feb 15, 2015 by Forrest Stonedahl (100 points)