add(_attributeName, java.awt.BorderLayout.NORTH);
_optionsComboBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { _optionsComboBoxActionPerformed(evt); } });  add(_optionsComboBox, java.awt.BorderLayout.SOUTH);  _topPanel.setLayout(new java.awt.BorderLayout());  _legendAttribute.setText("Color Legend"); _topPanel.add(_legendAttribute, java.awt.BorderLayout.WEST);  jButton1.setFont(new java.awt.Font("Tahoma", 0, 10)); jButton1.setText("Refresh"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } });  _topPanel.add(jButton1, java.awt.BorderLayout.EAST);  add(_topPanel, java.awt.BorderLayout.NORTH);
    private void initComponents() {//GEN-BEGIN:initComponents        _scrollPane = new javax.swing.JScrollPane();        _jlist = new javax.swing.JList(_legend.getListModel());        _jlist.setCellRenderer(new ColorLegendRenderer());        _attributeName = new javax.swing.JLabel(_legend.getAttribute());        setLayout(new java.awt.BorderLayout());        _scrollPane.setViewportView(_jlist);        add(_scrollPane, java.awt.BorderLayout.CENTER);        add(_attributeName, java.awt.BorderLayout.NORTH);    }//GEN-END:initComponents