private void pHtextButton2MouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_pHtextButton2MouseClicked
   if (currentTabRef != tab8) {
     currentTabRef.copy(tab8);
   } else {
     currentTabRef.removeSelected();
   }
 } // GEN-LAST:event_pHtextButton2MouseClicked
 public void turnQuickOn() {
   hidePanels();
   hideTabs();
   deactivateTabs();
   pHsearch1.setVisible(true);
   pHsearch1.revalidate();
   pHsearch1.repaint();
   if (tabs > 0) {
     tabButton1.setVisible(true);
     tabButton1.revalidate();
     tabButton1.repaint();
   }
   if (tabs > 1) {
     tabButton2.setVisible(true);
   }
   if (tabs > 2) {
     tabButton3.setVisible(true);
   }
   if (tabs > 3) {
     tabButton4.setVisible(true);
   }
   if (tabs > 4) {
     tabButton5.setVisible(true);
   }
   if (tabs > 0 && oldTabRef != null) {
     oldTabRef.setVisible(true);
     oldTabRef.revalidate();
     oldTabRef.repaint();
   }
   if (currentTab == 1) {
     tabButton1.activate(true);
     currentTabRef = tab1;
   } else if (currentTab == 2) {
     tabButton2.activate(true);
     currentTabRef = tab2;
   } else if (currentTab == 3) {
     tabButton3.activate(true);
     currentTabRef = tab3;
   } else if (currentTab == 4) {
     tabButton4.activate(true);
     currentTabRef = tab4;
   } else if (currentTab == 5) {
     tabButton5.activate(true);
     currentTabRef = tab5;
   }
   replaceImg();
   float[] RGBConv = Color.RGBtoHSB(94, 88, 88, null);
   pHquickSearch1.setBackground(Color.getHSBColor(RGBConv[0], RGBConv[1], RGBConv[2]));
   pHquickSearch1.changeState(true);
 }
 private void pHtextButton4MouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_pHtextButton4MouseClicked
   PHprinter p = new PHprinter();
   p.setList(currentTabRef.getSelected());
   JDialog d = new JDialog(this, true);
   d.add(p);
   d.setPreferredSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMinimumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setMaximumSize(
       new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setSize(new Dimension(p.getPreferredSize().width + 8, p.getPreferredSize().height + 32));
   d.setLocationRelativeTo(this);
   d.setResizable(false);
   d.setVisible(true);
 } // GEN-LAST:event_pHtextButton4MouseClicked
 public void quickSearch(String text) {
   if (tabs == 5) {
     PHtooManyTabs p = new PHtooManyTabs();
     p.setVisible(true);
     return;
   }
   turnQuickOn();
   PHresults tab = null;
   PHtab button = null;
   switch (++tabs) {
     case 1:
       {
         tab = tab1;
         button = tabButton1;
         currentTab = 1;
         currentTabRef = tab1;
         break;
       }
     case 2:
       {
         tab = tab2;
         button = tabButton2;
         currentTab = 2;
         currentTabRef = tab2;
         break;
       }
     case 3:
       {
         tab = tab3;
         button = tabButton3;
         currentTab = 3;
         currentTabRef = tab3;
         break;
       }
     case 4:
       {
         tab = tab4;
         button = tabButton4;
         currentTab = 4;
         currentTabRef = tab4;
         break;
       }
     case 5:
       {
         tab = tab5;
         button = tabButton5;
         currentTab = 5;
         currentTabRef = tab5;
         break;
       }
   }
   button.setText(text);
   button.setVisible(true);
   deactivateTabs();
   hideTabs();
   tab.setVisible(true);
   button.activate(true);
   try {
     tab.getPanel().removeAll();
     LinkedList<phArt> ll = new LinkedList<phArt>();
     setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
     ll = db.generalSearch(text);
     for (phArt e : ll) {
       tab.addArt(e);
     }
     setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
     tab.repaint();
   } catch (Exception e) {
     System.out.println(e.getMessage());
   }
 }
 private void pHtextButton5MouseClicked(
     java.awt.event.MouseEvent evt) { // GEN-FIRST:event_pHtextButton5MouseClicked
   if (currentTabRef != null) {
     currentTabRef.deselectAll();
   }
 } // GEN-LAST:event_pHtextButton5MouseClicked