Cache.applicationProperties.setProperty("SORT_ALIGNMENT", sortby
.getSelectedItem().toString());
- Cache.applicationProperties.setProperty("ANNOTATIONCOLOUR_MIN", minColour.getBackground().toString());
- Cache.applicationProperties.setProperty("ANNOTATIONCOLOUR_MAX", maxColour.getBackground().toString());
+ Cache.setColourProperty("ANNOTATIONCOLOUR_MIN", minColour.getBackground());
+ Cache.setColourProperty("ANNOTATIONCOLOUR_MAX", maxColour.getBackground());
if (epsRendering.getSelectedItem().equals("Prompt each time"))
{
public void addtoLayout(JPanel panel, String tooltip, JComponent label, JComponent valBox)
{
JPanel laypanel = new JPanel(),labPanel=new JPanel(), valPanel=new JPanel();
- laypanel.setSize(panel.getWidth(),33);
+ // laypanel.setSize(panel.getPreferredSize());
+ // laypanel.setLayout(null);
labPanel.setBounds(new Rectangle(7, 7, 158, 23));
valPanel.setBounds(new Rectangle(172, 7, 270,23));
- labPanel.setLayout(new GridLayout());
- valPanel.setLayout(new GridLayout());
+ //labPanel.setLayout(new GridLayout(1,1));
+ //valPanel.setLayout(new GridLayout(1,1));
labPanel.add(label);
valPanel.add(valBox);
laypanel.add(labPanel);
laypanel.add(valPanel);
- panel.add(laypanel);
valPanel.setToolTipText(tooltip);
labPanel.setToolTipText(tooltip);
+ valBox.setToolTipText(tooltip);
+ panel.add(laypanel);
+ panel.validate();
+
}
/**
* Creates a new GPreferences object.
visualTab.add(tooltipSettings);
visualTab.add(jPanel2);
addtoLayout(visual2Tab, "Default Colourscheme for alignment", colourLabel, colour);
- addtoLayout(visual2Tab, "Default Minimum Colour for annotation shading", mincolourLabel,minColour);
- addtoLayout(visual2Tab,"Default Maximum Colour for annotation shading", maxcolourLabel, maxColour);
+ JPanel annotationShding=new JPanel();
+ annotationShding.setBorder(new TitledBorder("Annotation Shading Default"));
+ annotationShding.setLayout(new GridLayout(1,2));
+ addtoLayout(annotationShding, "Default Minimum Colour for annotation shading", mincolourLabel,minColour);
+ addtoLayout(annotationShding,"Default Maximum Colour for annotation shading", maxcolourLabel, maxColour);
+ visual2Tab.add(annotationShding); // , FlowLayout.LEFT);
// visual2panel.add(minColour);
// visual2panel.add(maxColour);