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

📄 pnlshoumimg.java

📁 长沙公交查询管理系统,主要实现对人员资料的管理以及车辆的分配路线。
💻 JAVA
字号:
/*此类是说明面板的界面*/
package pro;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class PnlShoumimg extends JPanel implements ActionListener
{
    //private WordsPanel wp;
    JLabel labFuZhu=new JLabel("欢迎使用长沙公交查询管理系统!****快乐合作小组开发!****欢迎提出宝贵意见!");
    
	JLabel lblShouMing=new JLabel();
	javax.swing.JTextArea txaShouMing=new JTextArea();
	ShouMingFile sm=new ShouMingFile();//new 读文件的对象
	int x=labFuZhu.getWidth();
   public PnlShoumimg()
 	
 	{
 	
   		labFuZhu.setBounds(new Rectangle(0,298,618,50));
   	
	    lblShouMing.setFont(new java.awt.Font("Dialog", Font.BOLD | Font.ITALIC, 18));
	    lblShouMing.setForeground(new Color(0, 210, 46));
	    lblShouMing.setHorizontalAlignment(SwingConstants.CENTER);
	    lblShouMing.setText("长沙公交车查询方法说明");
	    lblShouMing.setHorizontalAlignment(SwingConstants.CENTER);
	    lblShouMing.setBounds(new Rectangle(0, 80, 620, 18));
	    txaShouMing.setEditable(false);
         //txaShouMing.setBorder(BorderFactory.createEtchedBorder());/**/
	    txaShouMing.setBounds(1,108,618,199);
	    txaShouMing.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
	    txaShouMing.setForeground(new Color(0, 210, 46));
	    String str=sm.wenJian();
	    txaShouMing.setLineWrap(true);
	    txaShouMing.setText(str);
	    txaShouMing.setBackground(UIManager.getColor("CheckBox.Background"));
	    
 
		        /*跑马灯的面板*/
	    //wp=new WordsPanel("欢迎使用",618,50);
	    //wp.setBorder(BorderFactory.createEtchedBorder());
	   // wp.setBounds(new Rectangle(1,298,618,50));
	    //p.letWordsGo();
//	        pnlShouMing.setBorder(BorderFactory.createLineBorder(Color.black));
    this.setBounds(new Rectangle(0, 170, 620, 349));
    this.setLayout(null);
    this.add(lblShouMing);
    this.add(txaShouMing);
    this.add(labFuZhu);
    javax.swing.Timer t=new Timer(100,this);
    t.start();
    
   }
   public void	actionPerformed(ActionEvent ae)
   {
   	     if(x>0){
     		x-=10;		
     	}
     	if(x==0){
     		x=this.getWidth();
     	}
     	this.labFuZhu.setBounds(x,298,618,50);
   } 

}

⌨️ 快捷键说明

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