展開全部
我幫你寫了那些JAVA代碼e69da5e887aa62616964757a686964616f31333239313561了,效果包你滿意!呵呵……
至于網頁的代碼嘛,這里就不貼了。你要的話HI我吧^_^。
JAVA代碼如下:
用java程序編寫個人簡歷?import?java.awt.BorderLayout;
import?javax.swing.*;
import?java.awt.Dimension;
import?java.awt.Rectangle;
public?class?MyLuRu?extends?JFrame?{
c++和java,private?static?final?long?serialVersionUID?=?1L;
private?JPanel?jContentPane?=?null;
private?JLabel?jLabel?=?null;
private?JLabel?jLabel1?=?null;
private?JLabel?jLabel2?=?null;
java調用python。private?JLabel?jLabel3?=?null;
private?JTextField?jTextField?=?null;
private?JRadioButton?jRadioButton?=?null;
private?JRadioButton?jRadioButton1?=?null;
private?JComboBox?jComboBox?=?null;
python和JAVA的區別、private?JComboBox?jComboBox1?=?null;
private?JButton?jButton?=?null;
private?JButton?jButton1?=?null;
private?JTextArea?jTextArea?=?null;
private?ButtonGroup?mybg=new?ButtonGroup();
java與Python、/**
*?This?is?the?default?constructor
*/
public?MyLuRu()?{
super();
php和python。initialize();
}
/**
*?This?method?initializes?this
*
python編程。*?@return?void
*/
private?void?initialize()?{
this.setSize(268,?407);
this.setContentPane(getJContentPane());
python3。this.setTitle("錄入");
this.addWindowListener(new?java.awt.event.WindowAdapter()?{
public?void?windowClosing(java.awt.event.WindowEvent?e)?{
System.exit(0);
}
python編寫自己個人信息,});
this.setVisible(true);
}
/**
*?This?method?initializes?jContentPane
python和java哪個難?*
*?@return?javax.swing.JPanel
*/
private?JPanel?getJContentPane()?{
if?(jContentPane?==?null)?{
python輸入用戶姓名、年齡和地址,jLabel3?=?new?JLabel();
jLabel3.setBounds(new?Rectangle(16,?150,?65,?18));
jLabel3.setText("文化程度:");
jLabel2?=?new?JLabel();
jLabel2.setBounds(new?Rectangle(16,?108,?39,?18));
jLabel2.setText("專業:");
jLabel1?=?new?JLabel();
jLabel1.setBounds(new?Rectangle(16,?66,?39,?18));
jLabel1.setText("性別:");
jLabel?=?new?JLabel();
jLabel.setBounds(new?Rectangle(16,?24,?39,?18));
jLabel.setText("姓名:");
jContentPane?=?new?JPanel();
jContentPane.setLayout(null);
jContentPane.add(jLabel,?null);
jContentPane.add(jLabel1,?null);
jContentPane.add(jLabel2,?null);
jContentPane.add(jLabel3,?null);
jContentPane.add(getJTextField(),?null);
jContentPane.add(getJRadioButton(),?null);
jContentPane.add(getJRadioButton1(),?null);
mybg.add(jRadioButton);
mybg.add(jRadioButton1);
jContentPane.add(getJComboBox(),?null);
jContentPane.add(getJComboBox1(),?null);
jContentPane.add(getJButton(),?null);
jContentPane.add(getJButton1(),?null);
jContentPane.add(getJTextArea(),?null);
}
return?jContentPane;
}
/**
*?This?method?initializes?jTextField
*
*?@return?javax.swing.JTextField
*/
private?JTextField?getJTextField()?{
if?(jTextField?==?null)?{
jTextField?=?new?JTextField();
jTextField.setBounds(new?Rectangle(61,?24,?180,?18));
}
return?jTextField;
}
/**
*?This?method?initializes?jRadioButton
*
*?@return?javax.swing.JRadioButton
*/
private?JRadioButton?getJRadioButton()?{
if?(jRadioButton?==?null)?{
jRadioButton?=?new?JRadioButton();
jRadioButton.setBounds(new?Rectangle(61,?62,?38,?26));
jRadioButton.setText("男");
}
return?jRadioButton;
}
/**
*?This?method?initializes?jRadioButton1
*
*?@return?javax.swing.JRadioButton
*/
private?JRadioButton?getJRadioButton1()?{
if?(jRadioButton1?==?null)?{
jRadioButton1?=?new?JRadioButton();
jRadioButton1.setBounds(new?Rectangle(117,?62,?38,?26));
jRadioButton1.setText("女");
}
return?jRadioButton1;
}
/**
*?This?method?initializes?jComboBox
*
*?@return?javax.swing.JComboBox
*/
private?JComboBox?getJComboBox()?{
if?(jComboBox?==?null)?{
String[]?strcb={"計算機","電子","工商"};
jComboBox?=?new?JComboBox(strcb);
jComboBox.setBounds(new?Rectangle(62,?108,?93,?18));
}
return?jComboBox;
}
/**
*?This?method?initializes?jComboBox1
*
*?@return?javax.swing.JComboBox
*/
private?JComboBox?getJComboBox1()?{
if?(jComboBox1?==?null)?{
String[]?strcb2={"大專","本科","碩士","博士"};
jComboBox1?=?new?JComboBox(strcb2);
jComboBox1.setBounds(new?Rectangle(92,?150,?125,?18));
}
return?jComboBox1;
}
/**
*?This?method?initializes?jButton
*
*?@return?javax.swing.JButton
*/
private?JButton?getJButton()?{
if?(jButton?==?null)?{
jButton?=?new?JButton();
jButton.setBounds(new?Rectangle(66,?181,?60,?28));
jButton.setText("提交");
jButton.addActionListener(new?java.awt.event.ActionListener()?{
public?void?actionPerformed(java.awt.event.ActionEvent?e)?{
String?strname=jTextField.getText();
String?strsex="男";
if(jRadioButton1.isSelected()){
strsex="女";
}
String?strzy=jComboBox.getSelectedItem().toString();
String?strwh=jComboBox1.getSelectedItem().toString();
jTextArea.setText("姓名:"+strname+"\r\n"+"性別:"+strsex+"\r\n"+"專業:"+strzy+"\r\n"+"文化:"+strwh);
}
});
}
return?jButton;
}
/**
*?This?method?initializes?jButton1
*
*?@return?javax.swing.JButton
*/
private?JButton?getJButton1()?{
if?(jButton1?==?null)?{
jButton1?=?new?JButton();
jButton1.setBounds(new?Rectangle(158,?181,?60,?28));
jButton1.setText("取消");
jButton1.addActionListener(new?java.awt.event.ActionListener()?{
public?void?actionPerformed(java.awt.event.ActionEvent?e)?{
System.exit(0);
}
});
}
return?jButton1;
}
/**
*?This?method?initializes?jTextArea
*
*?@return?javax.swing.JTextArea
*/
private?JTextArea?getJTextArea()?{
if?(jTextArea?==?null)?{
jTextArea?=?new?JTextArea();
jTextArea.setBounds(new?Rectangle(16,?225,?229,?130));
}
return?jTextArea;
}
public?static?void?main(String?args[]){
new?MyLuRu();
}
}
效果如下圖:
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态