mirror of
https://github.com/nasa/trick.git
synced 2024-12-30 09:58:53 +00:00
Fix fonts in java GUIs #192
I fixed a hard coded size=12 font in the sim control panel.
This commit is contained in:
parent
a1bc45548b
commit
c5fbaeb7d6
@ -1173,9 +1173,9 @@ public class SimControlApplication extends TrickApplication implements PropertyC
|
|||||||
statusMsgPane.setEditorKit(new StyledEditorKit());
|
statusMsgPane.setEditorKit(new StyledEditorKit());
|
||||||
statusMsgPane.putClientProperty(JXEditorPane.HONOR_DISPLAY_PROPERTIES, true);
|
statusMsgPane.putClientProperty(JXEditorPane.HONOR_DISPLAY_PROPERTIES, true);
|
||||||
statusMsgPane.setBackground(Color.black);
|
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);
|
statusMsgPane.setFont(font);
|
||||||
|
|
||||||
JPanel statusMsgPanel = UIUtils.createSearchableTitledPanel("Status Messages", statusMsgPane, new FindBar(statusMsgPane.getSearchable()));
|
JPanel statusMsgPanel = UIUtils.createSearchableTitledPanel("Status Messages", statusMsgPane, new FindBar(statusMsgPane.getSearchable()));
|
||||||
|
Loading…
Reference in New Issue
Block a user