• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

gridlayout and null layout??

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
in one code i am using gridlayout for laying panels on a jframe

later when i give null layout and place a label using setbounds
i donot get the required position.can i conclude that they together cannot be used

srijan
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
we cannot use two layouts for the same JFrame.so when you used null layout ,the previous layout has been changed to null layout.that can be the reason for which you could not get the required positions for the components.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic