Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5019

Show
Ignore:
Timestamp:
07/23/08 02:42:17 (6 months ago)
Author:
nribeka
Message:

patient matching module: fixing minor cosmetic issues with the GUI

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecMatch.java

    r4983 r5019  
    11package org.regenstrief.linkage.gui; 
    22 
     3import java.awt.BorderLayout; 
    34import java.awt.Container; 
     5import java.awt.FlowLayout; 
    46import java.awt.GridBagConstraints; 
    57import java.awt.GridLayout; 
     
    129131        gridBagConstraints.insets = new Insets(0, 0, 0, 50); 
    130132        panelConfig.add(dedupeCheckBox, gridBagConstraints); 
    131                  
     133         
    132134                // add tabs to main_window 
    133135        JPanel panelMatching = new JPanel(); 
     
    148150                 
    149151                Container c = main_window.getContentPane(); 
    150                 c.setLayout(new BoxLayout(c, BoxLayout.PAGE_AXIS)); 
    151                 c.add(panelConfig); 
    152                 c.add(panelMatching); 
     152                c.setLayout(new BorderLayout()); 
     153                c.add(panelConfig, BorderLayout.NORTH); 
     154                c.add(panelMatching, BorderLayout.CENTER); 
    153155                main_window.pack(); 
    154156                main_window.setVisible(true); 
     
    258260            recentFileMenu.add(menuItem); 
    259261        } 
     262        saveHistoryEntries(); 
    260263        } 
    261264 
     
    274277         
    275278        private void exitProgram(){ 
     279        saveHistoryEntries(); 
     280                System.exit(0); 
     281        } 
     282 
     283    private void saveHistoryEntries() { 
    276284        RecentFileEntry[] entries = recentFile.getEntries(); 
    277285        RecentFile.persistEntries(entries, new File(RECENT_FILE_PATH)); 
    278                 System.exit(0); 
    279         } 
     286    } 
    280287         
    281288        private void saveConfig(){ 
     
    433440                                } 
    434441                        } 
     442                saveHistoryEntries(); 
    435443                        updateCheckBox(); 
    436444                } 
     
    551559                } 
    552560                dpanel.clearTable(dupedDataSource); 
     561                doneCheckBox.setSelected(false); 
    553562                doneCheckBox.setEnabled(false); 
    554563                rm_conf.setDeduplication(false); 
  • openmrs-modules/patientmatching/src/org/regenstrief/linkage/gui/RecentFile.java

    r4745 r5019  
    1212import java.io.IOException; 
    1313import java.util.ArrayList; 
     14import java.util.Arrays; 
     15import java.util.Collections; 
    1416import java.util.Hashtable; 
    1517import java.util.LinkedList; 
     
    136138                entriesList.add(entry); 
    137139            } 
     140            Collections.reverse(entriesList); 
    138141            entries = entriesList.toArray(new RecentFileEntry[entriesList.size()]); 
    139142        } catch (FileNotFoundException e) { 
  • openmrs-modules/patientmatching/web/src/org/openmrs/module/patientmatching/web/ConfigSimpleFormController.java

    r4935 r5019  
    179179                        break; 
    180180                    } 
    181                     if (excludedProperty.trim().isEmpty()) { 
     181                    if (excludedProperty.trim().length() == 0) { 
    182182                        break; 
    183183                    }