mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-03 04:44:29 +00:00
FontPanel scrollRectToVisible fix
This commit is contained in:
@@ -223,7 +223,11 @@ public class FontPanel extends JPanel {
|
||||
fontLeadingLabel.setText(ft.getLeading() == -1 ? translate("value.unknown") : Integer.toString(ft.getLeading()));
|
||||
String chars = ft.getCharacters();
|
||||
fontCharactersTextArea.setText(chars);
|
||||
fontCharactersScrollPane.getVerticalScrollBar().scrollRectToVisible(new Rectangle(0, 0, 1, 1));
|
||||
try {
|
||||
fontCharactersScrollPane.getVerticalScrollBar().scrollRectToVisible(new Rectangle(0, 0, 1, 1));
|
||||
} catch (Exception ex) {
|
||||
//ignore
|
||||
}
|
||||
setAllowSave(false);
|
||||
|
||||
Font selFont = ft.getSystemFont();
|
||||
|
||||
Reference in New Issue
Block a user