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

📄 helpgui.java

📁 JAVA聊天室 即使通讯
💻 JAVA
字号:
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;
import javax.swing.text.*;
import javax.swing.event.*;

public class HelpGUI extends JFrame implements ActionListener
 {
 	
 	
 	
 	JButton ten ;
 	
   public HelpGUI()
     {
     	super("小布点聊天室----帮助中心");
     	Container c = this.getContentPane();
		JPanel p = new JPanel();
		GridBagLayout gb = new GridBagLayout();
		GridBagConstraints gbc = new GridBagConstraints();
		p.setLayout(gb);
		c.add(p);
		
		
		JLabel one = new JLabel("       欢 迎 使 用 小 布 点 聊 天 室 帮 助 中 心       ");
		JLabel two = new JLabel("  本软件操作流程如下:  ");
		JLabel three = new JLabel(" 一:使用本软件的新用户必须先注册一个用户名。");
        JLabel four = new JLabel (" 二:新用户在登录框内写入正确的用户名和密码即可进行在线聊天。");
		JLabel five = new JLabel (" 三:因为本软件是采用局域网进行上线聊天,因此新用户必须填写正确的 IP 号。");
		JLabel six = new JLabel  (" 四:新用户在填写(注册)时必须完整填写所有需要填写的内容,这便于用户以后的永久使用!!。 ");
		JLabel seven = new JLabel("          非常感谢您使用小布聊天软件!!");
		JLabel eight = new JLabel(" 小布点聊天室开发小组 ");
		JLabel nine = new JLabel("        2008年3月24日 编");
		ten = new JButton(" 确 定 ");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
//		JLabel one = new JLabel("");
		
		
		Font f  = new Font("黑体",Font.BOLD+Font.ROMAN_BASELINE,20);
      	Font f1 = new Font("黑体",Font.BOLD+Font.TRUETYPE_FONT,17);
		one.setFont(f);
		two.setFont(f1);
		three.setFont(f1);
		four.setFont(f1);
		five.setFont(f1);
		six.setFont(f1);
		seven.setFont(f1);
		eight.setFont(f1);
		nine.setFont(f1);
		
		one.setForeground(Color.RED);
		two.setForeground(Color.blue);
		three.setForeground(Color.blue);
		four.setForeground(Color.blue);
		five.setForeground(Color.blue);
		six.setForeground(Color.blue);
		seven.setForeground(Color.RED);
		eight.setForeground(Color.black);
		nine.setForeground(Color.black);
		one.setForeground(Color.black);
		p.setBackground(Color.yellow);
		
		
	   Icon i  = new ImageIcon("xcbj4-013.gif");  
       Icon ii = new ImageIcon("xcbj4-013.gif"); 
	   JLabel llblTop02 = new JLabel(i);
       JLabel llblTop   = new JLabel(ii);
       llblTop.setIcon(i);
       llblTop02.setIcon(ii); 
		
		
		gbc.gridx = 0;
		gbc.gridy = 0;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(llblTop02,gbc);
    	p.add(llblTop02,gbc);
		
		gbc.gridx = 0;
		gbc.gridy = 1;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.NORTHEAST;
		gb.setConstraints(llblTop,gbc);
    	p.add(llblTop,gbc);
		
		
		
		
		
		gbc.gridx = 0;
		gbc.gridy = 0;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.NORTH;
		gb.setConstraints(one,gbc);
    	p.add(one,gbc);
    	
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 1;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(two,gbc);
    	p.add(two,gbc);
    	
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 3;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(three,gbc);
    	p.add(three,gbc);
    	
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 4;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(four,gbc);
    	p.add(four,gbc);
    	
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 5;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(five,gbc);
    	p.add(five,gbc);
    	
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 6;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(six,gbc);
    	p.add(six,gbc);
    	
    	
    	gbc.gridx = 0;
		gbc.gridy = 7;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.WEST;
		gb.setConstraints(seven,gbc);
    	p.add(seven,gbc);
    	
    	
		
		
		
		gbc.gridx = 0;
		gbc.gridy = 8;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.SOUTHEAST;
		gb.setConstraints(eight,gbc);
    	p.add(eight,gbc);
    	
		
		
		
		gbc.gridx = 0;
		gbc.gridy = 9;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.SOUTHEAST;
		gb.setConstraints(nine,gbc);
    	p.add(nine,gbc);
		
		gbc.gridx = 0;
		gbc.gridy = 10;
		gbc.gridwidth = 1;
		gbc.gridheight = 1;
		gbc.anchor = GridBagConstraints.CENTER;
		gb.setConstraints(ten,gbc);
    	p.add(ten,gbc);
		
	  
	  ten.addActionListener(this);
		
		
		//this.setResizable(false);
		this.setSize(950,600);
		//this.pack();
		this.setVisible(true);
		
		
			
		
		
		
     }
     
     public void actionPerformed(ActionEvent e)
          {
     	   
     	   
     	    JButton obj= (JButton)e.getSource();
     	 
     	    
            if(e.getSource() == ten)
     	    {
//     	       
//      	       new chatGUI();
					this.dispose();
      	       
     	    }
	
	
          }	
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
     public static void main(String[] args)
	{
		new HelpGUI();  
	
    } 
}      
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⌨️ 快捷键说明

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