+ if(evt.getActionCommand().equals(EDITNAME))\r
+ {\r
+ TextField id = new TextField(aa[selectedRow].label, 40);\r
+ TextField description = new TextField(aa[selectedRow].description, 40);\r
+ Panel panel = new Panel(new BorderLayout());\r
+ Panel panel2 = new Panel(new BorderLayout());\r
+ panel2.add(new Label(" Annotation Label "), BorderLayout.WEST);\r
+ panel2.add(id, BorderLayout.CENTER);\r
+ panel.add(panel2, BorderLayout.NORTH);\r
+ panel2 = new Panel(new BorderLayout());\r
+ panel2.add(new Label("Annotation Description "), BorderLayout.WEST);\r
+ panel2.add(description, BorderLayout.CENTER);\r
+ panel.add(panel2, BorderLayout.CENTER);\r
+\r
+ panel2 = new Panel(new FlowLayout());\r
+\r
+ panel2.add(okDialog);\r
+ panel2.add(cancelDialog);\r
+\r
+ panel.add(panel2, BorderLayout.SOUTH);\r
+\r
+ editNameDialog = new Dialog(ap.alignFrame,\r
+ "Edit Annotation Name / Description",\r
+ true);\r
+\r
+ editNameDialog.add(panel, BorderLayout.NORTH);\r
+\r
+ editNameDialog.setBounds(ap.alignFrame.getBounds().x\r
+ +(ap.alignFrame.getSize().width-500)/2 ,\r
+ ap.alignFrame.getBounds().y\r
+ +(ap.alignFrame.getSize().height-120)/2,\r
+ 500, 130);\r
+\r
+ editNameDialog.show();\r
+\r
+ if (editNameDialog != null)\r
+ {\r
+ aa[selectedRow].label=id.getText();\r
+ aa[selectedRow].description=description.getText();\r
+ repaint();\r
+ }\r
+\r
+ }\r