Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding a JPanel Component

 
V Bose
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Line 1 works but Line 2 does not. (when using one or the other...)
Any suggestions why ?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by V Bose:
...Line 1 works but Line 2 does not. (when using one or the other...)...

What makes you say it's not working? There is nothing wrong with either of these lines. Both should work in the proper context -- but neither will work in the context presented, so maybe the problem is in the missing code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic