X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FFontChooser.java;h=232737aa86271d9c34b784805a0e64f3a2b8f635;hb=b6366fd2ac865514d2ceacb63432dac532147a85;hp=9c9eedda9b20f58542f574acd983a7ad5f5cd7e4;hpb=eee996a6476a1e3d84c07f8f690dcde3ff4b2ef5;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/FontChooser.java b/forester/java/src/org/forester/archaeopteryx/FontChooser.java index 9c9eedd..232737a 100644 --- a/forester/java/src/org/forester/archaeopteryx/FontChooser.java +++ b/forester/java/src/org/forester/archaeopteryx/FontChooser.java @@ -9,7 +9,7 @@ // by: James Bardsley (torasin@torasin.com) // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.archaeopteryx; @@ -49,9 +49,9 @@ public class FontChooser extends JDialog implements ActionListener, ListSelectio private String _type; private int _style; private int _size; - private final JList _font_list = new JList( Util.getAvailableFontFamiliesSorted() ); - private final JList _style_list = new JList( STYLE ); - private final JList _size_list = new JList( SIZE ); + private final JList _font_list = new JList( AptxUtil.getAvailableFontFamiliesSorted() ); + private final JList _style_list = new JList( STYLE ); + private final JList _size_list = new JList( SIZE ); private final JTextField _fonts_tf = new JTextField(); private final JTextField _style_tf = new JTextField(); private final JTextField _size_tf = new JTextField(); @@ -224,7 +224,7 @@ public class FontChooser extends JDialog implements ActionListener, ListSelectio _font = font; } - private void setScrollPos( final JScrollPane sp, final JList list, final int index ) { + private void setScrollPos( final JScrollPane sp, final JList list, final int index ) { final int unit_size = sp.getVerticalScrollBar().getMaximum() / list.getModel().getSize(); sp.getVerticalScrollBar().setValue( ( index - 2 ) * unit_size ); }