list.setName("list");
scrollPane = new JScrollPane(list);
scrollPane.setPreferredSize(new Dimension(110, 200));
currentPanel.add(scrollPane, BorderLayout.EAST);
Box currentButtonBox = Box.createVerticalBox();
Box deletedButtonBox = Box.createVerticalBox();
JButton bUp = new JButton();
bUp.setIcon(new ImageIcon(getClass().getResource("/icons/up_16.gif")));
bUp.setToolTipText(GanttProject.getToolTip(GanttProject
.correctLabel(language.getText("upTask"))));
bUp.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
upButtonActionPerformed(evt);
}
});
JButton bDown = new JButton();
bDown.setIcon(new ImageIcon(getClass()
.getResource("/icons/down_16.gif")));
bDown.setToolTipText(GanttProject.getToolTip(GanttProject
.correctLabel(language.getText("downTask"))));
bDown.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
downButtonActionPerformed(evt);
}
});
JButton bSeparator = new JButton();
bSeparator.setIcon(new ImageIcon(getClass().getResource(
"/icons/separator_16.gif")));
bSeparator.setToolTipText(GanttProject.getToolTip(GanttProject
.correctLabel(language.getText("separator"))));
bSeparator.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
separatorButtonActionPerformed(evt);
}
});
JButton bDelete = new JButton();
bDelete.setIcon(new ImageIcon(getClass().getResource(
"/icons/indent_16.gif")));
bDelete.setToolTipText(GanttProject.getToolTip(GanttProject
.correctLabel(language.getText("delete"))));
bDelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteButtonActionPerformed(evt);
}
});
JButton bAdd = new JButton();
bAdd.setIcon(new ImageIcon(getClass().getResource(
"/icons/unindent_16.gif")));
bAdd.setToolTipText(GanttProject.getToolTip(GanttProject
.correctLabel(language.getText("add"))));
bAdd.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addButtonActionPerformed(evt);
}
});
currentButtonBox.add(new JPanel());
currentButtonBox.add(new JPanel());
currentButtonBox.add(bUp);
currentButtonBox.add(new JPanel());
currentButtonBox.add(bDown);
currentButtonBox.add(new JPanel());
currentButtonBox.add(new JPanel());
deletedButtonBox.add(new JPanel());
deletedButtonBox.add(new JPanel());
deletedButtonBox.add(bAdd);
deletedButtonBox.add(new JPanel());
deletedButtonBox.add(bDelete);
deletedButtonBox.add(new JPanel());
deletedButtonBox.add(new JPanel());
positionPanel.add(currentButtonBox);
positionPanel.add(currentPanel);
positionPanel.add(new JPanel());
positionPanel.add(deletedButtonBox);