• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLabels are not visible  RSS feed

 
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.
 
Bartender
Posts: 3185
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().
 
Bartender
Posts: 1104
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.
 
All of the following truths are shameless lies. But what about this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!