swing - JPanel and Java layout managers -


having read on internet jpanel while feel still need clarification after reading it. questions:

  1. what jpanel used for?
  2. which layout manager flexible use?
  3. how position components @ areas using layout managers?

i find difficult position components @ areas within container using layout manager.

what layout manager recommend use or have use mixture of different ones?

my first question jpanel used for.

you know that. add components panel.

my second question layout manager flexible use

the more flexible layout manager, more complicated layout manager use. trick design gui logically , use multiple panels different layout manager achieve desire effect.

each layout manager has own strengths , weaknesses.

i find difficult position components @ areas within container using layout manager.

that old thinking. should not trying position components specifically. position components , let layout manager adjust size of frame changed user.

maybe want components centered, or in grid. there different layout managers achieve task. can't give specific advice. if have specific problem specific question , post code shows have tried.

but first, read swing tutorial on layout manager , download example code play code understand how each works. learn trying.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -