Components scattering! and joptionpane trouble

I am using border layout in my frame and I have used different panels in various regions of the border layout. But when I maximize my frame the components scatter all over the place and the panels are ousted from the frame. Which property should I be manipulating to prevent this?

You can use Absolute Positioning by making setLayout(null). Check this link for example. If problem persists try using GridBagLayout or open-source MiG Layout.MiG Layout is helpful in designing complex UI.


The confirm dialog box is not recognizing the no option. It prints yes no matter what i press. Can anyone help?

if(e.getSource()==b5){int db=0;JOptionPane.showConfirmDialog(null,"Exitthis        


Constructive and genuine appreciation and/or criticism most welcome

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s