Changeset 13195


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
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r12841 r13195  
    295295        ClassifierComboboxListener ccl = new ClassifierComboboxListener();
    296296        classifier_combobox = new JComboBox(getAvailableClassifiers());
     297        classifier_combobox.setOpaque(!Utility.isMac());
    297298        classifier_combobox.setEditable(false);
    298299        if(classifier_combobox.getItemCount() > 0) {
     
    304305       
    305306        classifier_list = new JList(model);
     307        classifier_list.setOpaque(true);
    306308        classifier_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    307309        JLabel classifier_list_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Assigned"));
  • trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java

    r13194 r13195  
    4242import org.greenstone.gatherer.metadata.MetadataSetManager;
    4343import org.greenstone.gatherer.util.StaticStrings;
     44import org.greenstone.gatherer.util.Utility;
    4445import org.w3c.dom.*;
    4546
     
    299300
    300301        feature_combobox = new JComboBox(feature_model.toArray());
     302        feature_combobox.setOpaque(!Utility.isMac());
    301303        feature_combobox.setPreferredSize(FIELD_SIZE);
    302304        feature_combobox.setEditable(false);
     
    306308        JLabel part_label = new JLabel(Dictionary.get("CDM.FormatManager.Part"));
    307309        part_combobox = new JComboBox(part_model.toArray());
     310        part_combobox.setOpaque(!Utility.isMac());
    308311        part_combobox.setPreferredSize(FIELD_SIZE);
    309312        part_combobox.setEditable(false);
     
    334337               
    335338        variable_combobox = new JComboBox(variable_model.toArray());
     339        variable_combobox.setOpaque(!Utility.isMac());
    336340        variable_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Variable_Tooltip"));
    337341       
  • trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java

    r13057 r13195  
    770770            JLabel level_label = new JLabel(Dictionary.get("CDM.IndexManager.Level"));
    771771            level_combobox = new JComboBox();
     772            level_combobox.setOpaque(false);
    772773            level_combobox.setPreferredSize(FIELD_SIZE);
    773774            // Note the order of these must be the same as the
  • trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java

    r12808 r13195  
    314314       
    315315        language_metadata_combo = new JComboBox(MetadataSetManager.getEveryMetadataSetElement().toArray());
     316        language_metadata_combo.setOpaque(false);
    316317        language_metadata_combo.setToolTipText(Dictionary.get("CDM.LanguageManager.LanguageMetadata_Tooltip"));
    317318        JLabel language_metadata_label = new JLabel(Dictionary.get("CDM.LanguageManager.LanguageMetadata"));
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r13182 r13195  
    453453        PluginComboboxListener picl = new PluginComboboxListener();
    454454        plugin_combobox = new JComboBox(getAvailablePlugins());
     455        plugin_combobox.setOpaque(!Utility.isMac());
    455456        plugin_combobox.setEditable(false);
    456457        picl.itemStateChanged(new ItemEvent(plugin_combobox, 0, null, ItemEvent.SELECTED));
     
    459460       
    460461        plugin_list = new JList(model);
     462        plugin_list.setOpaque(true);
    461463        plugin_list.setCellRenderer(new ListRenderer());
    462464        plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
     
    467469        plugin_list_pane = new JPanel();
    468470        plugin_pane = new JPanel();
     471        plugin_pane.setOpaque(true);
    469472
    470473        remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip"));
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r12808 r13195  
    226226        source_model.add(0, StaticStrings.FILENAME_STR);
    227227        source_combobox = new JComboBox(source_model);
     228        source_combobox.setOpaque(false);
    228229        source_combobox.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Source_Tooltip"));
    229230       
  • trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java

    r13049 r13195  
    4040import org.greenstone.gatherer.gui.GLIButton;
    4141import org.greenstone.gatherer.util.StaticStrings;
    42 
     42import org.greenstone.gatherer.util.Utility;
    4343
    4444/** This class provides a graphical interface to allow a user to quickly and conviently (ie all in one place) translate the text fragments associated with general metadata and indexes into each of the assigned languages in the collection. It should provide clear controls for the editing of these text fragments, plus clear indicate what languages still need further translation, which it will do through a combination of coloring and other visual indicators.
     
    236236       
    237237        language_combobox = new JComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray());
     238        language_combobox.setOpaque(!Utility.isMac());
    238239        language_combobox.setPreferredSize(COMPONENT_SIZE);
    239240        language_combobox.setRenderer(new LanguageListCellRenderer());
  • trunk/gli/src/org/greenstone/gatherer/feedback/FeedbackInterface.java

    r11624 r13195  
    379379              messages.getString("Other")};
    380380    problem_type = new JComboBox(type);
     381    problem_type.setOpaque(false);
    381382    problem_type.addActionListener(this);
    382383    problem_type.setBackground(bckcolor);
     
    393394          messages.getString("Trivial")};
    394395    problem_urgency = new JComboBox(urgent);
     396    problem_urgency.setOpaque(false);
    395397    problem_urgency.addActionListener(this);
    396398    problem_urgency.setBackground(bckcolor);
  • 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.