super(GanttProject.correctLabel(GanttLanguage.getInstance().getText(
"project")), GanttLanguage.getInstance().getText(
"settingsProject"), owner);
myProject = project;
Box vbproject = Box.createVerticalBox();
/*
* JPanel filePanel = new JPanel(new BorderLayout()); filePanel.add(new
* JLabel(language.getText("file")), BorderLayout.WEST);
* vbproject.add(filePanel); vbproject.add(tfFile = new JTextField());
* tfFile.setEditable(false); vbproject.add(new JPanel());
*/
JPanel namePanel = new JPanel(new BorderLayout());
namePanel.add(new JLabel(language.getText("name")), BorderLayout.WEST);
vbproject.add(namePanel);
vbproject.add(tfName = new JTextField());
vbproject.add(new JPanel());
JPanel orgaPanel = new JPanel(new BorderLayout());
orgaPanel.add(new JLabel(language.getText("organization")),
BorderLayout.WEST);
vbproject.add(orgaPanel);
vbproject.add(tfOrganization = new JTextField());
vbproject.add(new JPanel());
tfWebLink = new JTextField();
JButton bWeb = new TestGanttRolloverButton(new ImageIcon(getClass()
.getResource("/icons/web_16.gif")));
bWeb.setToolTipText(GanttProject.getToolTip(language
.getText("openWebLink")));
bWeb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// link to open the web link
if (!BrowserControl.displayURL(tfWebLink.getText())) {
GanttDialogInfo gdi = new GanttDialogInfo(null,
GanttDialogInfo.ERROR, GanttDialogInfo.YES_OPTION,
language.getText("msg4"), language.getText("error"));
gdi.show();
}
}
});
JPanel webPanel = new JPanel(new BorderLayout());
webPanel
.add(new JLabel(language.getText("webLink")), BorderLayout.WEST);
webPanel.add(bWeb, BorderLayout.EAST);
vbproject.add(webPanel);
vbproject.add(tfWebLink);
vbproject.add(new JPanel());
JPanel descrPanel = new JPanel(new BorderLayout());
descrPanel.add(new JLabel(language.getText("shortDescription")),
BorderLayout.WEST);
vbproject.add(descrPanel);
taDescr = new JTextArea(12, 25);
taDescr.setLineWrap(true);
taDescr.setWrapStyleWord(true);
JScrollPane scpArea = new JScrollPane(taDescr);
vbproject.add(scpArea);
JPanel projectPanel = new JPanel(new BorderLayout());
projectPanel.add(vbproject, BorderLayout.NORTH);
vb.add(projectPanel);