so i'm trying to access the JComboBox from the class called Calculator. the JComboBox itself lies in a method, and inside a JPanel in another class called GUI. thanks.
here's my code
public class GUI {
public static JFrame MainFrame(){
//the endless code
frame.add(konvpanel();
return frame;
}
public static JPanel konvpanel(){
JPanel a = new JPanel();
String [] itembox = {"...","XXX","===","|||"};
JComboBox nnn = new JComboBox(itembox);
a.add(nnn);
return a;
}
}
thanks in advance.