Changeset 15505 for gli


Ignore:
Timestamp:
2008-05-15T16:30:15+12:00 (16 years ago)
Author:
ak19
Message:

Login error message has a yellow background

File:
1 edited

Legend:

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

    r15374 r15505  
    6969public class FedoraLogin extends JDialog
    7070{
    71 
     71    private static final java.awt.Color LIGHT = new java.awt.Color(244, 244, 224);
     72    private static final java.awt.Color TRANSPARENT = new java.awt.Color(0,0,0,0);
    7273    private JPanel m_infoPane;
    7374    private JComboBox m_serverComboBox;
     
    166167        contentPane.setLayout(new BorderLayout());
    167168    m_infoPane = new JPanel();
     169    m_infoPane.setBackground(TRANSPARENT);
    168170    contentPane.add(m_infoPane, BorderLayout.NORTH);
    169171        contentPane.add(inputPane, BorderLayout.CENTER);
     
    323325    }
    324326
     327    /** Displays the given errormessage (which is split over several lines)
     328    * in the FedoraLogin itself
     329    * @param errorLines: the lines of the error message, where each line
     330    * will be presented in its own JLabel in the infoPane.
     331     */
    325332    public void setErrorMessage(String[] errorLines) {
    326333    m_infoPane.removeAll();
     334    m_infoPane.setBackground(LIGHT);
    327335    // n rows and 1 column
    328336    m_infoPane.setLayout(new java.awt.GridLayout(errorLines.length, 1));
     
    370378
    371379    }
    372 
    373380   
    374381   
Note: See TracChangeset for help on using the changeset viewer.