@Override
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting() == false) {
RadiologyMethodValue entry = (RadiologyMethodValue)methodList.getSelectedValue();
if (entry == null) {
return;
}
fetchComments(entry.getHierarchyCode1());
}
}
});
JScrollPane scroller = new JScrollPane(methodList,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
p1.add(scroller);
p1.setBorder(BorderFactory.createTitledBorder("撮影方法"));
// Commet panel
JPanel p2 = new JPanel(new BorderLayout());
commentList = new JList();
commentList.setFixedCellWidth(COMMENT_CELL_WIDTH);
commentList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
commentList.addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting() == false) {
RadiologyMethodValue entry = (RadiologyMethodValue)commentList.getSelectedValue();
if (entry == null) {
return;
}
notifyComment(entry.getMethodName());
}
}
});
scroller = new JScrollPane(commentList,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,