Revision 3081 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/ShowResultsDialogPanel.java

View differences:

ShowResultsDialogPanel.java
49 49
import java.awt.event.ActionListener;
50 50

  
51 51
import javax.swing.JButton;
52
import javax.swing.JDialog;
52 53
import javax.swing.JPanel;
53 54

  
54 55

  
......
56 57
 * @author Jorge Piera Llodra (piera_jor@gva.es)
57 58
 */
58 59
public class ShowResultsDialogPanel extends JPanel implements ActionListener {
60
//  It is needed to close the frame
61
    private JDialog parent;
62
    
63
/**
64
 * @param parent The parent to set.
65
 */
66
public void setParent(JDialog parent) {
67
    this.parent = parent;
68
}
59 69
    protected ShowResultsPanel ppalPanel = null;
60 70
    protected Feature[] features = null;
61 71
    protected GazetteerClient client = null;
72
    
62 73
    int currentPage = 0;
63 74
    int recordsByPage = 0;
75
    
64 76
    JButton nextButton = null;
65 77
    JButton lastButton = null;
66 78
    JButton mapButton = null;
......
166 178
    }
167 179
    
168 180
    public void closeButtonActionPerformed() {
169
        setVisible(false);
181
        parent.setVisible(false);
170 182
    }
171 183
    
172 184
    

Also available in: Unified diff