91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-07
  • 語言: 其他
  • 標簽: java??ArrayList??

資源簡介

純原創,有相關代碼解釋,有界面UI ArrayList 做存儲。改一下可以當final project

資源截圖

代碼片段和文件信息


import?javax.swing.*;
import?javax.swing.border.Border;
import?javax.swing.border.EtchedBorder;
import?javax.tools.Tool;

import?java.awt.*;
import?java.awt.event.*;
import?java.util.ArrayList;

public?class?MainUI?implements?ActionListener
{

Jframe?lgframe;
Jframe?myframe;

JTextField?fname;
JTextField?lname;
JTextField?etime;

JTextField?uname;//login?window
JPasswordField?psword;//?login?window

JRadioButton?emp_choice1;??
JRadioButton?emp_choice2;

JTextArea?ta;

ArrayList?full_time_emp?=?new?ArrayList?();
ArrayList?contract_emp?=?new?ArrayList?();
ArrayList?full_time=new?ArrayList?();
ArrayList??con_time=new?ArrayList?();

public?static?void?main(String[]?args)?throws?Exception
{
MainUI?finalproject=new?MainUI();
//finalproject.salarysystem();
finalproject.login();

????}


public?void?salarysystem()?
{
myframe=new?Jframe(“Salary?System“);

System.out.println(Jframe.EXIT_ON_CLOSE);//exit_on_close是個int值
myframe.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
myframe.setLayout(new?FlowLayout());
myframe.setSize(820?610);
myframe.setResizable(false);
Image?icon?=?Toolkit.getDefaultToolkit().getImage(“E:\\eclipse\\workspace\\Final?Project\\src\\logo.png“);
myframe.setIconImage(icon);

JPanel?left_panel=new?JPanel();//??左邊主面板
left_panel.setLayout(new?GridLayout(31));
//------------------主窗體-----------


JPanel?button_panel=new?JPanel();?
JButton?b1=new?JButton(“UPLOAD?DATA“);//?第一個,???按鍵面板
b1.addActionListener(this);?//設置監聽
JButton?b2=new?JButton(“Print“);
b2.addActionListener(this);
JButton?bexit=new?JButton(“EXIT“);
bexit.addActionListener(this);

button_panel.add(b1);
button_panel.add(b2);
button_panel.add(bexit);



//第二個?panel?放?輸入的textfield
JPanel?showing_panel=new?JPanel();??//?第二個,輸入數據面板
LayoutManager?lm?=?new?GridLayout(32);

showing_panel.setLayout(lm);

JLabel?first_name=new?JLabel(“First?Name?:“);
JLabel?last_name=new?JLabel(“Last?Name?:“);
JLabel?time=new?JLabel(“Months/Hours?:“);

fname?=?new?JTextField();
fname.setSize(5?5);


lname?=?new?JTextField();
lname.setSize(55);


etime?=?new?JTextField();
etime.setSize(55);



showing_panel.add(first_name);
showing_panel.add(fname);
showing_panel.add(last_name);
showing_panel.add(lname);
showing_panel.add(time);
showing_panel.add(etime);

//?3panel?放?TextArea

JPanel?tarea=new?JPanel();??//?第三個,JTextArea?顯示數據面板
tarea.setBorder(new?EtchedBorder(EtchedBorder.LOWERED));

ta?=?new?JTextArea(3040);
ta.setText(“Notice?that:“+“\n“+“the?Salary?of?Full-time?employee?is?$5000/?month“+“\n“+“the?Salary?of?contract?is?$14/?hour“+“\n“);
ta.setBackground(Color.PINK);
ta.setWrapstyleWord(true);
ta.setEditable(false);
JScrollPane?jsp?=?new?JScrollPa

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1233??2017-12-05?13:49??logo.png

?????文件???????7157??2017-12-06?23:02??MainUI.java

-----------?---------??----------?-----??----

?????????????????8390????????????????????2


評論

共有 條評論