资源简介
此软件为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
相关资源
- VMware vCenter Java包 vim25.jar
- 微信企业号java版开发
- 基于J2EE的网络物流系统毕业设计
- JAVA项目文档模板
- java课程设计教务管理系统
- Java版星球大战游戏横向射击
- javaweb图书借阅系统
- JAVA销售管理系统
- 斗地主JAVA
- 猿聊仿QQ项目Java Swing
- 计算机基础课程教学平台+毕业设计
- Java 设计的聊天程序-完整代码
- Java+MySQL高校选课系统
- JSP网站书店项目(简单易学,适用于
- 毕业设计 JAVA在线考试管理系统(源代
- Addison Wesley - The.Java.Programming.Language
- java+jsp编写的购物网站
- jaxws-rt-2.2.8.jar java webservice依赖包
- 基于JAVA的教务排课系统.zip
- 毕业设计论文Java、Tomcat、MySQL
- 简单的注册登录功能(JavaWeb项目)
- RSA加解密源码及测试代码完整java工程
- java+sqlserver,图书借阅管理系统,源程
- 人事档案管理系统java+sqlserver2000含报
- 清华大学讲师JAVA课件PPT详解
- java实现的邮件客户端
- javax.faces-2.2.0.jar
- 启程家教网站 java jsp 源代码 连接池
- leetcode简单+中等题目参考答案java版
- 基于JAVA的七巧板游戏设计与实现
评论
共有 条评论