I want to draw a text on a JPanel.I know about method drawString but i can't make it work. Then i found a code in the Internet :
learning java
but i can't understand how works? If i put in str_x and str_y , 0 and 0 it doesn't prints me anything. If i leave them as it is it prints me the string but only in the center of x-axis, look
if i put something else as example drawString("hi", 20,20) still doesn't print anything
thanks in advance!