JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent
.getSource();
int index = sourceTabbedPane.getSelectedIndex();
- btn_ok.setEnabled(false);
if (sourceTabbedPane.getTitleAt(index).equals(configureCols))
{
+ btn_back.setEnabled(false);
+ btn_cancel.setEnabled(false);
+ btn_ok.setEnabled(false);
previousWantedFields = PDBDocFieldPreferences
.getSearchSummaryFields().toArray(new PDBDocField[0]);
}
if (sourceTabbedPane.getTitleAt(index).equals(searchTabTitle))
{
+ btn_back.setEnabled(true);
+ btn_cancel.setEnabled(true);
if (wantedFieldsUpdated())
{
txt_search_ActionPerformed();
{
JTabbedPane sourceTabbedPane = (JTabbedPane) changeEvent
.getSource();
- btn_view.setEnabled(false);
int index = sourceTabbedPane.getSelectedIndex();
if (sourceTabbedPane.getTitleAt(index)
.equals(configureCols))
{
+ btn_view.setEnabled(false);
+ btn_cancel.setEnabled(false);
previousWantedFields = PDBDocFieldPreferences
.getStructureSummaryFields().toArray(
new PDBRestClient.PDBDocField[0]);
if (sourceTabbedPane.getTitleAt(index)
.equals(foundStructureSummary))
{
+ btn_cancel.setEnabled(true);
if (wantedFieldsUpdated())
{
tabRefresh();