image performance improvements

This commit is contained in:
2014-12-14 01:21:51 +01:00
parent e2ba5aaf8d
commit 9eeb25b088
30 changed files with 226 additions and 238 deletions
@@ -37,7 +37,6 @@ import com.jpexs.decompiler.flash.types.annotations.SWFArray;
import com.jpexs.decompiler.flash.types.annotations.SWFType;
import com.jpexs.decompiler.flash.types.annotations.parser.AnnotationParseException;
import com.jpexs.decompiler.flash.types.annotations.parser.ConditionEvaluator;
import com.jpexs.helpers.ByteArrayRange;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
@@ -52,7 +52,7 @@ public class QuickFindPanel extends JPanel implements ActionListener {
public JCheckBox ignoreCaseCheckbox, regExpCheckbox, wrapCheckbox;
public JLabel statusLabel;
private final Markers.SimpleMarker marker = new Markers.SimpleMarker(Color.PINK);
private final Markers.SimpleMarker marker = new Markers.SimpleMarker(Color.pink);
private WeakReference<JTextComponent> target;
private WeakReference<DocumentSearchData> dsd;
private int oldCaretPosition;
@@ -86,7 +86,7 @@ public class QuickFindPanel extends JPanel implements ActionListener {
pan1.add(jLabel1);
findTextField.setColumns(30);
findTextField.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
findTextField.setBorder(javax.swing.BorderFactory.createLineBorder(Color.black));
findTextField.setMaximumSize(new java.awt.Dimension(200, 24));
findTextField.setMinimumSize(new java.awt.Dimension(60, 24));
pan1.add(findTextField);
@@ -135,7 +135,7 @@ public class QuickFindPanel extends JPanel implements ActionListener {
wrapCheckbox.addActionListener(this);
statusLabel.setFont(statusLabel.getFont().deriveFont(statusLabel.getFont().getStyle() | java.awt.Font.BOLD, statusLabel.getFont().getSize() - 2));
statusLabel.setForeground(java.awt.Color.red);
statusLabel.setForeground(Color.red);
pan2.add(statusLabel);
add(pan1);
+2 -2
View File
@@ -147,8 +147,8 @@ public class View {
UIManager.put("RibbonApplicationMenuPopupPanelUI", MyRibbonApplicationMenuPopupPanelUI.class.getName());
UIManager.put("RibbonApplicationMenuButtonUI", MyRibbonApplicationMenuButtonUI.class.getName());
UIManager.put("ProgressBarUI", MyProgressBarUI.class.getName());
UIManager.put("TextField.background", Color.WHITE);
UIManager.put("FormattedTextField.background", Color.WHITE);
UIManager.put("TextField.background", Color.white);
UIManager.put("FormattedTextField.background", Color.white);
UIManager.put("CommandButtonUI", MyCommandButtonUI.class.getName());
FontPolicy pol = SubstanceLookAndFeel.getFontPolicy();