The image is not displayed, the window must be enlarged so that it is just displayed ... Java


Greetings, friends, programmers, this time I am writing to you to ask for help with my project in Java. As the title says, when compiling my code, only my letters are shown on the panel, but not the image, but ... when I enlarge the window just a little, the image just appears and also my text box, please someone to help me with this problem.

asked by Bilongas 05.12.2018 в 01:48

1 answer


Try changing line 44:


And put:


If that still does not work, try changing the sentence that I told you this.add (panel); and place it on line 61, just after panel.add (boxText) ;

I hope it helps you, is what I can tell you without being able to see all your code well

Luck friend:)

answered by 06.12.2018 в 23:04