• 大小: 3.3MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-15
  • 语言: Java
  • 标签: java  股票  

资源简介

此软件为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\Mainframe$1.class

     文件       1833  2008-08-20 10:06  StockFXSrc\bin\production\StockFX\org\kkx\Mainframe$2.class

     文件       1833  2008-08-20 10:06  StockFXSrc\bin\production\StockFX\org\kkx\Mainframe$3.class

     文件       1833  2008-08-20 10:06  StockFXSrc\bin\production\StockFX\org\kkx\Mainframe$4.class

     文件        533  2008-08-20 10:06  StockFXSrc\bin\production\StockFX\org\kkx\Mainframe$5.class

     文件       7204  2008-08-20 10:06  StockFXSrc\bin\production\StockFX\org\kkx\Mainframe.class

     文件        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$HttpClientframe$1.class

     文件       1041  2008-08-18 19:26  StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientframe$2$1.class

     文件       1894  2008-08-18 19:26  StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientframe$2.class

     文件       5096  2008-08-18 19:26  StockFXSrc\bin\production\StockFX\org\kkx\httptest\ClientApp$HttpClientframe.class

     文件        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\NameValueobject.class

     文件       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个文件信息

评论

共有 条评论