"Attribute Selection Panel",
"Subsample % Panel",
	public void actionPerformed(ActionEvent e) {	  JLabel rseedLb = new JLabel("Random Seed: ");	  JTextField rseedTxt = m_rseed;	  JLabel percentLb = new JLabel("Subsample as");	  JLabel percent2Lb = new JLabel("% of input: ");	  final JTextField percentTxt = new JTextField(5);	  percentTxt.setText( m_resamplePercent.getText() );	  JButton doneBt = new JButton("Done");	  final JDialog jd = new JDialog((JFrame) MatrixPanel.this.getTopLevelAncestor(), 					 "Attribute Selection Panel",					 true) {	      public void dispose() { 		m_resamplePercent.setText(percentTxt.getText());		super.dispose();	      } 	    };	  jd.setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );			       	  doneBt.addActionListener( new ActionListener(){ 	      public void actionPerformed(ActionEvent ae) {		jd.dispose();  	      }	    });	  GridBagLayout gbl = new GridBagLayout();	  GridBagConstraints gbc = new GridBagConstraints();	  JPanel p1 = new JPanel( gbl );			  gbc.anchor = gbc.WEST; gbc.fill = gbc.HORIZONTAL;	  gbc.insets = new Insets(0,2,2,2);	  gbc.gridwidth = gbc.RELATIVE;	  p1.add(rseedLb, gbc); gbc.weightx = 0;	  gbc.gridwidth = gbc.REMAINDER; gbc.weightx=1;	  p1.add(rseedTxt, gbc);	  gbc.insets = new Insets(8,2,0,2); gbc.weightx=0;	  p1.add(percentLb, gbc);	  gbc.insets = new Insets(0,2,2,2); gbc.gridwidth = gbc.RELATIVE;	  p1.add(percent2Lb, gbc);	  gbc.gridwidth = gbc.REMAINDER; gbc.weightx=1;	  p1.add(percentTxt, gbc);	  gbc.insets = new Insets(8,2,2,2);	  if(m_data.attribute(m_classAttrib.getSelectedIndex()).isNominal()) {	    JPanel p2 = new JPanel( gbl );	    p2.add(origDist, gbc);	    p2.add(unifDist, gbc);	    p2.setBorder( BorderFactory.createTitledBorder("Class Distribution") );	    p1.add(p2, gbc);	  }					  JPanel p3 = new JPanel( gbl );	  gbc.fill = gbc.HORIZONTAL; gbc.gridwidth = gbc.REMAINDER;	  gbc.weightx = 1;  gbc.weighty = 0;	  p3.add(p1, gbc);	  gbc.insets = new Insets(8,4,8,4);	  p3.add(doneBt, gbc);					   	  jd.getContentPane().setLayout( new BorderLayout() );	  jd.getContentPane().add(p3, BorderLayout.NORTH);	  jd.pack();	  jd.setLocation( m_resampleBt.getLocationOnScreen().x,			  m_resampleBt.getLocationOnScreen().y-jd.getHeight() );	  jd.setVisible(true);	}