Fixed: #1622 Slow scrolling (search results, advanced settings and others)

This commit is contained in:
Jindra Petřík
2021-03-05 21:22:55 +01:00
parent a597625239
commit b08567de7a
31 changed files with 116 additions and 56 deletions
@@ -22,6 +22,7 @@ import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.ASM3Parser;
import com.jpexs.decompiler.flash.abc.types.traits.TraitSlotConst;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.AppStrings;
import com.jpexs.decompiler.flash.gui.FasterScrollPane;
import com.jpexs.decompiler.flash.gui.View;
import com.jpexs.decompiler.flash.gui.editor.LineMarkedEditorPane;
import com.jpexs.decompiler.flash.helpers.HighlightedTextWriter;
@@ -60,7 +61,7 @@ public class SlotConstTraitDetailPanel extends JPanel implements TraitDetail {
public SlotConstTraitDetailPanel(final DecompiledEditorPane editor) {
slotConstEditor = new LineMarkedEditorPane();
setLayout(new BorderLayout());
add(new JScrollPane(slotConstEditor), BorderLayout.CENTER);
add(new FasterScrollPane(slotConstEditor), BorderLayout.CENTER);
slotConstEditor.setFont(Configuration.getSourceFont());
slotConstEditor.changeContentType("text/flasm3");
slotConstEditor.addCaretListener(new CaretListener() {