io ho questo frame:
dovrei riempire le textfield con valori che arrivano da un altro frame:codice:public class FormModifica extends javax.swing.JFrame { private String name; Object author; Object editor; String price; String isbn; String note; public FormModifica(String name, Object author, Object editor, String price, String isbn, String note) { this.name = name; this.author = author; this.editor = editor; this.price = price; this.isbn = isbn; this.note = note; } public FormModifica() { initComponents(); setLocationRelativeTo(null); } ......... public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { try { String hifi = "com.jtattoo.plaf.hifi.HiFiLookAndFeel"; UIManager.setLookAndFeel(hifi); new FormModifica().setVisible(true); } catch (UnsupportedLookAndFeelException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } catch (ClassNotFoundException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } catch (InstantiationException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } catch (IllegalAccessException ex) { JOptionPane.showMessageDialog(null, ex.getMessage()); } } }); }
il mio problema è che il FormModifica nn si avvia.codice:FormModifica form = new FormModifica(name, author_id, editor_id, note, isbn, note); form.setVisible(true);
più o meno penso di aver capito dov'è il problema.
ma nn riesco a risolverlo.

Rispondi quotando
