• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Newbie: I can't get my text to appear

 
Toni Howlett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For my project, I have to have the same thing (lable, picture, 2 buttons) 3 different time and so it was suggested to make a separate class that extends JPanel, write the code for 1 and then call it 3 times.


I am NOT getting any errors, just lack of results.

(I have all correct imports)


Then in my driver class I call


I have a label in my driver class that I add to body at PAGE_END and it shows up. So obviously, my error is within ImagePanel, but i'm extremely confused.

Please help.
 
Toni Howlett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After almost an hour of googling... I found someone with a similar problem and what solved it is that I had to put at the end of my ImagePanel class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!