• Post Reply Bookmark Topic Watch Topic
  • New Topic

specifying dimensions of JList  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a. Is there any way to set the dimension for a JList object?
b. Is it possible to change the sizeof cells in GridBagLayout ?
 
paul wheaton
Trailboss
Posts: 22262
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can change the size of cells in gridbag layout. I usually use the weightx and weighty stuff.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!