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

about add component to panel  RSS feed

 
rose deng
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I add several components in panel,they will be in the center of the panel. My question is how to add components into panel from left to right?
Thank you in advance.
 
Steven YaegerII
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm probably wrong, but, I think you need to use a FlowLayout.
 
ron erwin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<bold>I suggest you look at all the models and pick the best Layout manager to suit your needs.

GridBagLayout offers the most features and the most flexibility.. all the rest have features and tradeoffs.. (so does gridbaglayout too)..
</bold>
<h2>Ron Erwin </h2>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!