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

📄 windowframep.java~2~

📁 银行管理系统,根据实习的要求以及参考现实中的银行数据库系统
💻 JAVA~2~
字号:
package bank;

import java.awt.*;
import javax.swing.JFrame;
import javax.swing.JDialog;

public class WindowFrameP {
  public WindowFrameP() {
    GraphicsEnvironment environment =
            GraphicsEnvironment.getLocalGraphicsEnvironment();
        device = environment.getDefaultScreenDevice();

  }
    private GraphicsDevice device;
    public void setFullScreen(DisplayMode displayMode,
        JFrame window)
    {
      window.setUndecorated(true);
      window.setResizable(false);

      device.setFullScreenWindow(window);
      if (displayMode != null &&
          device.isDisplayChangeSupported()) {
        try {
          device.setDisplayMode(displayMode);
        }
        catch (IllegalArgumentException ex) {
          // ignore - illegal mode for this device
        }
      }
    }

    /**
        Returns the window currently used in full screen mode.
    */
    public Window getFullScreenWindow() {
        return device.getFullScreenWindow();
    }
    /**
        Restores the screen's display mode.
    */
    public void restoreScreen() {
        Window window = device.getFullScreenWindow();
        if (window != null) {
            window.dispose();
        }
        device.setFullScreenWindow(null);
    }

}

⌨️ 快捷键说明

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