Hi,
I'm about to create a GUI using JFrame. I've come across an example using methods GridLayout and createEmptyBorder as in:
workPanel=new JPanel(new GridLayout(6,1));
workPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,40));
What do the integers in GridLayout(6,1) and in createEmptyBorder(10,10,10,40) represent?
I've read through the documentation in java.sun.com but I haven't found a genuine explanation.
A brief explanation will be very much appreciated. Or maybe someone can refer me to a right forum or website?
Thanks!
Andre
I'm about to create a GUI using JFrame. I've come across an example using methods GridLayout and createEmptyBorder as in:
workPanel=new JPanel(new GridLayout(6,1));
workPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,40));
What do the integers in GridLayout(6,1) and in createEmptyBorder(10,10,10,40) represent?
I've read through the documentation in java.sun.com but I haven't found a genuine explanation.
A brief explanation will be very much appreciated. Or maybe someone can refer me to a right forum or website?
Thanks!
Andre