_dfDegree = new javax.swing.JComboBox(new Object [] {"1 degree", "2 degrees", "3 degrees", "4 degrees", "5 degrees", "6 degrees"});
_dfDegree = new javax.swing.JComboBox(new Object [] {"1 degree", "2 degrees", "3 degrees", "4 degrees", "5 degrees", "6 degrees", "All Vertices"});
    private void initComponents() {//GEN-BEGIN:initComponents        _start = new javax.swing.JButton();        _stop = new javax.swing.JButton();        _center = new javax.swing.JButton();        _reset = new javax.swing.JButton();        jSeparator1 = new javax.swing.JSeparator();        // gather the ids of all vertices        Object [] vnames;        if(_g != null) {            vnames = _g.getVertices().toArray();            java.util.Arrays.sort(vnames);        } else {            vnames = new Object [0];        }        _dfVertices = new javax.swing.JComboBox();        _dfDegree = new javax.swing.JComboBox(new Object [] {"1 degree", "2 degrees", "3 degrees", "4 degrees", "5 degrees", "6 degrees"});        _doFilter = new javax.swing.JButton();        setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));        setPreferredSize(new java.awt.Dimension(2, 0));        _start.setText(" Start ");        _start.setToolTipText("Start the interative layout.");        _start.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        _start.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                _startActionPerformed(evt);            }        });        add(_start);        _stop.setText(" Stop ");        _stop.setToolTipText("Stop the interactive layout.");        _stop.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        _stop.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                _stopActionPerformed(evt);            }        });        add(_stop);        _center.setText(" Center ");        _center.setToolTipText("Center the graph according to the center of mass of the vertices.");        _center.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        _center.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                _centerActionPerformed(evt);            }        });        add(_center);        _reset.setText(" Reset ");        _reset.setToolTipText("Reset the graph to a random layout.");        _reset.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        _reset.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                _resetActionPerformed(evt);            }        });        add(_reset);        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);        jSeparator1.setPreferredSize(new java.awt.Dimension(2, 17));        add(jSeparator1);        _dfVertices.setToolTipText("Select a vertex to center around.");        _dfVertices.setPreferredSize(new java.awt.Dimension(64, 17));        add(_dfVertices);        _dfDegree.setToolTipText("Select the maximum degree separation from the center vertex.");        _dfDegree.setPreferredSize(new java.awt.Dimension(96, 17));        add(_dfDegree);        _doFilter.setText("Filter");        _doFilter.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        _doFilter.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                _doFilterActionPerformed(evt);            }        });        add(_doFilter);    }//GEN-END:initComponents