Lembrando que estou com a fonte Tahoma 8 tanto no windows como no linux.
Linux:
Windows:
trecho do codigo:
private JPanel buildPanel() {
FormLayout layout = new FormLayout(
"29dlu, 1dlu, 97dlu, 1dlu, 45dlu, 1dlu, 45dlu, 1dlu, 73dlu, 11dlu",
"pref, 3dlu, pref, 3dlu, 18px, 1dlu, 200dlu, 3dlu, pref");
DefaultFormBuilder builder = new DefaultFormBuilder (layout);
builder.setDefaultDialogBorder();
CellConstraints cc = new CellConstraints();
int row = 1;
builder.add(buildPanelFilter(), cc.xyw(1, row, 10));
//builder.add();
row += 2;
builder.addSeparator("", cc.xyw(1, row, 10));
row += 2;
builder.add(cmbCadAtivo, cc.xy(3, row));
builder.add(txtcadDate, cc.xy(5, row));
builder.add(txtcadTime, cc.xy(7, row));
builder.add(txtcadValue, cc.xy(9, row));
row += 2;
builder.add(jsCotacoes, cc.xyw(1, row, 10));
row += 2;
builder.add(ButtonBarFactory.buildLeftAlignedBar(btnRemover, btnClear), cc.xyw(1, row, 7));
builder.add(ButtonBarFactory.buildCloseBar(btnFechar), cc.xyw(9, row, 2));
return builder.getPanel();
}
private JPanel buildPanelFilter() {
FormLayout layout = new FormLayout(
"right:pref, 4dlu, 45dlu, 4dlu, right:pref, 4dlu, 45dlu, 4dlu, max(pref;110dlu), 4dlu, right:pref:grow",
"18px");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.setDefaultDialogBorder();
builder.setBorder(Borders.EMPTY_BORDER);
CellConstraints cc = new CellConstraints();
int row = 1;
builder.addLabel("de:", cc.xy(1, row));
builder.add(txtDateInit, cc.xy(3, row));
builder.addLabel("até:", cc.xy(5, row));
builder.add(txtDateEnd, cc.xy(7, row));
builder.add(cmbAtivo, cc.xy(9, row));
builder.add(btnFiltrar, cc.xy(11, row));
return builder.getPanel();
}