Are there any drawbacks if you use setLayout(null) for say JFrame and use setBounds method to set the positions of components in that JFrame. GUI prospect.
Are there any drawbacks if you use setLayout(null) for say JFrame and use setBounds
Share
Yes: if you want the components in that JFrame to automatically reposition and resize themselves when the user resizes the JFrame, you’ll be disappointed! Otherwise, a null layout is fine.