Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with code  RSS feed

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm learning Java and trying to piece together a small swing application but the JLabel isn't showing up. Can anyone see what's wrong with the code below? I am new so any helpful tips on what I've done below would be helpful as well. Thanks.

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lol, never mind. The basic of the basic, I guess I accidentially deleted the call to addFlds. While I'm here does anyone have a good book or link they would recommend on learning to lay out a good user interface in swing? Something that allows greatest flexibility and such. Thanks again.
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

You don't seem to have made a call to your addFlds() method from your constructor.

[edit]You were too quick, glad you got it sorted [/edit]

Sean
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!