資源簡介
此軟件為java寫的股票軟件,只做練習運用!

代碼片段和文件信息
package?org.kkx;
import?org.kkx.common.gui.autoCompletionField.AutoCompletionField;
import?org.kkx.common.gui.autoCompletionField.DefaultCompletionFilter;
import?org.kkx.common.gui.ColorLib;
import?org.kkx.common.FileIOUtil;
import?org.kkx.common.NameValueobject;
import?org.kkx.common.format.NumberFormatter;
import?org.kkx.remoteService.StockInfoService;
import?org.kkx.remoteService.RemoteServiceFactory;
import?org.kkx.remoteService.AsyncCallback;
import?org.kkx.remoteService.StockPrice;
import?javax.swing.*;
import?java.awt.*;
import?java.awt.event.ActionListener;
import?java.awt.event.ActionEvent;
import?java.util.Vector;
/**
?*?Created?by?IntelliJ?IDEA.
?*?User:?carl
?*?Date:?2008-8-16
?*?Time:?11:22:30
?*?To?change?this?template?use?File?|?Settings?|?File?Templates.
?*/
public?class?Mainframe?extends?Jframe?implements?ActionListener?{
????//private?static?final?String?PREFERRED_LOOK_AND_FEEL?=?“net.sourceforge.napkinlaf.NapkinLookAndFeel“;
????//private?static?final?String?PREFERRED_LOOK_AND_FEEL?=?“ch.randelshofer.quaqua.QuaquaLookAndFeel“;
????private?static?final?String?PREFERRED_LOOK_AND_FEEL?=?null;
????private?StockPriceViewer?spv;
????private?AutoCompletionField?autoField;
????private?JLabel?szValue;
????private?JLabel?szRange;
????private?JLabel?szUpDown;
????private?JLabel?ssValue;
????private?JLabel?ssRange;
????private?JLabel?ssUpDown;
????private?JLabel?hsValue;
????private?JLabel?hsRange;
????private?JLabel?hsUpDown;
????public?Mainframe()?{
????????this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
????????spv?=?new?StockPriceViewer();
????????this.settitle(“StockFX“);
????????this.add(initInputPane()?BorderLayout.NORTH);
????????this.add(spv?BorderLayout.CENTER);
????????this.add(initStatusPane()?BorderLayout.SOUTH);
????????this.setPreferredSize(new?Dimension(625?320));
????????this.pack();
????????this.setLocationRelativeTo(null);
????}
????private?JPanel?initInputPane()?{
????????JPanel?panel?=?new?JPanel(new?FlowLayout(FlowLayout.LEFT));
????????panel.add(new?JLabel(“輸入股票:“));
????????autoField?=?initAutoCompletionField();
????????panel.add(autoField);
????????JButton?add?=?new?JButton(“加入“);
????????add.addActionListener(this);
????????panel.add(add);
????????JComboBox?box?=?new?JComboBox();
????????box.addItem(“錢龍風格“);
????????box.addItem(“萬得風格“);
????????box.addActionListener(new?ActionListener()?{
????????????public?void?actionPerformed(ActionEvent?e)?{
????????????????JComboBox?temp?=?(JComboBox)?e.getSource();
????????????????String?item?=?temp.getSelectedItem().toString();
????????????????if?(item.equals(“錢龍風格“))?{
????????????????????spv.setRenderType(StockPriceRenderer.QL);
????????????????}?else?{
????????????????????spv.setRenderType(StockPriceRenderer.WD);
????????????????}
????????????}
????????});
????????//box.setPreferredSize(new?Dimension(120?box.getPreferredSize().height));
????????panel.add
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????39123??2008-08-20?17:12??StockFXSrc\StockFX.iws
?????文件???????2272??2008-08-20?09:35??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceRenderer.class
?????文件???????1260??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件???????1833??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件???????1833??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件???????1833??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件????????533??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件???????7204??2008-08-20?10:06??StockFXSrc\bin\production\StockFX\org\kkx\Mainfr
?????文件????????760??2008-08-19?15:08??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceViewer$1.class
?????文件????????703??2008-08-19?15:08??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceViewer$2.class
?????文件???????3042??2008-08-19?15:08??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceViewer.class
?????文件???????1366??2008-08-19?16:20??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceModel$1.class
?????文件???????3248??2008-08-19?16:20??StockFXSrc\bin\production\StockFX\org\kkx\StockPriceModel.class
?????文件????????639??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$1.class
?????文件???????1237??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientfr
?????文件???????1041??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientfr
?????文件???????1894??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientfr
?????文件???????5096??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientfr
?????文件????????884??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp.class
?????文件???????2416??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\ExcelCopyPaster$CommandMenu.class
?????文件???????6798??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\ExcelCopyPaster.class
?????文件????????164??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\ISearchName.class
?????文件???????1531??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\FileIOUtil.class
?????文件???????3262??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\PinyinHandler.class
?????文件???????1763??2008-08-20?09:19??StockFXSrc\bin\production\StockFX\org\kkx\common\NameValueob
?????文件???????1164??2008-08-19?17:30??StockFXSrc\bin\production\StockFX\org\kkx\common\format\NumberFormatter.class
?????文件????????650??2008-08-20?09:40??StockFXSrc\bin\production\StockFX\org\kkx\common\gui\ColorLib.class
?????文件????????210??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\gui\autoCompletionField\CompletionFilter.class
?????文件???????6508??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\gui\autoCompletionField\ListPopup.class
?????文件???????1446??2008-08-18?19:26??StockFXSrc\bin\production\StockFX\org\kkx\common\gui\autoCompletionField\DefaultCompletionFilter.class
............此處省略66個文件信息
- 上一篇:swt.jar32&64
- 下一篇:實驗室管理系統jsp
評論
共有 條評論