use of javax.swing.DefaultListModel in project processdash by dtuma.
the class TeamProjectBrowser method buildScriptList.
private void buildScriptList() {
scripts = new DefaultListModel();
scriptList = new ScriptList(scripts);
scriptList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
scriptList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
scriptList.addMouseListener(new ListClickHandler());
scriptList.getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "showScript");
scriptList.getActionMap().put("showScript", new ListEnterAction());
setRightComponent(new JScrollPane(scriptList));
}
Aggregations