Search in sources :

Example 1 with JHintTextField

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;
}
Also used : JLabel(javax.swing.JLabel) BoxUtils(net.sourceforge.processdash.ui.lib.BoxUtils) JHintTextField(net.sourceforge.processdash.ui.lib.JHintTextField)

Aggregations

JLabel (javax.swing.JLabel)1 BoxUtils (net.sourceforge.processdash.ui.lib.BoxUtils)1 JHintTextField (net.sourceforge.processdash.ui.lib.JHintTextField)1