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

📄 errorprocess.java

📁 主要为一个空间信息管理系统
💻 JAVA
字号:
package edu.whu.poly;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;
import edu.whu.database.ConnectionPooling;
import java.sql.*;
import edu.whu.gui.*;
import javax.swing.table.*;


/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class errorProcess
{
  String errorText="系统错误";
  public errorProcess(String error)
  {
    errorText=error;
  }
  public void errorFrameshow(Dialog frame)
  {
    D_Error error = new D_Error(frame, "3", false,errorText);
    error.setSize(400, 180);
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = error.getSize();
    if (frameSize.height > screenSize.height)
    {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width)
    {
      frameSize.width = screenSize.width;
    }

    error.setLocation( (screenSize.width - frameSize.width) / 2,
                         (screenSize.height - frameSize.height) / 2);

    error.setVisible(true);

  }
}

⌨️ 快捷键说明

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