{
e.printStackTrace();
}
- toolTipText = (toolTipText == null ? null : JvSwingUtils.wrapTooltip(
- true, toolTipText));
+ toolTipText = (toolTipText == null ? null
+ : (toolTipText.length() > 500 ? JvSwingUtils.wrapTooltip(
+ true, toolTipText.subSequence(0, 500)
+ + "...")
+ : JvSwingUtils.wrapTooltip(true,
+ toolTipText)));
+
return toolTipText;
}
};
protected ImageIcon warningImage = new ImageIcon(getClass().getResource(
"/images/warning.gif"));
+ protected ImageIcon loadingImage = new ImageIcon(getClass().getResource(
+ "/images/loading.gif"));
protected JLabel lbl_warning = new JLabel(warningImage);
+ protected JLabel lbl_loading = new JLabel(loadingImage);
+
private JTabbedPane tabbedPane = new JTabbedPane();
private PDBDocFieldPreferences pdbDocFieldPrefs = new PDBDocFieldPreferences(
{
lbl_warning.setVisible(false);
lbl_warning.setFont(new java.awt.Font("Verdana", 0, 12));
+ lbl_loading.setVisible(false);
+ lbl_loading.setFont(new java.awt.Font("Verdana", 0, 12));
tbl_summary.setAutoCreateRowSorter(true);
tbl_summary.getTableHeader().setReorderingAllowed(false);
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();
pnl_results.add(tabbedPane);
pnl_inputs.add(cmb_searchTarget);
pnl_inputs.add(txt_search);
+ pnl_inputs.add(lbl_loading);
pnl_inputs.add(lbl_warning);
this.setLayout(mainLayout);