• Post Reply Bookmark Topic Watch Topic
  • New Topic

Import image

 
Ivan Kesic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cant import image!

\
So i see panel, but no image in it.
Ive put my folder with picture 1.jpg in bin folder of my project! NO exeptions just no image. What am i doing wrong?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You never add the imageLabel to your panel.
 
Ivan Kesic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg Bolinger wrote:You never add the imageLabel to your panel.


So stupid
srednjiPanel.add(imageLabel);
thank you
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Kesic wrote:
Gregg Bolinger wrote:You never add the imageLabel to your panel.


So stupid
srednjiPanel.add(imageLabel);
thank you


Happens to the best of us.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!