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

📄 infodialog.java

📁 This serial client in JAVA allows sending, reading and writing of SMS via a serial COM port. The too
💻 JAVA
字号:
// Mobile Access Control: Access Unit Prototype
// (C) 2002, Swisscom Corporate Technology, S. Moscibroda


// Class implementing a information window about the Mobile Access Control project




import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;


public class InfoDialog extends Frame {

 final int HEIGHT = 380;
 final int WIDTH  = 420;
 private Image img;
 private String FilePath = "C:/Serial_SMS/Info.gif";
 private Panel buttonPanel;
 private Panel infoPanel;


 public InfoDialog(){
   super("Project Info");
   addWindowListener(new CloseHandler(this));
   setLayout(new FlowLayout(FlowLayout.CENTER,10,10));
   add(new BitmapComponent(FilePath));
   pack();
   setSize(WIDTH, HEIGHT);
   setResizable(false);
}


    /**
    Handles closing down system. Allows application to be closed with window
    close box.
    */
    class CloseHandler extends WindowAdapter {

	InfoDialog sp;

	public CloseHandler(InfoDialog sp) {
	    this.sp = sp;
	}

	public void windowClosing(WindowEvent e) {
	    sp.setVisible(false);
	}
    }
}

⌨️ 快捷键说明

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