151617181920212223
} public void actionPerformed(ActionEvent e) { Node n = yoshikoder.getSelectedNode(); if ((n != null) && (n instanceof CategoryNode)) { JDialog dia = new NewCategoryDialog(yoshikoder, (CategoryNode)n); dia.setVisible(true); } }