Changeset 7542


Ignore:
Timestamp:
2004-06-03T10:41:23+12:00 (20 years ago)
Author:
mdewsnip
Message:

Removed gory red colours set when the title or description aren't filled out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r7341 r7542  
    341341        if(title_final.length() == 0) {
    342342        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    343         title.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    344         title.setBackground(Gatherer.config.getColor("coloring.error_background", false));
    345343        return;
    346344        }
     
    349347        if(titleClashes(title_final, null)) {
    350348            if(JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.OK_CANCEL_OPTION) == JOptionPane.NO_OPTION) {
    351             title.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    352             title.setBackground(Gatherer.config.getColor("coloring.error_background", false));
    353349            return;
    354350            }
     
    359355        if(description_final.length() == 0) {
    360356        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Description_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    361         description.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    362         description.setBackground(Gatherer.config.getColor("coloring.error_background", false));
    363357        return;
    364358        }
Note: See TracChangeset for help on using the changeset viewer.