Salve a tutti,
ho un piccolo problema con i TabbedPane. Prima vi posto il codice e poi lo commento:
codice:
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
public class Framework extends javax.swing.JFrame {
private JTabbedPane tabbedPane;
private JPanel pan1;
public Framework(String user, String endpoint, String inquiryURL, String publishURL, String businessKey, String deployer, String username) {
this.setTitle("GriF: a new collaborative Grid Framework");
pan1 = new YattecUDDI(inquiryURL, publishURL, businessKey, deployer);
tabbedPane.addTab("UDDI Discovering", null, pan1, null);
this.add(tabbedPane);
this.pack();
}
}
Il problema è in quel JPanel in grassetto in quanto dovrebbe essere di tipo JFrame. Come faccio ad aggiungere ad un TabbedPane i Frame invece che i Panel?
Grazie a tutti