*/
void init()
{
- setFrameIcon(WindowIcons.alignmentIcon);
+ setFrameIcon(null);
// setBackground(Color.white); // BH 2019
.formatMessage("label.overview_params", new Object[]
{ this.getTitle() }), true, frame.getWidth(), frame.getHeight(),
true, true);
- frame.setFrameIcon(WindowIcons.overviewIcon);
+ frame.setFrameIcon(null);
frame.pack();
frame.setLayer(JLayeredPane.PALETTE_LAYER);
frame.addInternalFrameListener(
private void showFrame()
{
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.annotationIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Desktop.addInternalFrame(frame,
}
}
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.annotationIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Desktop.addInternalFrame(frame,
{
super(av, ap);
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.annotationIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Desktop.addInternalFrame(frame,
}
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.annotationIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
Dimension preferredSize = frame.getPreferredSize();
{
setLayout(new BorderLayout());
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.treeIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
this.setBackground(Color.white);
frame.addFocusListener(new FocusListener()
public CutAndPasteHtmlTransfer()
{
super();
- this.setFrameIcon(WindowIcons.logoIcon);
+ this.setFrameIcon(null);
displaySource.setSelected(false);
textarea.addKeyListener(new KeyListener()
{
{
frame = new JInternalFrame();
frame.setContentPane(this);
- frame.setFrameIcon(WindowIcons.featuresIcon);
+ frame.setFrameIcon(null);
Rectangle bounds = af.getFeatureSettingsGeometry();
String title;
if (af.getAlignPanels().size() > 1 || Desktop.getAlignmentPanels(
focusFixed = fixedFocus;
finders = new HashMap<>();
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.logoIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
frame.addInternalFrameListener(new InternalFrameAdapter()
void init()
{
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.logoIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
smoothFont.setSelected(ap.av.antiAlias);
public JvOptionPane(final Component parent)
{
this.parentComponent = Platform.isJS() ? this : parent;
- this.setIcon(WindowIcons.logoIcon);
+ this.setIcon(null);
}
public static int showConfirmDialog(Component parentComponent,
Platform.isJS() ? initialValue : initialValue_btn);
JDialog dialog = joptionpane.createDialog(parentComponent, title);
- dialog.setIconImage(WindowIcons.logoIcon.getImage());
+ dialog.setIconImage(null);
dialog.setModalityType(modal ? ModalityType.APPLICATION_MODAL
: ModalityType.MODELESS);
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
if (parentComponent != this)
{
JInternalFrame jif = this.createInternalFrame(parentComponent, title);
- jif.setFrameIcon(WindowIcons.logoIcon);
+ jif.setFrameIcon(null);
jif.addInternalFrameListener(new InternalFrameListener()
{
@Override
else
{
JDialog dialog = this.createDialog(parentComponent, title);
- dialog.setIconImage(WindowIcons.logoIcon.getImage());
+ dialog.setIconImage(null);
dialog.setVisible(true); // blocking
this.internalDialogHandleResponse();
return;
SimilarityParamsI params)
{
super();
- this.setFrameIcon(WindowIcons.treeIcon);
+ this.setFrameIcon(null);
this.av = alignPanel.av;
this.ap = alignPanel;
boolean nucleotide = av.getAlignment().isNucleotide();
{
super();
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.preferencesIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
if (!Platform.isJS())
/**
worker.start();
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.logoIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame,
MessageManager
frame = new JInternalFrame();
frame.setContentPane(this);
- frame.setFrameIcon(WindowIcons.fetchIcon);
+ frame.setFrameIcon(null);
Desktop.addInternalFrame(frame, getFrameTitle(), true, 400,
Platform.isAMacAndNotJS() ? 240 : 180);
}
{
sliderPanel = new SliderPanel(ap, rs.getConservationInc(), true, rs);
conservationSlider = new JInternalFrame();
- conservationSlider.setFrameIcon(WindowIcons.logoIcon);
+ conservationSlider.setFrameIcon(null);
conservationSlider.setContentPane(sliderPanel);
conservationSlider.setLayer(JLayeredPane.PALETTE_LAYER);
}
{
sliderPanel = new SliderPanel(ap, threshold, false, rs);
PIDSlider = new JInternalFrame();
- PIDSlider.setFrameIcon(WindowIcons.logoIcon);
+ PIDSlider.setFrameIcon(null);
PIDSlider.setContentPane(sliderPanel);
PIDSlider.setLayer(JLayeredPane.PALETTE_LAYER);
}
*/
protected void init()
{
- setFrameIcon(WindowIcons.splitIcon);
+ setFrameIcon(null);
getTopFrame().setSplitFrame(this);
getBottomFrame().setSplitFrame(this);
getTopFrame().setVisible(true);
public StructureViewerBase()
{
super();
- setFrameIcon(WindowIcons.structureIcon);
+ setFrameIcon(null);
}
/**
SimilarityParamsI options)
{
super();
- this.setFrameIcon(WindowIcons.treeIcon);
+ this.setFrameIcon(null);
this.similarityParams = options;
initTreePanel(ap, type, modelName, null, null);
{
colorChooser.getSelectionModel().addChangeListener(this);
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.logoIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame,
MessageManager.getString("label.user_defined_colours"),
boolean makeVisible)
{
frame = new JInternalFrame();
- frame.setFrameIcon(WindowIcons.logoIcon);
+ frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame, title, makeVisible, width, height);
frame.setClosable(false);
true, false);
((JEditorPane) ((JScrollPane) jobPanes.get(which)).getViewport()
.getComponent(0))
- .setText(ensureHtmlTagged(
- txt + getHtmlFragment(text, false, true)));
+ .setText(ensureHtmlTagged(
+ txt + getHtmlFragment(text, false, true)));
}
else
{
+++ /dev/null
-package jalview.gui;
-
-import javax.swing.ImageIcon;
-
-import jalview.util.ChannelProperties;
-
-public class WindowIcons
-{
- public static final ImageIcon logoIcon = new ImageIcon(
- ChannelProperties.getImage("logo.16"));
-
- protected static final ImageIcon plainIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/plainIcon.png"));
-
- protected static final ImageIcon alignmentIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/alignmentIcon.png"));
-
- protected static final ImageIcon featuresIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/featuresIcon.png"));
-
- protected static final ImageIcon fetchIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/fetchIcon.png"));
-
- protected static final ImageIcon annotationIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/annotationIcon.png"));
-
- protected static final ImageIcon overviewIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/overviewIcon.png"));
-
- protected static final ImageIcon treeIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/treeIcon.png"));
-
- protected static final ImageIcon structureIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/structureIcon.png"));
-
- protected static final ImageIcon splitIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/splitIcon.png"));
-
- protected static final ImageIcon preferencesIcon = new ImageIcon(
- WindowIcons.class
- .getResource("/images/windowIcons/preferencesIcon.png"));
-}
import jalview.bin.Cache;
import jalview.gui.JvOptionPane;
-import jalview.gui.WindowIcons;
import jalview.util.MessageManager;
import jalview.util.Platform;
import jalview.util.dialogrunner.DialogRunnerI;
protected JDialog createDialog(Component parent) throws HeadlessException
{
JDialog dialog = super.createDialog(parent);
- dialog.setIconImage(WindowIcons.logoIcon.getImage());
+ dialog.setIconImage(null);
return dialog;
}