Fix fonts in java GUIs #192

I fixed a hard coded size=12 font in the sim control panel.
This commit is contained in:
Alex Lin 2017-03-13 11:10:24 -05:00
parent a1bc45548b
commit c5fbaeb7d6

View File

@ -1173,11 +1173,11 @@ public class SimControlApplication extends TrickApplication implements PropertyC
statusMsgPane.setEditorKit(new StyledEditorKit());
statusMsgPane.putClientProperty(JXEditorPane.HONOR_DISPLAY_PROPERTIES, true);
statusMsgPane.setBackground(Color.black);
//statusMsgPane.setContentType("text/html");
Font font = new Font("Monospaced", Font.PLAIN, 12);
int curr_font_size = statusMsgPane.getFont().getSize() ;
Font font = new Font("Monospaced", Font.PLAIN, curr_font_size);
statusMsgPane.setFont(font);
JPanel statusMsgPanel = UIUtils.createSearchableTitledPanel("Status Messages", statusMsgPane, new FindBar(statusMsgPane.getSearchable()));
return statusMsgPanel;
}