use of doc_gui.attribute_panels.ObjectPropertiesFrame in project OpenNotebook by jaltekruse.
the class OpenNotebook method addContents.
private void addContents(Container c) {
notebookPanel = new NotebookPanel(this);
// propertiesFrames = new ObjectPropertiesFrame[MathObject.objects.length];
// for (int i = 0; i < MathObject.objects.length; i++){
// //System.out.println("before:" + (new java.util.Date().getTime() - timeAtStart));
// //propertiesFrames[i] = new ObjectPropertiesFrame(MathObject.objects[i], notebookPanel);
// //System.out.println("after:" + (new java.util.Date().getTime() - timeAtStart));
// }
new ObjectPropertiesFrame(new GraphObject(), notebookPanel);
new ObjectPropertiesFrame(new ExpressionObject(), notebookPanel);
c.removeAll();
c.setLayout(new GridBagLayout());
GridBagConstraints bCon = new GridBagConstraints();
bCon.fill = GridBagConstraints.BOTH;
bCon.weightx = 1;
bCon.weighty = 1;
c.add(notebookPanel, bCon);
}
Aggregations