me.getParentView((Session)this),
parent,
   private void showHexMap() {      JPanel srp = new JPanel();      srp.setLayout(new BorderLayout());      DefaultListModel listModel = new DefaultListModel();      StringBuffer sb = new StringBuffer();      // we will use a collator here so that we can take advantage of the locales      Collator collator = Collator.getInstance();      CollationKey key = null;      Set set = new TreeSet();      for (int x =0;x < 256; x++) {         char c = vt.ebcdic2uni(x);         char ac = vt.getASCIIChar(x);         if (!Character.isISOControl(ac)) {            sb.setLength(0);            if (Integer.toHexString(ac).length() == 1){               sb.append("0x0" + Integer.toHexString(ac).toUpperCase());            }            else {               sb.append("0x" + Integer.toHexString(ac).toUpperCase());            }            sb.append(" - " + c);            key = collator.getCollationKey(sb.toString());            set.add(key);         }      }      Iterator iterator = set.iterator();      while (iterator.hasNext()) {         CollationKey keyc = (CollationKey)iterator.next();         listModel.addElement(keyc.getSourceString());     }      //Create the list and put it in a scroll pane      JList hm = new JList(listModel);      hm.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);      hm.setSelectedIndex(0);      JScrollPane listScrollPane = new JScrollPane(hm);      listScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);      listScrollPane.setSize(40,100);      srp.add(listScrollPane,BorderLayout.CENTER);      Object[]      message = new Object[1];      message[0] = srp;      String[] options = {LangTool.getString("hm.optInsert"),                           LangTool.getString("hm.optCancel")};      int result = 0;      result = JOptionPane.showOptionDialog(          me.getParentView((Session)this),   // the parent that the dialog blocks          message,                           // the dialog message array          LangTool.getString("hm.title"),    // the title of the dialog window          JOptionPane.DEFAULT_OPTION,        // option type          JOptionPane.INFORMATION_MESSAGE,      // message type          null,                              // optional icon, use null to use the default icon          options,                           // options string array, will be made into buttons//          options[0]                         // option that should be made into a default button      );      switch(result) {         case 0: // Insert character            String k = "";            k += ((String)hm.getSelectedValue()).charAt(7);            screen.sendKeys(k);            break;         case 1: // Cancel//		      System.out.println("Cancel");            break;         default:            break;      }   }