private class LayoutPaneMouseListener extends MouseAdapter {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getButton() == MouseEvent.BUTTON1) {
if (Core.isReady()) {
EditDialog ed = new EditDialog(view);
ed.setIndex(model.getSubIndex());
ed.setVisible(true);
model.setSubIndex(ed.getIndex());
try {
int subIndex = model.getSubIndex();
Core.convertSup(subIndex, subIndex + 1, Core.getNumFrames());
view.refreshSrcFrame(subIndex);
view.refreshTrgFrame(subIndex);