java - Is using more JPanels and the use of the setBounds() method okay? -


i have written many simple guis, worked fine. beginner think way of writing user interfaces not practice.

is proper practice if 1 uses more panels desired interface? use of setbounds() method good?

  1. the less sub-components use, more responsive ui going be. because has less things deal with.

  2. i not recommend using 'setbounds` creates inflexible ui in cases. encourage start using layouts such borderlayout, flowlayout etc. versatile of them miglayout

here more general information swing layouts: https://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -