JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / jalview / appletgui / FontChooser.js
index c8a21c0..a0154ca 100644 (file)
-Clazz.declarePackage ("jalview.appletgui");\r
-Clazz.load (["awt2swing.Panel", "java.awt.event.ItemListener", "awt2swing.Button", "$.Checkbox", "$.Choice", "java.awt.Font"], "jalview.appletgui.FontChooser", ["awt2swing.Frame", "$.Label", "jalview.appletgui.JVDialog", "jalview.bin.JalviewLite", "jalview.util.MessageManager", "java.awt.BorderLayout", "$.Color", "$.FlowLayout", "$.Toolkit", "java.awt.event.ActionListener"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.fontSize = null;\r
-this.fontStyle = null;\r
-this.fontName = null;\r
-this.scaleAsCdna = null;\r
-this.ok = null;\r
-this.cancel = null;\r
-this.ap = null;\r
-this.tp = null;\r
-this.oldFont = null;\r
-this.oldCharWidth = 0;\r
-this.oldScaleProtein = false;\r
-this.lastSelected = null;\r
-this.lastSelStyle = 0;\r
-this.lastSelSize = 0;\r
-this.$init = true;\r
-this.frame = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.appletgui, "FontChooser", awt2swing.Panel, java.awt.event.ItemListener);\r
-Clazz.prepareFields (c$, function () {\r
-this.fontSize =  new awt2swing.Choice ();\r
-this.fontStyle =  new awt2swing.Choice ();\r
-this.fontName =  new awt2swing.Choice ();\r
-this.scaleAsCdna =  new awt2swing.Checkbox ();\r
-this.ok =  new awt2swing.Button ();\r
-this.cancel =  new awt2swing.Button ();\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (tp) {\r
-Clazz.superConstructor (this, jalview.appletgui.FontChooser, []);\r
-try {\r
-this.jbInit ();\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-e.printStackTrace ();\r
-} else {\r
-throw e;\r
-}\r
-}\r
-this.tp = tp;\r
-this.oldFont = tp.getTreeFont ();\r
-this.init ();\r
-}, "jalview.appletgui.TreePanel");\r
-Clazz.makeConstructor (c$, \r
-function (ap) {\r
-Clazz.superConstructor (this, jalview.appletgui.FontChooser, []);\r
-this.ap = ap;\r
-this.oldFont = ap.av.getFont ();\r
-this.oldCharWidth = ap.av.getViewStyle ().getCharWidth ();\r
-this.oldScaleProtein = ap.av.getViewStyle ().isScaleProteinAsCdna ();\r
-try {\r
-this.jbInit ();\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-e.printStackTrace ();\r
-} else {\r
-throw e;\r
-}\r
-}\r
-this.init ();\r
-}, "jalview.appletgui.AlignmentPanel");\r
-Clazz.defineMethod (c$, "init", \r
-function () {\r
-var fonts = java.awt.Toolkit.getDefaultToolkit ().getFontList ();\r
-for (var i = 0; i < fonts.length; i++) {\r
-this.fontName.addItem (fonts[i]);\r
-}\r
-for (var i = 1; i < 31; i++) {\r
-this.fontSize.addItem (i + "");\r
-}\r
-this.fontStyle.addItem ("plain");\r
-this.fontStyle.addItem ("bold");\r
-this.fontStyle.addItem ("italic");\r
-this.fontName.select (this.oldFont.getName ());\r
-this.fontSize.select (this.oldFont.getSize () + "");\r
-this.fontStyle.select (new Integer (this.oldFont.getStyle ()));\r
-this.frame =  new awt2swing.Frame ();\r
-this.frame.add (this);\r
-jalview.bin.JalviewLite.addFrame (this.frame, jalview.util.MessageManager.getString ("action.change_font"), 440, 115);\r
-this.$init = false;\r
-});\r
-Clazz.overrideMethod (c$, "itemStateChanged", \r
-function (evt) {\r
-var source = evt.getSource ();\r
-if (source === this.fontName) {\r
-this.fontName_actionPerformed ();\r
-} else if (source === this.fontSize) {\r
-this.fontSize_actionPerformed ();\r
-} else if (source === this.fontStyle) {\r
-this.fontStyle_actionPerformed ();\r
-} else if (source === this.scaleAsCdna) {\r
-this.scaleAsCdna_actionPerformed ();\r
-}}, "java.awt.event.ItemEvent");\r
-Clazz.defineMethod (c$, "ok_actionPerformed", \r
-function () {\r
-this.frame.setVisible (false);\r
-if (this.ap != null) {\r
-if (this.ap.getOverviewPanel () != null) {\r
-this.ap.getOverviewPanel ().updateOverviewImage ();\r
-}}});\r
-Clazz.defineMethod (c$, "cancel_actionPerformed", \r
-function () {\r
-if (this.ap != null) {\r
-this.ap.av.setScaleProteinAsCdna (this.oldScaleProtein);\r
-if (this.ap.av.getCodingComplement () != null) {\r
-this.ap.av.getCodingComplement ().setScaleProteinAsCdna (this.oldScaleProtein);\r
-this.ap.alignFrame.getSplitFrame ().repaint ();\r
-}this.ap.av.setFont (this.oldFont);\r
-var style = this.ap.av.getViewStyle ();\r
-if (style.getCharWidth () != this.oldCharWidth) {\r
-style.setCharWidth (this.oldCharWidth);\r
-this.ap.av.setViewStyle (style);\r
-}this.ap.paintAlignment (true);\r
-} else if (this.tp != null) {\r
-this.tp.setTreeFont (this.oldFont);\r
-this.tp.treeCanvas.repaint ();\r
-}this.fontName.select (this.oldFont.getName ());\r
-this.fontSize.select (this.oldFont.getSize () + "");\r
-this.fontStyle.select (new Integer (this.oldFont.getStyle ()));\r
-this.frame.setVisible (false);\r
-});\r
-Clazz.defineMethod (c$, "changeFont", \r
-function () {\r
-if (this.lastSelected == null) {\r
-this.lastSelected = this.oldFont;\r
-this.lastSelSize = this.oldFont.getSize ();\r
-this.lastSelStyle = this.oldFont.getStyle ();\r
-}var newFont =  new java.awt.Font (this.fontName.getSelectedItem ().toString (), this.fontStyle.getSelectedIndex (), Integer.parseInt (this.fontSize.getSelectedItem ().toString ()));\r
-var fm = this.getGraphics ().getFontMetrics (newFont);\r
-var mw = fm.getStringBounds ("M", this.getGraphics ()).getWidth ();\r
-var iw = fm.getStringBounds ("I", this.getGraphics ()).getWidth ();\r
-if (mw < 1 || iw < 1) {\r
-this.fontName.select (this.lastSelected.getName ());\r
-this.fontStyle.select (new Integer (this.lastSelStyle));\r
-this.fontSize.select ("" + this.lastSelSize);\r
-var d =  new jalview.appletgui.JVDialog (this.frame, jalview.util.MessageManager.getString ("label.invalid_font"), true, 350, 200);\r
-var mp =  new awt2swing.Panel ();\r
-d.cancel.setVisible (false);\r
-mp.setLayout ( new java.awt.FlowLayout ());\r
-mp.add ( new awt2swing.Label ("Font doesn't have letters defined\nso cannot be used\nwith alignment data."));\r
-d.setMainPanel (mp);\r
-d.setVisible (true);\r
-return;\r
-}if (this.tp != null) {\r
-this.tp.setTreeFont (newFont);\r
-} else if (this.ap != null) {\r
-this.ap.av.setFont (newFont);\r
-this.ap.fontChanged ();\r
-}this.lastSelected = newFont;\r
-});\r
-Clazz.defineMethod (c$, "fontName_actionPerformed", \r
-function () {\r
-if (this.$init) {\r
-return;\r
-}this.changeFont ();\r
-});\r
-Clazz.defineMethod (c$, "fontSize_actionPerformed", \r
-function () {\r
-if (this.$init) {\r
-return;\r
-}this.changeFont ();\r
-});\r
-Clazz.defineMethod (c$, "fontStyle_actionPerformed", \r
-function () {\r
-if (this.$init) {\r
-return;\r
-}this.changeFont ();\r
-});\r
-Clazz.defineMethod (c$, "jbInit", \r
-($fz = function () {\r
-this.setLayout ( new java.awt.BorderLayout ());\r
-this.setBackground (java.awt.Color.white);\r
-var fontLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.font"));\r
-fontLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-fontLabel.setAlignment (4);\r
-this.fontSize.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.fontSize.addItemListener (this);\r
-this.fontStyle.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.fontStyle.addItemListener (this);\r
-var sizeLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.size"));\r
-sizeLabel.setAlignment (4);\r
-sizeLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-var styleLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.style"));\r
-styleLabel.setAlignment (4);\r
-styleLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.fontName.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.fontName.addItemListener (this);\r
-this.scaleAsCdna.setLabel (jalview.util.MessageManager.getString ("label.scale_as_cdna"));\r
-this.scaleAsCdna.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.scaleAsCdna.addItemListener (this);\r
-this.scaleAsCdna.setState (this.ap.av.isScaleProteinAsCdna ());\r
-this.ok.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.ok.setLabel (jalview.util.MessageManager.getString ("action.ok"));\r
-this.ok.addActionListener (((Clazz.isClassDefined ("jalview.appletgui.FontChooser$1") ? 0 : jalview.appletgui.FontChooser.$FontChooser$1$ ()), Clazz.innerTypeInstance (jalview.appletgui.FontChooser$1, this, null)));\r
-this.cancel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);\r
-this.cancel.setLabel (jalview.util.MessageManager.getString ("action.cancel"));\r
-this.cancel.addActionListener (((Clazz.isClassDefined ("jalview.appletgui.FontChooser$2") ? 0 : jalview.appletgui.FontChooser.$FontChooser$2$ ()), Clazz.innerTypeInstance (jalview.appletgui.FontChooser$2, this, null)));\r
-var fontPanel =  new awt2swing.Panel ();\r
-fontPanel.setLayout ( new java.awt.BorderLayout ());\r
-var stylePanel =  new awt2swing.Panel ();\r
-stylePanel.setLayout ( new java.awt.BorderLayout ());\r
-var sizePanel =  new awt2swing.Panel ();\r
-sizePanel.setLayout ( new java.awt.BorderLayout ());\r
-var scalePanel =  new awt2swing.Panel ();\r
-scalePanel.setLayout ( new java.awt.BorderLayout ());\r
-var okCancelPanel =  new awt2swing.Panel ();\r
-var optionsPanel =  new awt2swing.Panel ();\r
-fontPanel.setBackground (java.awt.Color.white);\r
-stylePanel.setBackground (java.awt.Color.white);\r
-sizePanel.setBackground (java.awt.Color.white);\r
-okCancelPanel.setBackground (java.awt.Color.white);\r
-optionsPanel.setBackground (java.awt.Color.white);\r
-fontPanel.add (fontLabel, "West");\r
-fontPanel.add (this.fontName, "Center");\r
-stylePanel.add (styleLabel, "West");\r
-stylePanel.add (this.fontStyle, "Center");\r
-sizePanel.add (sizeLabel, "West");\r
-sizePanel.add (this.fontSize, "Center");\r
-scalePanel.add (this.scaleAsCdna, "Center");\r
-okCancelPanel.add (this.ok, null);\r
-okCancelPanel.add (this.cancel, null);\r
-optionsPanel.add (fontPanel, null);\r
-optionsPanel.add (sizePanel, null);\r
-optionsPanel.add (stylePanel, null);\r
-this.add (optionsPanel, "North");\r
-if (this.ap.alignFrame.getSplitFrame () != null) {\r
-this.add (scalePanel, "Center");\r
-}this.add (okCancelPanel, "South");\r
-}, $fz.isPrivate = true, $fz));\r
-Clazz.defineMethod (c$, "scaleAsCdna_actionPerformed", \r
-function () {\r
-this.ap.av.setScaleProteinAsCdna (this.scaleAsCdna.getState ());\r
-this.ap.av.getCodingComplement ().setScaleProteinAsCdna (this.scaleAsCdna.getState ());\r
-this.ap.alignFrame.getSplitFrame ().adjustLayout ();\r
-this.ap.paintAlignment (true);\r
-this.ap.alignFrame.getSplitFrame ().repaint ();\r
-});\r
-c$.$FontChooser$1$ = function () {\r
-Clazz.pu$h ();\r
-c$ = Clazz.declareAnonymous (jalview.appletgui, "FontChooser$1", null, java.awt.event.ActionListener);\r
-Clazz.overrideMethod (c$, "actionPerformed", \r
-function (e) {\r
-this.b$["jalview.appletgui.FontChooser"].ok_actionPerformed ();\r
-}, "java.awt.event.ActionEvent");\r
-c$ = Clazz.p0p ();\r
-};\r
-c$.$FontChooser$2$ = function () {\r
-Clazz.pu$h ();\r
-c$ = Clazz.declareAnonymous (jalview.appletgui, "FontChooser$2", null, java.awt.event.ActionListener);\r
-Clazz.overrideMethod (c$, "actionPerformed", \r
-function (e) {\r
-this.b$["jalview.appletgui.FontChooser"].cancel_actionPerformed ();\r
-}, "java.awt.event.ActionEvent");\r
-c$ = Clazz.p0p ();\r
-};\r
-c$.VERDANA_11PT = c$.prototype.VERDANA_11PT =  new java.awt.Font ("Verdana", 0, 11);\r
-});\r
+Clazz.declarePackage ("jalview.appletgui");
+Clazz.load (["awt2swing.Panel", "java.awt.event.ItemListener", "awt2swing.Button", "$.Checkbox", "$.Choice", "java.awt.Font"], "jalview.appletgui.FontChooser", ["awt2swing.Frame", "$.Label", "jalview.appletgui.JVDialog", "jalview.bin.JalviewLite", "jalview.util.MessageManager", "java.awt.BorderLayout", "$.Color", "$.FlowLayout", "$.Toolkit", "java.awt.event.ActionListener"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.fontSize = null;
+this.fontStyle = null;
+this.fontName = null;
+this.scaleAsCdna = null;
+this.ok = null;
+this.cancel = null;
+this.ap = null;
+this.tp = null;
+this.oldFont = null;
+this.oldCharWidth = 0;
+this.oldScaleProtein = false;
+this.lastSelected = null;
+this.lastSelStyle = 0;
+this.lastSelSize = 0;
+this.$init = true;
+this.frame = null;
+Clazz.instantialize (this, arguments);
+}, jalview.appletgui, "FontChooser", awt2swing.Panel, java.awt.event.ItemListener);
+Clazz.prepareFields (c$, function () {
+this.fontSize =  new awt2swing.Choice ();
+this.fontStyle =  new awt2swing.Choice ();
+this.fontName =  new awt2swing.Choice ();
+this.scaleAsCdna =  new awt2swing.Checkbox ();
+this.ok =  new awt2swing.Button ();
+this.cancel =  new awt2swing.Button ();
+});
+Clazz.makeConstructor (c$, 
+function (tp) {
+Clazz.superConstructor (this, jalview.appletgui.FontChooser, []);
+try {
+this.jbInit ();
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+e.printStackTrace ();
+} else {
+throw e;
+}
+}
+this.tp = tp;
+this.oldFont = tp.getTreeFont ();
+this.init ();
+}, "jalview.appletgui.TreePanel");
+Clazz.makeConstructor (c$, 
+function (ap) {
+Clazz.superConstructor (this, jalview.appletgui.FontChooser, []);
+this.ap = ap;
+this.oldFont = ap.av.getFont ();
+this.oldCharWidth = ap.av.getViewStyle ().getCharWidth ();
+this.oldScaleProtein = ap.av.getViewStyle ().isScaleProteinAsCdna ();
+try {
+this.jbInit ();
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+e.printStackTrace ();
+} else {
+throw e;
+}
+}
+this.init ();
+}, "jalview.appletgui.AlignmentPanel");
+Clazz.defineMethod (c$, "init", 
+function () {
+var fonts = java.awt.Toolkit.getDefaultToolkit ().getFontList ();
+for (var i = 0; i < fonts.length; i++) {
+this.fontName.addItem (fonts[i]);
+}
+for (var i = 1; i < 31; i++) {
+this.fontSize.addItem (i + "");
+}
+this.fontStyle.addItem ("plain");
+this.fontStyle.addItem ("bold");
+this.fontStyle.addItem ("italic");
+this.fontName.select (this.oldFont.getName ());
+this.fontSize.select (this.oldFont.getSize () + "");
+this.fontStyle.select (new Integer (this.oldFont.getStyle ()));
+this.frame =  new awt2swing.Frame ();
+this.frame.add (this);
+jalview.bin.JalviewLite.addFrame (this.frame, jalview.util.MessageManager.getString ("action.change_font"), 440, 115);
+this.$init = false;
+});
+Clazz.overrideMethod (c$, "itemStateChanged", 
+function (evt) {
+var source = evt.getSource ();
+if (source === this.fontName) {
+this.fontName_actionPerformed ();
+} else if (source === this.fontSize) {
+this.fontSize_actionPerformed ();
+} else if (source === this.fontStyle) {
+this.fontStyle_actionPerformed ();
+} else if (source === this.scaleAsCdna) {
+this.scaleAsCdna_actionPerformed ();
+}}, "java.awt.event.ItemEvent");
+Clazz.defineMethod (c$, "ok_actionPerformed", 
+function () {
+this.frame.setVisible (false);
+if (this.ap != null) {
+if (this.ap.getOverviewPanel () != null) {
+this.ap.getOverviewPanel ().updateOverviewImage ();
+}}});
+Clazz.defineMethod (c$, "cancel_actionPerformed", 
+function () {
+if (this.ap != null) {
+this.ap.av.setScaleProteinAsCdna (this.oldScaleProtein);
+if (this.ap.av.getCodingComplement () != null) {
+this.ap.av.getCodingComplement ().setScaleProteinAsCdna (this.oldScaleProtein);
+this.ap.alignFrame.getSplitFrame ().repaint ();
+}this.ap.av.setFont (this.oldFont);
+var style = this.ap.av.getViewStyle ();
+if (style.getCharWidth () != this.oldCharWidth) {
+style.setCharWidth (this.oldCharWidth);
+this.ap.av.setViewStyle (style);
+}this.ap.paintAlignment (true);
+} else if (this.tp != null) {
+this.tp.setTreeFont (this.oldFont);
+this.tp.treeCanvas.repaint ();
+}this.fontName.select (this.oldFont.getName ());
+this.fontSize.select (this.oldFont.getSize () + "");
+this.fontStyle.select (new Integer (this.oldFont.getStyle ()));
+this.frame.setVisible (false);
+});
+Clazz.defineMethod (c$, "changeFont", 
+function () {
+if (this.lastSelected == null) {
+this.lastSelected = this.oldFont;
+this.lastSelSize = this.oldFont.getSize ();
+this.lastSelStyle = this.oldFont.getStyle ();
+}var newFont =  new java.awt.Font (this.fontName.getSelectedItem ().toString (), this.fontStyle.getSelectedIndex (), Integer.parseInt (this.fontSize.getSelectedItem ().toString ()));
+var fm = this.getGraphics ().getFontMetrics (newFont);
+var mw = fm.getStringBounds ("M", this.getGraphics ()).getWidth ();
+var iw = fm.getStringBounds ("I", this.getGraphics ()).getWidth ();
+if (mw < 1 || iw < 1) {
+this.fontName.select (this.lastSelected.getName ());
+this.fontStyle.select (new Integer (this.lastSelStyle));
+this.fontSize.select ("" + this.lastSelSize);
+var d =  new jalview.appletgui.JVDialog (this.frame, jalview.util.MessageManager.getString ("label.invalid_font"), true, 350, 200);
+var mp =  new awt2swing.Panel ();
+d.cancel.setVisible (false);
+mp.setLayout ( new java.awt.FlowLayout ());
+mp.add ( new awt2swing.Label ("Font doesn't have letters defined\nso cannot be used\nwith alignment data."));
+d.setMainPanel (mp);
+d.setVisible (true);
+return;
+}if (this.tp != null) {
+this.tp.setTreeFont (newFont);
+} else if (this.ap != null) {
+this.ap.av.setFont (newFont);
+this.ap.fontChanged ();
+}this.lastSelected = newFont;
+});
+Clazz.defineMethod (c$, "fontName_actionPerformed", 
+function () {
+if (this.$init) {
+return;
+}this.changeFont ();
+});
+Clazz.defineMethod (c$, "fontSize_actionPerformed", 
+function () {
+if (this.$init) {
+return;
+}this.changeFont ();
+});
+Clazz.defineMethod (c$, "fontStyle_actionPerformed", 
+function () {
+if (this.$init) {
+return;
+}this.changeFont ();
+});
+Clazz.defineMethod (c$, "jbInit", 
+($fz = function () {
+this.setLayout ( new java.awt.BorderLayout ());
+this.setBackground (java.awt.Color.white);
+var fontLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.font"));
+fontLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+fontLabel.setAlignment (4);
+this.fontSize.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.fontSize.addItemListener (this);
+this.fontStyle.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.fontStyle.addItemListener (this);
+var sizeLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.size"));
+sizeLabel.setAlignment (4);
+sizeLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+var styleLabel =  new awt2swing.Label (jalview.util.MessageManager.getString ("label.style"));
+styleLabel.setAlignment (4);
+styleLabel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.fontName.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.fontName.addItemListener (this);
+this.scaleAsCdna.setLabel (jalview.util.MessageManager.getString ("label.scale_as_cdna"));
+this.scaleAsCdna.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.scaleAsCdna.addItemListener (this);
+this.scaleAsCdna.setState (this.ap.av.isScaleProteinAsCdna ());
+this.ok.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.ok.setLabel (jalview.util.MessageManager.getString ("action.ok"));
+this.ok.addActionListener (((Clazz.isClassDefined ("jalview.appletgui.FontChooser$1") ? 0 : jalview.appletgui.FontChooser.$FontChooser$1$ ()), Clazz.innerTypeInstance (jalview.appletgui.FontChooser$1, this, null)));
+this.cancel.setFont (jalview.appletgui.FontChooser.VERDANA_11PT);
+this.cancel.setLabel (jalview.util.MessageManager.getString ("action.cancel"));
+this.cancel.addActionListener (((Clazz.isClassDefined ("jalview.appletgui.FontChooser$2") ? 0 : jalview.appletgui.FontChooser.$FontChooser$2$ ()), Clazz.innerTypeInstance (jalview.appletgui.FontChooser$2, this, null)));
+var fontPanel =  new awt2swing.Panel ();
+fontPanel.setLayout ( new java.awt.BorderLayout ());
+var stylePanel =  new awt2swing.Panel ();
+stylePanel.setLayout ( new java.awt.BorderLayout ());
+var sizePanel =  new awt2swing.Panel ();
+sizePanel.setLayout ( new java.awt.BorderLayout ());
+var scalePanel =  new awt2swing.Panel ();
+scalePanel.setLayout ( new java.awt.BorderLayout ());
+var okCancelPanel =  new awt2swing.Panel ();
+var optionsPanel =  new awt2swing.Panel ();
+fontPanel.setBackground (java.awt.Color.white);
+stylePanel.setBackground (java.awt.Color.white);
+sizePanel.setBackground (java.awt.Color.white);
+okCancelPanel.setBackground (java.awt.Color.white);
+optionsPanel.setBackground (java.awt.Color.white);
+fontPanel.add (fontLabel, "West");
+fontPanel.add (this.fontName, "Center");
+stylePanel.add (styleLabel, "West");
+stylePanel.add (this.fontStyle, "Center");
+sizePanel.add (sizeLabel, "West");
+sizePanel.add (this.fontSize, "Center");
+scalePanel.add (this.scaleAsCdna, "Center");
+okCancelPanel.add (this.ok, null);
+okCancelPanel.add (this.cancel, null);
+optionsPanel.add (fontPanel, null);
+optionsPanel.add (sizePanel, null);
+optionsPanel.add (stylePanel, null);
+this.add (optionsPanel, "North");
+if (this.ap.alignFrame.getSplitFrame () != null) {
+this.add (scalePanel, "Center");
+}this.add (okCancelPanel, "South");
+}, $fz.isPrivate = true, $fz));
+Clazz.defineMethod (c$, "scaleAsCdna_actionPerformed", 
+function () {
+this.ap.av.setScaleProteinAsCdna (this.scaleAsCdna.getState ());
+this.ap.av.getCodingComplement ().setScaleProteinAsCdna (this.scaleAsCdna.getState ());
+this.ap.alignFrame.getSplitFrame ().adjustLayout ();
+this.ap.paintAlignment (true);
+this.ap.alignFrame.getSplitFrame ().repaint ();
+});
+c$.$FontChooser$1$ = function () {
+Clazz.pu$h ();
+c$ = Clazz.declareAnonymous (jalview.appletgui, "FontChooser$1", null, java.awt.event.ActionListener);
+Clazz.overrideMethod (c$, "actionPerformed", 
+function (e) {
+this.b$["jalview.appletgui.FontChooser"].ok_actionPerformed ();
+}, "java.awt.event.ActionEvent");
+c$ = Clazz.p0p ();
+};
+c$.$FontChooser$2$ = function () {
+Clazz.pu$h ();
+c$ = Clazz.declareAnonymous (jalview.appletgui, "FontChooser$2", null, java.awt.event.ActionListener);
+Clazz.overrideMethod (c$, "actionPerformed", 
+function (e) {
+this.b$["jalview.appletgui.FontChooser"].cancel_actionPerformed ();
+}, "java.awt.event.ActionEvent");
+c$ = Clazz.p0p ();
+};
+c$.VERDANA_11PT = c$.prototype.VERDANA_11PT =  new java.awt.Font ("Verdana", 0, 11);
+});