{
showInternalFrame = true;
featureSettingsPanels = new JTabbedPane();
- featureSettingsUI = new JInternalFrame(
- "Feature Settings for CDS and Protein Views");
+ featureSettingsUI = new JInternalFrame(MessageManager.getString(
+ "label.sequence_feature_settings_for_CDS_and_Protein"));
featureSettingsPanels.setOpaque(true);
featureSettingsUI.setContentPane(featureSettingsPanels);
createDummyTabs();
if (pos == 0)
{
featureSettingsPanels.removeTabAt(0);
- featureSettingsPanels.insertTab("CDS", null,
- (Component) featureSettings, "Feature Settings for DNA CDS",
+ featureSettingsPanels.insertTab(tabName[0], null,
+ (Component) featureSettings,
+ MessageManager.formatMessage(
+ "label.sequence_feature_settings_for", tabName[0]),
0);
}
if (pos == 1)
{
featureSettingsPanels.removeTabAt(1);
- featureSettingsPanels.insertTab("Protein", null,
- (Component) featureSettings, "Feature Settings for Protein",
+ featureSettingsPanels.insertTab(tabName[1], null,
+ (Component) featureSettings,
+ MessageManager.formatMessage(
+ "label.sequence_feature_settings_for", tabName[1]),
1);
}
featureSettingsPanels.setSelectedComponent((Component) featureSettings);
{
Desktop.addInternalFrame(featureSettingsUI,
MessageManager.getString(
- "Feature Settings for CDS and Protein Views"),
+ "label.sequence_feature_settings_for_CDS_and_Protein"),
600, 480);
}
else
{
Desktop.addInternalFrame(featureSettingsUI,
MessageManager.getString(
- "Feature Settings for CDS and Protein Views"),
+ "label.sequence_feature_settings_for_CDS_and_Protein"),
600, 450);
}
featureSettingsUI
*/
private String[] tabName = new String[] {
MessageManager.getString("label.CDS"),
- MessageManager.getString("label.Protein") };
+ MessageManager.getString("label.protein") };
/**
* create placeholder tabs which materialise the feature settings for a given