Changeset 614
- Timestamp:
- 01/31/10 18:10:55 (3 years ago)
- Location:
- trunk/src
- Files:
-
- 3 modified
-
jlatexeditor/gproperties/GProperties.java (modified) (1 diff)
-
jlatexeditor/JLatexEditorJFrame.java (modified) (1 diff)
-
sce/component/SCEFontWindow.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/jlatexeditor/gproperties/GProperties.java
r613 r614 145 145 public static void setEditorFont(Font editorFont) { 146 146 GProperties.editorFont = editorFont; 147 properties.setProperty(EDITOR_FONT_NAME, editorFont.getF ontName());147 properties.setProperty(EDITOR_FONT_NAME, editorFont.getFamily()); 148 148 properties.setProperty(EDITOR_FONT_SIZE, "" + editorFont.getSize()); 149 149 save(); -
trunk/src/jlatexeditor/JLatexEditorJFrame.java
r612 r614 813 813 */ 814 814 if(action.equals("font")){ 815 SCEFontWindow fontDialog = new SCEFontWindow(GProperties.getEditorFont().getF ontName(), GProperties.getEditorFont().getSize(), this);815 SCEFontWindow fontDialog = new SCEFontWindow(GProperties.getEditorFont().getFamily(), GProperties.getEditorFont().getSize(), this); 816 816 fontDialog.setVisible(true); 817 817 } else -
trunk/src/sce/component/SCEFontWindow.java
r610 r614 21 21 private int fontSize; 22 22 private int prevFontSize; 23 private boolean init = true; 23 24 24 25 private ActionListener actionListener; … … 123 124 pack(); 124 125 setVisible(true); 126 127 // select the current font and size 128 int nr = 0; 129 fontList.setSelectedValue(fontName, true); 130 /* 131 for (String aFontName : GProperties.getMonospaceFonts()) { 132 if (((String) aFontName).equals(fontName)) { 133 fontList.setSelectedIndex(nr); 134 System.out.println(nr); 135 } 136 nr++; 137 } 138 */ 139 sizeList.setSelectedIndex(GProperties.getEditorFont().getSize() - 6); 140 141 init = false; 125 142 } 126 143 127 144 public void valueChanged(ListSelectionEvent e) { 145 if (init) return; 146 128 147 if(e.getSource() == fontList.getSelectionModel()) { 129 148 fontName = fontList.getSelectedValue().toString();
![(please configure the [header_logo] section in trac.ini)](http://jlatexeditor.endrullis.de/chrome/site/logo.png)