public TestingPanel(MainPanel1 card) { this.setBackground(Color.white); this.setLayout(null); this.card = card; db = new WordDB(); wordClasses = new String[NUM_CLASSES]; for (int i = 0; i < NUM_CLASSES; i++) { try { wordClasses[i] = db.getWord(i + 1); } catch (ClassNotFoundException | SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } addHeaderComponents(); addComponents(); p = new Preprocessing(NUM_CLASSES); testingSamples = new ArrayList<Shorthand>(); r = new WordRecognizer(); }