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

📄 xiaoxi.java

📁 同学编写的文件共享系统,内附使用说明,包含java大多数知识,适合初学者结合课本进行实践
💻 JAVA
字号:
/*
 * Created on 2005-9-8
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package client;
import java.awt.*;
import java.awt.event.*;
/**
 * @author 09003112小组
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class xiaoxi extends Frame{
	
Frame xiao=new Frame ("用户消息");
 public Label lab=new Label();

public xiaoxi(String s){
	xiao.setBounds(350,200,400,100);
	xiao.setLayout(null);
	xiao.setBackground(Color.WHITE);
    lab.setText(s);
    lab.setBounds(20,40,360,20);
    xiao.add(lab);
    xiao.addWindowListener
	(new WindowAdapter()
		{public void windowClosing
	(WindowEvent e)
		{xiao.dispose();}});
    xiao.setVisible(true);
}
public xiaoxi(String s,int x,int y){
	xiao.setBounds(x,y,400,100);
	xiao.setLayout(null);
	xiao.setBackground(Color.WHITE);
    lab.setText(s);
    lab.setBounds(20,40,360,20);
    xiao.add(lab);
    xiao.addWindowListener
	(new WindowAdapter()
		{public void windowClosing
	(WindowEvent e)
		{xiao.dispose();}});
    xiao.setVisible(true);
}
}

⌨️ 快捷键说明

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