Hi, kann mir einer erklären, für was die ganzen 0 -en in den Arrays ab Zeile 8 stehn? Und was es mit dem ContentPane auf sich hat? Finde gerade zu den Arrays keine Erklärung im Internet...
Java:
setSize(350, 300);
setLocationRelativeTo(null);
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
getContentPane().setLayout(new BorderLayout());
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
getContentPane().add(contentPanel, BorderLayout.CENTER);
GridBagLayout gbl_contentPanel = new GridBagLayout();
gbl_contentPanel.columnWidths = new int[] { 0, 0, 0, 0 };
gbl_contentPanel.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0 };
gbl_contentPanel.columnWeights = new double[] { 0.0, 0.0, 1.0,
Double.MIN_VALUE };
gbl_contentPanel.rowWeights = new double[] { 1.0, 0.0, 0.0, 1.0, 0.0,
0.0, Double.MIN_VALUE };
contentPanel.setLayout(gbl_contentPanel);