VARNAPanel varnaPanel;
String name;
-
- //JSplitPane splitPane;
-
- //RenderPanel renderPanel;
-
- //AlignmentPanel ap;
-
- //Vector atomsPicked = new Vector();
/*public AppVarna(){
vab = new AppVarnaBinding();
}
rnaList.add(rna1);
- //vab = new AppVarnaBinding(rnaList);
- vab = new AppVarnaBinding(seq,struc);
+ vab = new AppVarnaBinding(rnaList);
+ //vab = new AppVarnaBinding(seq,struc);
name=this.name;
initVarna();
}
//vab.setFinishedInit(false);
varnaPanel=vab.get_varnaPanel();
setBackground(Color.white);
- System.out.println("vp: "+vab.get_varnaPanel().getName());
- //varnaPanel.setVisible(true);
getContentPane().setLayout(new BorderLayout());
getContentPane().add(varnaPanel, BorderLayout.CENTER);
- setVisible(true);
+
varnaPanel.addVARNAListener(this);
- jalview.gui.Desktop.addInternalFrame(this,name,getBounds().width, getBounds().height);
+ jalview.gui.Desktop.addInternalFrame(this,name,getBounds().width, getBounds().height);
+ this.pack();
+ this.setVisible(true);
//showPanel(true);
}
public void showPanel(boolean show){
- //vab.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- //vab.pack();
- //vab.setVisible(show);
-
varnaPanel.setVisible(show);
}