Java ѧÉú¹ÜÀíϵͳ´úÂë
//³õѧJAVA ¿ª·¢ÁËÒ»¸ö ѧÉú¹ÜÀí³ÌÐò£¬ÄóöÀ´É¹É¹£¬ÒÔ±ã´ó¼Ò²Î¿¼»òÆÀÂÛ Ö¸³ö²»×ãÖ®´¦£¡Ð»Ð» ÓÉÓÚ´Ë´¦²»ÄÜÉÏ´«ÕÕƬ£¬¹Ê·ÅÔÚÎÒµÄÏà
//²áÀïÃæ
//Õâ¸öµÇÈë½çÃæµÄ³ÌÐò£º
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.*;
import java.util.jar.JarFile;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
public class Denglujiemian extends Frame implements ActionListener {
JLabel JLUserName = new JLabel("Óû§Ãû£º");
JLabel JLPaw = new JLabel("ÃÜÂë");
JTextField JTUserName = new JTextField();
JPasswordField JPsw= new JPasswordField();
JButton JB1 = new JButton("µÇÈë");
JButton JB2 = new JButton("È¡Ïû");
JLabel JL1 = new JLabel("Éí·Ý");
JComboBox JC = new JComboBox();
public Denglujiemian(){
this.setTitle("ѧÉúÐÅÏ¢¹ÜÀíϵͳ");
this.setLayout(null);
JLUserName.setBounds(100,40,100,20);
this.add(JLUserName);
JTUserName.setBounds(200, 40, 80, 20);
this.add(JTUserName);
JLPaw.setBounds(100, 100, 60, 20);
this.add(JLPaw);
JPsw.setBounds(200, 100, 80, 20);
this.add(JPsw);
JL1.setBounds(100, 150, 60, 20);
this.add(JL1);
JC.setBounds(200, 150, 80, 20);
this.add(JC);
JC.addItem(new String("ѧÉú"));
JC.addItem(new String("ÀÏʦ"));
JB1.setBounds(100, 200, 60, 20);
this.add(JB1);
JB1.addActionListener(this);
JB2.setBounds(200, 200, 60, 20);
this.add(JB2);
JB2.addActionListener(this);
this.setVisible(true);
this.setBounds(400, 250, 400, 250);
&n
Ïà¹ØÎĵµ£º
ÏÖÔÚµÄÎÒ°¡£¬»¹ÊǸöѧÉú£¬¸Õ¸ÕѧÁ˵ãVB£¬¶¯×÷×î´óÒ²¾ÍÊÇÓÃVB±àдÁËÒ»¸ö¼ÆËã½×³ËµÄ¹¤¾ß£¬Ëµ³öÀ´ÕæÊÇÈø÷λ¿´¹ÙЦµô´óÑÀ……µ«ÊÇÎÒͻȻÓÐÖÖÏë·¨£¬ÏëѧJava£¬±¾ÈËרҵÊÇͨÐŹ¤³Ì£¬¾õµÃÒƶ¯Í¨ÐÅ»áÓÐÏ൱´óµÄǰ;£¬ÓÚÊÇÃÈÉúÁËÕâ¸öÏë·¨£¡¸÷λ¿´¹Ù±ðЦ»°ÎÒ£¬ÄÜÌá°ÎµÄÌá°Îµã£¬²»ÄÜÌá°ÎµÄ¸øµã¹ÄÀø£¡ÔÚÏÂл¹ý¸÷λÁË£¡ ......
Java²»ÊÇÍêÃÀµÄ£¬JavaµÄ²»×ã³ýÁËÌåÏÖÔÚÔËÐÐËÙ¶ÈÉÏÒª±È´«Í³µÄC++ÂýÐí¶àÖ®Í⣬JavaÎÞ·¨Ö±½Ó·ÃÎʵ½²Ù×÷ϵͳµ×²ã£¨ÈçϵͳӲ¼þµÈ)£¬Îª´ËJavaʹÓÃnative·½·¨À´À©Õ¹Java³ÌÐòµÄ¹¦ÄÜ¡£
¡¡¡¡¿ÉÒÔ½«native·½·¨±È×÷Java³ÌÐòͬ£Ã³ÌÐòµÄ½Ó¿Ú£¬ÆäʵÏÖ²½Ö裺
¡¡¡¡£±¡¢ÔÚJavaÖÐÉùÃ÷native()·½·¨£¬È»ºó±àÒ룻
¡¡¡¡£²¡¢ÓÃjavah²úÉúÒ»¸ö.hÎ ......
thisµÄÓ÷¨ÔÚjavaÖдóÌå¿ÉÒÔ·ÖΪ3ÖÖ£º
//1.ÆÕͨµÄÖ±½ÓÒýÓÃ
class test {
private int x,y;
public test(int x,int y) {
setX(x);//Ò²¿ÉÒÔдΪthis.setX(x);ÕâÖÖÇé¿öÏÂthis¿ÉÒÔÊ¡ÂÔ.
}
}
//2.·½·¨ÖеÄij¸öÐβÎÃûÓ뵱ǰ¶ÔÏóµÄÄ ......
public static void main(String[] args)
{
Integer[] arrInt = new Integer[6];
arrInt[0] = 123;
arrInt[1] = 3453;
arrInt[2] = 345;
arrInt[3] = 23;
arrInt[4] = 11;
arrInt[5] = 345;
int temp = 0;
for (int i ......
Java´®¿ÚͨѶ
´®ÐÐͨѶÐÒéÓкܶàÖÖ£¬ÏñRS232£¬RS485£¬RS422£¬ÉõÖÁÏÖ½ñÁ÷ÐеÄUSBµÈ¶¼ÊÇ´®ÐÐͨѶÐÒé¡£¶ø´®ÐÐͨѶ¼¼ÊõµÄÓ¦ÓÃÎÞ´¦²»ÔÚ¡£¿ÉÄÜ´ó¼Ò¼ûµÄ×î¶à¾ÍÊǵçÄԵĴ®¿ÚÓëModemµÄͨѶ¡£¼ÇµÃÔÚPC»ú¸Õ¿ªÊ¼ÔÚÖйúÁ÷ÐÐÆðÀ´Ê±(´óÔ¼ÊÇÔÚ90Äê´úÇ°ÎåÄê)£¬ÄÇʱÉõÖÁÓÐÈËÓÃÒ»Ìõ´®ÐÐÏß½øÐÐÁ½Ì¨µçÄÔÖ®¼äµÄ ......