Ignore:
Timestamp:
2006-10-30T15:39:10+13:00 (18 years ago)
Author:
kjdon
Message:

quan's changes to remove blue borders around buttons and comboboxes on macs

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
5 edited

Legend:

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

    r13076 r13195  
    185185       
    186186        saveas_combobox = new JComboBox(saveas_formats.toArray());
     187    saveas_combobox.setOpaque(false);
    187188    saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip"));
    188189       
  • trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java

    r12823 r13195  
    4242import javax.swing.plaf.basic.*;
    4343import org.greenstone.gatherer.Configuration;
     44import org.greenstone.gatherer.util.Utility;
    4445
    4546/**
     
    6263    super();
    6364    init();
     65    setOpaque(!Utility.isMac());
    6466    }
    6567
    6668    public GComboBox(boolean editable) {
    6769    super();
    68     setEditable(editable);
    69     init();
     70    setOpaque(!Utility.isMac());
     71    setEditable(editable);
     72    init();
     73
    7074    }
    7175
    7276    public GComboBox(ArrayList data) {
    7377    super(data.toArray());
     78    setOpaque(!Utility.isMac());
    7479    init();
    7580    }
     
    7782    public GComboBox(ArrayList data, boolean editable) {
    7883    super(data.toArray());
     84    setOpaque(!Utility.isMac());
    7985    setEditable(editable);
    8086    init();
     
    8389    public GComboBox(ArrayList data, boolean editable, boolean sorted) {
    8490    super(data.toArray());
     91    setOpaque(!Utility.isMac());
    8592    setEditable(editable);
    8693    setSorted(sorted);
     
    9097    public GComboBox(ComboBoxModel model) {
    9198    super(model);
     99    setOpaque(!Utility.isMac());
    92100    init();
    93101    }
     
    95103    public GComboBox(ComboBoxModel model, boolean editable) {
    96104    super(model);
     105    setOpaque(!Utility.isMac());
    97106    setEditable(editable);
    98107    init();
     
    101110    public GComboBox(Object data[]) {
    102111    super(data);
     112    setOpaque(!Utility.isMac());
    103113    init();
    104114    }
     
    106116    public GComboBox(Object data[], boolean editable) {
    107117    super(data);
     118    setOpaque(!Utility.isMac());
    108119    setEditable(editable);
    109120    init();
     
    112123    public GComboBox(Object data[], boolean editable, boolean sorted) {
    113124    super(data);
     125    setOpaque(!Utility.isMac());
    114126    setEditable(editable);
    115127    setSorted(sorted);
     
    119131    public GComboBox(Vector data) {
    120132    super(data);
     133    setOpaque(!Utility.isMac());
    121134    init();
    122135    }
     
    124137    public GComboBox(Vector data, boolean editable) {
    125138    super(data);
     139    setOpaque(!Utility.isMac());
    126140    setEditable(editable);
    127141    init();
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r12300 r13195  
    143143    JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection"));
    144144    base_collection = new JComboBox(base_collection_model);
     145    base_collection.setOpaque(false);
    145146    base_collection.setToolTipText(Dictionary.get("NewCollectionPrompt.Base_Collection_Tooltip"));
    146147   
     
    333334        title_final = title.getText();
    334335        if(title_final.length() == 0) {
    335         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     336        JOptionPane jOptionPane=new JOptionPane();
     337        jOptionPane.setOpaque(!Utility.isMac());
     338        jOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    336339        return;
    337340        }
     
    339342        else {
    340343        if(titleClashes(title_final, null)) {
    341             if (JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) {
     344            JOptionPane jOptionPane=new JOptionPane();
     345            jOptionPane.setOpaque(!Utility.isMac());
     346            if (jOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Clash"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) {
    342347            return;
    343348            }
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r12745 r13195  
    230230        // what should we do if Gatherer.servlet_config.getSites() is null?
    231231        site_combobox = new JComboBox(Gatherer.servlet_config.getSites().toArray());
     232        site_combobox.setOpaque(false);
    232233        site_combobox.setToolTipText(Dictionary.get("Preferences.Connection.Site_Tooltip"));
    233234       
     
    237238        servlet_label.setPreferredSize(LABEL_SIZE);
    238239        servlet_combobox = new JComboBox();
     240        servlet_combobox.setOpaque(false);
    239241        // try to locate and select the current site
    240242        String this_site = Configuration.site_name;
     
    424426   
    425427    language_combobox = new JComboBox(dictionary_model.toArray());
     428    language_combobox.setOpaque(false);
    426429    language_combobox.setToolTipText(Dictionary.get("Preferences.General.Interface_Language_Tooltip"));
    427430   
     
    598601    JLabel predefined_label = new JLabel(Dictionary.get("Preferences.Workflow.Predefined.Label"));
    599602    JComboBox predefined_combobox = new JComboBox(predefined);
    600 
     603    predefined_combobox.setOpaque(false);
    601604    // Connection
    602605    predefined_combobox.addActionListener(new PredefinedActionListener());
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java

    r12115 r13195  
    125125    JLabel value_label = new JLabel(Dictionary.get("Autofilter.eqeq"));
    126126    value = new JComboBox();
     127    value.setOpaque(false);
    127128    value.setEditable(false);
    128129    JPanel custom_pane = new JPanel();
     
    130131    JPanel first_pane = new JPanel();
    131132    first_method = new JComboBox();
     133    first_method.setOpaque(false);
    132134    first_value = new JComboBox();
     135    first_value.setOpaque(false);
    133136    first_value.setEditable(true);
    134137    first_value.addItem("");
     
    151154    JPanel second_pane = new JPanel();
    152155    second_method = new JComboBox();
     156    second_method.setOpaque(false);
    153157    second_method.setEnabled(false);
    154158    second_value = new JComboBox();
     159    second_value.setOpaque(false);
    155160    second_value.setEditable(true);
    156161    second_value.setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.