import java.awt.*; import java.applet.*; public class NodeSetControls extends Panel { PetaSIM tester; Choice myChoice; Panel tabs; Panel nodePanel; CardLayout nodeCards; Panel nodeCardPanel[]; GridBagLayout gbl = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); NodeSetInterfaces nodesetInt[]; public void add(Component c, GridBagLayout gbl, GridBagConstraints gbc, int x, int y, int w, int h) { gbc.gridx = x; gbc.gridy = y; gbc.gridwidth = w; gbc.gridheight = h; gbl.setConstraints(c,gbc); add(c); } public NodeSetControls(PetaSIM tester) //public void init() { //this.tester = tester; int i, numNode; tabs = new Panel(); //tabs.add(new Button("Previous Node")); //tabs.add(new Button("Next Node")); //add("North", tabs); nodePanel = new Panel(); nodeCards = new CardLayout(); nodePanel.setLayout(nodeCards); //setLayout(nodeCards); numNode = 10; nodeCardPanel = new Panel[numNode]; nodesetInt = new NodeSetInterfaces[numNode]; //nodeCardPanel.setLayout(nodeCards); //This loop creates the 10 panels. String name; for(i=0; i