costruttore della classe main.
codice:
public Menu() throws ClassNotFoundException, SQLException {
super(titolo);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
		JPanel panelCenter = new JPanel();
		super.setJMenuBar(menuBar);
		super.getContentPane().add(panelCenter);
		// COMBOBOX omesso
                // JButton omessi
                // JTextField omessi
                //JLabel omessi


button1.addActionListener(event -> {
			String uno = (String) listaProdotti2.getSelectedItem();
			if(!(uno.equalsIgnoreCase(""))) {
				prodUno.setText(uno);
				String prezzoUno = "Tot da pagare € ";
				uno = quant.getText();
totProdUno.setText("QUI DOVREI INVOCARE IL METODO totale() DELLA CLASSE PRODOTTI");

			} 
		});
ho ridotto il codice altrimenti non c'entra... fammi sapere se ti può bastare..
grazie