Win a copy of The Java Performance Companion this week in the Performance 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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic