Ignore:
Timestamp:
2013-05-13T20:40:53+02:00 (11 years ago)
Author:
akks
Message:

[josm_geochat] copypaste from keyboard, font size advanced parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java

    r29584 r29588  
    1010import javax.swing.event.ChangeListener;
    1111import javax.swing.text.*;
     12import org.openstreetmap.josm.Main;
    1213import static org.openstreetmap.josm.tools.I18n.tr;
    1314
     
    134135        chatPane.setEditable(false);
    135136        Font font = chatPane.getFont();
    136         float size = -1.0f; // Main.pref.getInteger("geochat.fontsize", -1); <- we don't need this
    137         if( size < 8 )
    138             size += font.getSize2D();
    139         chatPane.setFont(font.deriveFont(size));
     137        float sizeParameter = Main.pref.getInteger("geochat.panel.fontsize", -1);
     138        float size = sizeParameter;
     139        if ( sizeParameter <= 0 ) size += font.getSize2D();
     140        chatPane.setFont(font.deriveFont( size ));
     141
    140142//        DefaultCaret caret = (DefaultCaret)chatPane.getCaret(); // does not work
    141143//        caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
Note: See TracChangeset for help on using the changeset viewer.