use of net.sourceforge.processdash.ui.lib.JHintTextField in project processdash by dtuma.
the class AddTaskDialog method makeNewTaskComponentRow.
private Component makeNewTaskComponentRow() {
BoxUtils result = BoxUtils.hbox();
// create an icon to suggest the parent-child relationship
JLabel childIcon = new JLabel(new ChildIcon());
childIcon.setAlignmentY(0.5f);
result.addItem(childIcon);
// create components for selecting and displaying the task type
result.addItem(createTaskTypeSelector());
taskTypeIcon.setAlignmentY(0.5f);
result.addItem(taskTypeIcon);
result.addItem(4);
// create a text field for entering the new task name
taskName = new JHintTextField(resources.getString("Task_Name_Hint"));
taskName.setDocument(new NodeNameDocument());
taskName.setAlignmentY(0.5f);
result.addItem(taskName);
return result;
}
Aggregations