📄 roominfoframe.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.redingsoft.setroomframe;import com.redingsoft.locationutil.LocationUtil;import javax.swing.*;/** * * @author Administrator */public class RoominfoFrame extends JDialog { //声明标签面板 JTabbedPane JTP; //声明添加房间面板 JPanel addroom=new AddroomPanel(); //声明删除信息面板 JPanel delroom=new DelroomPanel(); //查看房间信息// JPanel checkroom=new JPanel(); //构造函数 public RoominfoFrame(){ //实例化标签 JTP=new JTabbedPane(); JTP.add(delroom,"删除和查看房间信息"); JTP.add(addroom,"添加房间信息"); // JTP.add(checkroom,"查看房间信息"); this.add(JTP); this.setBounds(0, 0, 600, 500); this.setResizable(false); this.setDefaultCloseOperation(RoominfoFrame.DISPOSE_ON_CLOSE); LocationUtil.setLocation(this); } /* public static void main(String[] args){ new RoominfoFrame(); } */}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -