Revision 16225

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java
291 291
     */
292 292
    private JPanel getTopPanel() {
293 293
        if (topPanel == null) {
294
            jLabel = new JLabel();
295 294
            topPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 5, 0));
296 295
            topPanel.setPreferredSize(new Dimension(638, 31));
297 296
            topPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
298
            jLabel.setText(PluginServices.getText(this,"Leyenda") + ":");
299
            topPanel.add(jLabel, null);
300
            topPanel.add(getJComboBox(), null);
301 297
            topPanel.add(getBtnSaveLegend(), null);
302 298
            topPanel.add(getBtnLoadLegend(), null);
303
            topPanel.add(getJCheckBox(), null);
304 299
        }
305 300
        return topPanel;
306 301
    }
307
    /**
308
     * This method initializes jComboBox
309
     *
310
     * @return javax.swing.JComboBox
311
     */
312
    private JComboBox getJComboBox() {
313
        if (jComboBox == null) {
314
            jComboBox = new JComboBox();
315
            jComboBox.setBounds(78, 5, 250, 22);
316
        }
317
        return jComboBox;
318
    }
319 302
    
320 303
    private JButton getBtnSaveLegend() {
321 304
        if (btnSaveLegend == null) {
322 305
            btnSaveLegend = new JButton(PluginServices.getText(this,"Guardar_leyenda")+"...");
323
//            btnSaveLegend.setBounds(345, 4, 22, 22);
324 306
            btnSaveLegend.addActionListener(loadSaveLegendAction);
325 307
        }
326 308
        return btnSaveLegend;
......
329 311
    private JButton getBtnLoadLegend() {
330 312
        if (btnLoadLegend == null) {
331 313
            btnLoadLegend = new JButton(PluginServices.getText(this,"Recuperar_leyenda")+"...");
332
//            btnLoadLegend.setBounds(371, 4, 22, 22);
333 314
            btnLoadLegend.addActionListener(loadSaveLegendAction);
334 315
        }
335 316
        return btnLoadLegend;
336 317
    }
337
    
338
    private JCheckBox getJCheckBox() {
339
        if (jCheckBox == null) {
340
            jCheckBox = new JCheckBox();
341
            jCheckBox.setBounds(417, 4, 202, 22);
342
            jCheckBox.setText(PluginServices.getText(this,"Leyenda_Por_Defecto"));
343
            jCheckBox.setEnabled(false);
344
        }
345
        return jCheckBox;
346
    }
347 318

  
348 319
    /**
349 320
     * This method initializes jTextArea

Also available in: Unified diff