"pref,5dlu,pref,3dlu,pref"),this);
pb.setDefaultDialogBorder();
pb.addSeparator(mLocalizer.msg("What", "What to start"), cc.xyw(1,1,7));
JRadioButton application = new JRadioButton(mLocalizer.msg("Application", "Application"));
pb.add(application, cc.xy(2,3));
mPathTextField.setText(mData.getProgramPath());
mPathTextField.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
mData.setProgramPath(mPathTextField.getText());
}
});
pb.add(mPathTextField, cc.xy(4,3));
mFileButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
pathButtonPressed(e);
}
});
pb.add(mFileButton, cc.xy(6,3));
JRadioButton url = new JRadioButton(mLocalizer.msg("URL", "URL"));
pb.add(url, cc.xy(2,5));
mUrl.setText(mData.getWebUrl());
mUrl.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
mData.setWebUrl(mUrl.getText());
}
});
pb.add(mUrl, cc.xyw(4,5,3));
ButtonGroup group = new ButtonGroup();
group.add(application);
group.add(url);
url.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setUrlMode(true);
}
});
application.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setUrlMode(false);
}
});
if (mData.getUseWebUrl()) {
url.setSelected(true);
} else {
application.setSelected(true);
}
setUrlMode(mData.getUseWebUrl());