From: Sunsern C. <sch...@us...> - 2009-03-16 19:43:36
|
Update of /cvsroot/jboost/jboost/src/jboost/visualization In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15785/src/jboost/visualization Modified Files: HistogramFrame.java Log Message: * Remove GroupLayout * Print PDF now prints iteration numbers Index: HistogramFrame.java =================================================================== RCS file: /cvsroot/jboost/jboost/src/jboost/visualization/HistogramFrame.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** HistogramFrame.java 12 Mar 2009 23:42:04 -0000 1.7 --- HistogramFrame.java 16 Mar 2009 19:43:29 -0000 1.8 *************** *** 24,28 **** import javax.swing.BorderFactory; import javax.swing.BoxLayout; - import javax.swing.GroupLayout; import javax.swing.JComboBox; import javax.swing.JComponent; --- 24,27 ---- *************** *** 211,216 **** try { - GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane()); - getContentPane().setLayout(thisLayout); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); { --- 210,213 ---- *************** *** 229,237 **** } ! thisLayout.setVerticalGroup(thisLayout.createSequentialGroup() ! .addComponent(jSplitPane2, 0, 412, Short.MAX_VALUE)); ! thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup() ! .addComponent(jSplitPane2, 0, 886, Short.MAX_VALUE)); ! pack(); this.setSize(1000, 400); --- 226,230 ---- } ! this.add(jSplitPane2); pack(); this.setSize(1000, 400); *************** *** 975,979 **** if (pdf != null) { ! JComponent toDraw = this.jSplitPane1; File[] tmpFiles = new File[maxNumIter]; --- 968,972 ---- if (pdf != null) { ! JComponent toDraw = this.jSplitPane2; File[] tmpFiles = new File[maxNumIter]; *************** *** 983,986 **** --- 976,981 ---- post("Printing " + iterNoList[i] + "..."); + jList1.setSelectedIndex(i); + jList1.scrollRectToVisible(jList1.getCellBounds(i, i)); loadIteration(i); *************** *** 1005,1008 **** --- 1000,1004 ---- // restore plots + jList1.setSelectedIndex(iter); loadIteration(iter); |