GT-2698 - fix HTML for dropdown text field's preview window

This commit is contained in:
dev747368
2019-04-24 12:54:53 -04:00
parent c7ce28e94c
commit eeea912c4d

View File

@@ -26,7 +26,7 @@ import javax.swing.event.*;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import docking.widgets.label.GDLabel; import docking.widgets.label.GDHtmlLabel;
import generic.util.WindowUtilities; import generic.util.WindowUtilities;
import ghidra.util.StringUtilities; import ghidra.util.StringUtilities;
import ghidra.util.SystemUtilities; import ghidra.util.SystemUtilities;
@@ -156,7 +156,7 @@ public class DropDownTextField<T> extends JTextField {
} }
protected void setPreviewPaneAttributes() { protected void setPreviewPaneAttributes() {
previewLabel = new GDLabel(); previewLabel = new GDHtmlLabel();
previewLabel.setOpaque(true); previewLabel.setOpaque(true);
previewLabel.setBackground(TOOLTIP_WINDOW_BGCOLOR); previewLabel.setBackground(TOOLTIP_WINDOW_BGCOLOR);
previewLabel.setVerticalAlignment(SwingConstants.TOP); previewLabel.setVerticalAlignment(SwingConstants.TOP);