import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.File; import java.awt.Container; public class programm2 extends JPanel implements ActionListener, ItemListener{ static String[] vastus=new String[10]; static String[][] KysVar=new String[10][10]; static String[] KysMass=new String[10]; static JButton[] kinnitusmassiiv= new JButton[10]; static JRadioButton[][] nupumassiiv=new JRadioButton[10][10]; static JCheckBox[][] nupumassiiv2=new JCheckBox[10][10]; static String[][] KysVarIndex=new String[10][10]; static String[][] valitudvariant= new String[10][10]; static int kysimusteArv; static JFrame frame; static int[] nuppudeArv=new int[10]; static String[] kysimuseTyyp=new String[10]; public programm2(Container paneel){ paneel.setLayout(new BoxLayout(paneel, BoxLayout.Y_AXIS)); for (int i=0; i