⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 investcorp.java

📁 java版虚拟社区,在mysql上运行.
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
package clientpack;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.Rectangle;
import java.awt.Dimension;
import java.io.PrintStream;
import java.util.Scanner;
import java.awt.Toolkit;
import java.awt.event.*;

import javax.swing.JOptionPane;
import javax.swing.ListSelectionModel;
import javax.swing.JPasswordField;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.*;
import javax.swing.*;
import java.util.Vector;

public class InvestCorp extends JFrame {

        private static final long serialVersionUID = 1L;

        private String id;
        private MyMessage mm;
        private Message mes;
        private boolean iflog;
        private boolean fag;
        private boolean f;


        private int RowNumBank;


    	private JButton bankrecord_jButton = null;

    	private JPanel bankrecord_jPanel = null;

    	private JScrollPane bankrecord_jScrollPane = null;

    	private JTable bankrecord_jTable = null;

    	private JButton payback_jButton = null;

    	private JButton loanview_jButton = null;
    	
    

        private JPanel jContentPane = null;

        private JButton personalbank = null;

        private JPanel bankPanel = null;


        private JButton checkaccount = null;

        private JButton deposit = null;

        private JButton withdraw = null;

        private JButton transfer = null;

        private JButton loan = null;

        private JPanel bankenterPanel = null;

        private JPasswordField jPasswordField = null;

        private JLabel jLabel = null;

        private JButton enter = null;

        private JLabel jLabel1 = null;

        private JButton newaccount = null;

        private JPanel regaccountPanel = null;

        private JPasswordField regpassword = null;

        private JPasswordField regpasswordconfirm = null;

        private JTextField regaccount = null;

        private JTextField regcash = null;

        private JLabel jLabel2 = null;

        private JLabel jLabel3 = null;

        private JLabel jLabel4 = null;

        private JLabel jLabel5 = null;

        private JButton regok = null;

        private JButton regback = null;

        private JTextField bankpanel_jTextField = null;

        private JTextField bankpanel_jTextField2 = null;

        private JLabel jLabel6 = null;

        private JLabel jLabel7 = null;

        private JLabel jLabel8 = null;

        private JButton bankpanel_deposit = null;

        private JButton bankpanel_withdraw = null;

        private JButton bankpanel_transfer = null;

        private JButton bankpanel_loan = null;


	private JLabel note_jLabel = null;

    private JButton MyInvestButton = new JButton();
    private JScrollPane MyInvestPanel = new JScrollPane();
    private String[] MyInvestColumnname = {"软件名称","软件描述","投资时间","投资金额","价格","develop_id","开发公司","是否完成","回报"};
    private String[] InvestProjectColumnname = {"软件名称","软件描述","发布时间","投资金额","develop_id","开发公司"};
    private String[] SoftDevCorpImforColumnname = {"软件名称","软件描述","开发时间","开发成本","是否完成","价格","下单","售出","利润","是否获投资","投资者"};
    private String[] BidViewColumnname = {"软件名称","软件描述","发布时间","投资金额","投资者","竞标是否结束"};
    private String[] BiderViewColumnname = {"软件名称","Bider_id","竞标者"};
    private  DefaultTableModel  MyInvestdatamode = new DefaultTableModel(null,MyInvestColumnname)
    {
        public   boolean   isCellEditable(int   row,   int   column)   {
              return   false;
          }

    };
    private  DefaultTableModel  InvestProjectdatamode = new DefaultTableModel(null,InvestProjectColumnname)
    {
        public   boolean   isCellEditable(int   row,   int   column)   {
              return   false;
          }

    };
    private  DefaultTableModel  SoftDevCorpImfordatamode = new DefaultTableModel(null,SoftDevCorpImforColumnname)
    {
        public   boolean   isCellEditable(int   row,   int   column)   {
              return   false;
          }

    };
    private  DefaultTableModel  BidViewdatamode = new DefaultTableModel(null,BidViewColumnname)
    {
        public   boolean   isCellEditable(int   row,   int   column)   {
              return   false;
          }

    };
    private  DefaultTableModel  BiderViewdatamode = new DefaultTableModel(null,BiderViewColumnname)
    {
        public   boolean   isCellEditable(int   row,   int   column)   {
              return   false;
          }

    };



    int RowNum = -1;
    String IPSoftNameMes = "";
    String IPDevIDMes = "";
    String ifinvested = "";
    private JTable MyInvestTable = new JTable(MyInvestdatamode);
    private JButton InvestProjectButton = new JButton();
    private JScrollPane InvestProjectPanel = new JScrollPane();
    private JTable InvestProjectTable = new JTable(InvestProjectdatamode);
    private JPanel ButtonPanel = new JPanel();
    private JButton ViewButton = new JButton();
    private JButton InvestButton = new JButton();
    private JScrollPane SoftDevCorpImforPanel = new JScrollPane();
    private JTable SoftDevCorpImforTable = new JTable(SoftDevCorpImfordatamode);
    private JButton BackButton = new JButton();
    private JButton BidViewButton = new JButton();
    private JScrollPane BidViewPanel = new JScrollPane();
    private JTable BidViewTable = new JTable(BidViewdatamode);
    private JScrollPane BiderViewPanel = new JScrollPane();
    private JTable BiderViewTable = new JTable(BiderViewdatamode);
    private JButton ReleaseButton = new JButton();
    private JPanel ReleasePanel = new JPanel();
    private JLabel SoftNameLabel = new JLabel();
    private JTextField SoftNameTextField = new JTextField();
    private JLabel DescriptionLabel = new JLabel();
    private JTextField DescriptionTextField = new JTextField();
    private JLabel InvestaccountLabel = new JLabel();
    private JTextField InvestaccountTextField = new JTextField();
    private JLabel RetailLabel = new JLabel();
    private JTextField RetailTextField = new JTextField();
    private JButton OKButton = new JButton();
    private JButton CancelButton = new JButton();
    private JButton BiderViewButton = new JButton();
    /**
             * This is the default constructor
             */
            public InvestCorp(Scanner pin, PrintStream pout,String sid) {
                    super();
                    initialize();
                    id = sid;
                    mes = new Message(pin,pout);
                    mm = new MyMessage();
                    iflog = false;
                    setCenter();


            }

            /**
             * This method initializes this
             *
             * @return void
             */
            private void initialize() {

                    this.setContentPane(getJContentPane());
                    this.setTitle("InvestCorp");
                    this.setVisible(true);
                    this.setSize(722,520);
                    MyInvestButton.setBounds(new Rectangle(147, 21, 98, 28));
                    MyInvestButton.setText("我的项目");
                    MyInvestButton.addActionListener(new
                            InvestCorp_ICorpInvestCorpButton_actionAdapter(this));
                    MyInvestPanel.setBounds(new Rectangle(5, 90, 695, 381));
                    InvestProjectButton.setBounds(new Rectangle(247, 21, 98, 28));
                    InvestProjectButton.setText("可投资项目");
                    InvestProjectButton.addActionListener(new InvestCorp_jButton1_actionAdapter(this));
                    InvestProjectPanel.setBounds(new Rectangle(5, 91, 695, 370));
                    ButtonPanel.setBounds(new Rectangle(435, 445, 306, 44));
                    ButtonPanel.setLayout(null);
                    ViewButton.setBounds(new Rectangle(35, 17, 80, 23));//////
                    ViewButton.setText("业绩查看");
                    ViewButton.addActionListener(new InvestCorp_ViewButton_actionAdapter(this));
                    BiderViewButton.setBounds(new Rectangle(125, 17, 80, 23));////
                    BiderViewButton.setText("竞标者");
                    BiderViewButton.addActionListener(new
                                                   InvestCorp_BiderViewButton_actionAdapter(this));
                    InvestButton.setBounds(new Rectangle(125, 17, 80, 23));////
                    InvestButton.setText("Invest");
                    InvestButton.addActionListener(new
                                                   InvestCorp_InvestButton_actionAdapter(this));
                    SoftDevCorpImforPanel.setBounds(new Rectangle(5, 91, 695, 370));
                    BackButton.setBounds(new Rectangle(35, 17, 80, 23));////
                    BackButton.setText("Back");
                    BackButton.addActionListener(new InvestCorp_BackButton_actionAdapter(this));
                    BackButton.setVisible(false);
                    BidViewButton.setBounds(new Rectangle(347, 21, 98, 28));
                    BidViewButton.setText("竞标市场");
                    BidViewButton.addActionListener(new
                                                    InvestCorp_BidViewButton_actionAdapter(this));
                    BidViewPanel.setBounds(new Rectangle(5, 90, 695, 381));
                    BiderViewPanel.setBounds(new Rectangle(5, 91, 695, 381));
                    ReleaseButton.setBounds(new Rectangle(447, 21, 98, 28));
                    ReleaseButton.setText("项目发布");
                    ReleaseButton.addActionListener(new
                                                    InvestCorp_ReleaseButton_actionAdapter(this));
                    ReleasePanel.setBounds(new Rectangle(5, 91, 695, 381));
                    ReleasePanel.setLayout(null);
                    SoftNameLabel.setText("SoftName:");
                    SoftNameLabel.setBounds(new Rectangle(232, 36, 59, 23));
                    SoftNameTextField.setText("");
                    SoftNameTextField.setBounds(new Rectangle(297, 36, 145, 23));
                    DescriptionLabel.setText("Description:");
                    DescriptionLabel.setBounds(new Rectangle(216, 68, 79, 23));
                    DescriptionTextField.setBounds(new Rectangle(297, 68, 145, 23));
                    InvestaccountLabel.setText("Investaccount:");
                    InvestaccountLabel.setBounds(new Rectangle(203, 100, 85, 23));
                    InvestaccountTextField.setText("");
                    InvestaccountTextField.setBounds(new Rectangle(297, 100, 145, 23));
                    RetailLabel.setText("Retail:");
                    RetailLabel.setBounds(new Rectangle(241, 132, 46, 23));
                    RetailTextField.setDebugGraphicsOptions(0);
                    RetailTextField.setBounds(new Rectangle(297, 132, 145, 23));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -