+ * Dialog message truncation
+ */
+ void doTest5()
+ {
+ JFrame main = new JFrame();
+ main.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+ main.setContentPane(new JPanel());
+ main.setMinimumSize(new Dimension(100, 100));
+ main.pack();
+ main.setVisible(true);
+
+ /*
+ * like AlignFrame.delete_actionPerformed()
+ * except here it works fine, also in JS
+ */
+ JvOptionPane dialog = JvOptionPane.newOptionDialog(null);
+ Object[] options = new Object[] { "OK", "Cancel" };
+ String msg = "<html>Deleting all sequences will close the alignment window.<br>Confirm deletion or Cancel.";
+ dialog.showDialog(msg, "", JvOptionPane.DEFAULT_OPTION, JvOptionPane.PLAIN_MESSAGE, null, options, options[0]);
+
+ }
+
+ void doTest4()
+ {
+ Float fl = new Float(0f);
+ System.out.println(fl.isInfinite());
+ System.out.println(fl.isNaN());
+
+ System.out.println(Float.isInfinite(0f));
+ System.out.println(Float.isFinite(0f));
+ System.out.println(Float.isNaN(0f));
+ }
+
+ void doTest3()
+ {
+ System.out.println("Mungo".toLowerCase(Locale.getDefault()));
+ System.out.println("Mungo".toLowerCase(Locale.ENGLISH));
+ System.out.println("Mungo".toLowerCase(Locale.ROOT));
+ }
+
+ void doTest2() {
+ Map<File, String> map = new HashMap<>();
+ File f1 = new File("/var/folders/y/xyz");
+ File f2 = new File("/var/folders/y/xyz");
+ map.put(f1, "hello world");
+ System.out.println("f1.equals(f2) = " + f1.equals(f2));
+ System.out.println("f1 hashCode = " + f1.hashCode());
+ System.out.println("f2 hashCode = " + f2.hashCode());
+ System.out.println(map.get(f2));
+ }
+
+ /**