Hallo,
hier erzeuge ich einen JDialog mit JGoodies:
FormLayout layout = new FormLayout("100px, 100px, 100px, 100px, 100px, 100px",
"pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, "
+ "pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, "
+ "pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu, pref");
JPanel panel = new JPanel(layout);
panel.setBorder(Borders.DIALOG_BORDER);
// Fill the table with labels and components.
CellConstraints cc = new CellConstraints();
panel.add(new JLabel("Transfer File:"), cc.xy (1, 3));
panel.add(browseCombobox, cc.xyw (2, 3, 3));
panel.add(browseButton, cc.xyw (6, 3, 1));
panel.add(new JLabel("Destination:"), cc.xy (1, 5));
panel.add(destinationTextField, cc.xyw (2, 5, 3));
panel.add(new JLabel("Source:"), cc.xy (1, 7));
panel.add(sourceTextField, cc.xyw (2, 7, 3));
panel.add(new JLabel("Signal Name:"), cc.xy (1, 11));
panel.add(signalNameTextField, cc.xyw (2, 11, 3));
panel.add(new JLabel("Versioned"), cc.xy(1, 13));
panel.add(versionedCheckbox, cc.xy(2, 13));
panel.add(addFileButton, cc.xyw(5, 15,1));
panel.add(removeFileButton, cc.xyw(6, 15,1));
panel.add(createSeparator("Files"), cc.xyw(1, 16, 6));
panel.add(getTableFilesView(), cc.xyw(1, 20, 6));
panel.add(submitButton, cc.xy(6, 32));
Warum sieht mein Dialog so aus (siehe Anhang)?
Was mache ich falsch?
Der Seperater ist nicht zu sehen, die Tabelle ist winzig schmal und der Submit-Button auch..