//Create Backup Panel
//**********************************************************
JPanel panelBackup = new JPanel() {
@Override
public JToolTip createToolTip() {
return new DcMultiLineToolTip();
}
};
panelBackup.setLayout(Layout.getGBL());
buttonBackup.addActionListener(this);
buttonBackup.setActionCommand("backup");
JScrollPane commentScroller = new JScrollPane(textComment);
commentScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
panelBackup.add(fileFieldTarget, Layout.getGBC( 0, 0, 1, 1, 1.0, 1.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
new Insets( 0, 5, 5, 5), 0, 0));
panelBackup.add(buttonBackup, Layout.getGBC( 1, 0, 1, 1, 0.0, 0.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE,
new Insets( 0, 0, 5, 5), 0, 0));
panelBackup.add(ComponentFactory.getLabel(DcResources.getText("lblComment")),
Layout.getGBC( 0, 1, 2, 1, 1.0, 1.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.NONE,
new Insets(5, 5, 5, 5), 0, 0));
panelBackup.add(commentScroller, Layout.getGBC( 0, 2, 2, 1, 10.0, 10.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
new Insets(5, 5, 5, 5), 0, 0));
panelBackup.setToolTipText(DcResources.getText("tpBackup"));
panelBackup.setBorder(ComponentFactory.getTitleBorder(DcResources.getText("lblBackupHeader")));
//**********************************************************
//Restore Restore Panel
//**********************************************************
JPanel panelRestore = new JPanel() {
@Override
public JToolTip createToolTip() {
return new DcMultiLineToolTip();
}
};
panelRestore.setLayout(Layout.getGBL());
buttonRestore.addActionListener(this);