|
From: Carlos <ma...@us...> - 2007-10-22 22:46:09
|
Update of /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv18440/src/java/net/sf/tails/swing/frame Modified Files: Index.java Log Message: fullscreen e help funcionando Index: Index.java =================================================================== RCS file: /cvsroot/tail/TailS/src/java/net/sf/tails/swing/frame/Index.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Index.java 22 Oct 2007 22:37:09 -0000 1.30 --- Index.java 22 Oct 2007 22:46:10 -0000 1.31 *************** *** 14,17 **** --- 14,18 ---- import java.awt.Color; import java.awt.Dimension; + import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.io.BufferedOutputStream; *************** *** 45,48 **** --- 46,50 ---- import net.sf.tails.swing.frame.report.NewReportFrame; import net.sf.tails.swing.frame.stockAnalysis.NewStockAnalysis; + import net.sf.tails.swing.help.HelpFrame; import net.sf.tails.swing.helper.CompleteReportGenerator; import net.sf.tails.swing.helper.FrameHelper; *************** *** 114,123 **** * @param stockAnalysis */ public Index(StockAnalysis stockAnalysis) { this.stockAnalysis = stockAnalysis; - initComponents(); - this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - this.setLocationByPlatform(true); - this.setMinimumSize(new java.awt.Dimension(800, 600)); - this.setTitle(messageBundle.getString("DEFAULT_TITLE")); } --- 116,121 ---- * @param stockAnalysis */ public Index(StockAnalysis stockAnalysis) { + this(); this.stockAnalysis = stockAnalysis; } *************** *** 127,132 **** this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLocationByPlatform(true); - this.setMinimumSize(new java.awt.Dimension(800, 600)); this.setTitle(messageBundle.getString("DEFAULT_TITLE")); } --- 125,130 ---- this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLocationByPlatform(true); this.setTitle(messageBundle.getString("DEFAULT_TITLE")); + this.setSize(Toolkit.getDefaultToolkit().getScreenSize()); } *************** *** 277,280 **** --- 275,280 ---- moveRightButton.setEnabled(false); moveLeftButton.setEnabled(false); + jumpRightButton.setEnabled(false); + jumpLeftButton.setEnabled(false); exportHTMLButton.setEnabled(false); exportXLSButton.setEnabled(false); *************** *** 641,645 **** protected void helpButtonActionPerformed(ActionEvent evt) { ! // TODO AQUI } --- 641,645 ---- protected void helpButtonActionPerformed(ActionEvent evt) { ! new HelpFrame().setVisible(true); } *************** *** 794,797 **** --- 794,799 ---- moveRightButton.setEnabled(true); moveLeftButton.setEnabled(true); + jumpRightButton.setEnabled(true); + jumpLeftButton.setEnabled(true); if (analysis.getReports().size() > 0) |