import jalview.jbgui.GStructureViewer;
import jalview.schemes.ColourSchemeI;
import jalview.schemes.ColourSchemes;
-import jalview.schemes.FeatureColour;
import jalview.structure.StructureMapping;
import jalview.structures.models.AAStructureBindingModel;
import jalview.util.MessageManager;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JColorChooser;
-import javax.swing.JDialog;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JRadioButtonMenuItem;
return reply;
}
+ /**
+ * Opens a colour chooser dialog, and applies the chosen colour to the
+ * background of the structure viewer
+ */
@Override
public void background_actionPerformed(ActionEvent actionEvent)
{
- String ttl = MessageManager
- .getString("label.select_background_colour");
+ String ttl = MessageManager.getString("label.select_background_colour");
ColourChooserListener listener = new ColourChooserListener()
{
@Override
getBinding().setBackgroundColour(c);
}
};
+ JalviewColourChooser.showColourChooser(this, ttl, null, listener);
}
@Override