📄 qq.java
字号:
import sun.audio.*;
import java.io.*;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class qq extends JFrame {
private JLabel jLabel1;
private JButton jButton1;
private JLabel jLabel2;
private JLabel jLabel3;
private JDesktopPane jDesktopPane1;
private JTextField jTextField1;
public qq(){
this.setVisible(true);
this.setSize(320, 205);
this.setLayout(null);
this.setTitle("QQ \u5f3a\u5236\u804a\u5929\u5668 v1.1");
{
jLabel1 = new JLabel();
getContentPane().add(jLabel1);
jLabel1.setText("\u5bf9\u65b9QQ\u53f7");
jLabel1.setBounds(10, 107, 68, 18);
}
{
jTextField1 = new JTextField();
getContentPane().add(jTextField1);
jTextField1.setBounds(82, 105, 117, 20);
}
{
jButton1 = new JButton();
getContentPane().add(jButton1);
jButton1.setText("\u5f3a\u5236\u804a\u5929");
jButton1.setBounds(211, 103, 91, 23);
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String qq=jTextField1.getText();
try{
Runtime rt=Runtime.getRuntime();
rt.exec("rundll32 url.dll ,FileProtocolHandler tencent://message/?uin="+qq+"&Site=im.qq.com&Menu=yes");
}catch(Exception ex){
ex.printStackTrace();
}
}
});
}
{
jLabel2 = new JLabel();
getContentPane().add(jLabel2);
jLabel2.setText("\u5236\u4f5c:\u72ec\u5b64\u6c42\u8d25[\u4e2d\u56fd\u8c03\u7528\u95e8\u5b89\u5168\u5c0f\u7ec4] QQ:329057584");
jLabel2.setBounds(10, 136, 302, 26);
}
{
jDesktopPane1 = new JDesktopPane();
getContentPane().add(jDesktopPane1);
jDesktopPane1.setBounds(0, 0, 312, 87);
jDesktopPane1.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
jDesktopPane1.setAutoscrolls(true);
jDesktopPane1.setDoubleBuffered(true);
{
jLabel3 = new JLabel();
jDesktopPane1.add(getJLabel3());
jLabel3.setText("jLabel3");
jLabel3.setIcon(new ImageIcon(getClass().getClassLoader().getResource("head.gif")));
jLabel3.setBounds(2, 2, 308, 83);
}
}
}
public static void main(String[] args)
{
new qq();
try{
InputStream in = new FileInputStream("qq.wav");
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
}catch(FileNotFoundException e){
}
catch(IOException e){
}
}
public JLabel getJLabel3() {
return jLabel3;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -