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?
the less sub-components use, more responsive ui going be. because has less things deal with.
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
Post a Comment