• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLabels are not visible  RSS feed

 
Girish Singhal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my code:





why my JLabels are not visible on the frame.
 
Mohamed Sanaulla
Bartender
Posts: 3174
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There seems to be some issue with the code- There is not getIconHeight, getIconWidth for the JLabel. You might be trying to use getIcon().getIconXXX().
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code doesn't even compile. First, post the correct code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!