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

📄 alertframe.java

📁 The source code for this package is located in src/gov/nist/sip/proxy. The proxy is a pure JAIN-SIP
💻 JAVA
字号:
/* * AlertFrame.java * * Created on April 10, 2002, 12:11 PM */package gov.nist.sip.proxy.gui;import javax.swing.*;import javax.swing.border.*;import java.awt.*;import java.awt.event.*;/** * * @author  deruelle * @version 1.0 */public class AlertFrame extends JOptionPane {    public String finalInputValue;      /** Creates new AlertFrame */    public AlertFrame(String text,int messageType) {        super("Alert");        if (messageType==JOptionPane.ERROR_MESSAGE)            showMessageDialog(this,text,"Error",messageType);        else        if (messageType==JOptionPane.WARNING_MESSAGE)            showMessageDialog(this,text,"Warning",messageType);        else  showMessageDialog(this,"Unknown alert message");            }         /** Creates new AlertFrame */    public AlertFrame(String text,int messageType,String initialInputValue) {        super("Alert");        finalInputValue=null;        if (messageType==JOptionPane.ERROR_MESSAGE)            showMessageDialog(this,text,"Error",messageType);        else        if (messageType==JOptionPane.WARNING_MESSAGE)            showMessageDialog(this,text,"Warning",messageType);        else            if (messageType==JOptionPane.INFORMATION_MESSAGE) {                finalInputValue=(String)showInputDialog(this,text,"Information",messageType,                null,null,initialInputValue);            }        else  showMessageDialog(this,"Unknown alert message");            }         /** Creates new AlertFrame */    public AlertFrame(String text) {        super("Alert");        // information message by default        showMessageDialog(this,text);    }   }                   

⌨️ 快捷键说明

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