📄 jf_zcxx_lookall.java
字号:
package appgdzc.view;
import javax.swing.*;
import java.awt.*;
import javax.swing.table.DefaultTableModel;
import java.awt.event.*;
public class JF_zcxx_lookall extends javax.swing.JInternalFrame{
BorderLayout borderLayout1 = new BorderLayout();
JScrollPane jScrollPane1 = new JScrollPane();
JTable jTable1 = new JTable();
JPanel jPanel1 = new JPanel();
JButton jButton1 = new JButton();
DefaultTableModel tableModel = new DefaultTableModel();
FlowLayout flowLayout1 = new FlowLayout();
public JF_zcxx_lookall() {
try {
jbInit();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
this.getContentPane().setLayout(borderLayout1);
jButton1.setFont(new java.awt.Font("宋体", 0, 12));
jButton1.setText("关闭");
jButton1.addActionListener(new JF_zcxx_lookall_jButton1_actionAdapter(this));
jPanel1.setDebugGraphicsOptions(0);
jPanel1.setLayout(flowLayout1);
flowLayout1.setAlignment(FlowLayout.RIGHT);
this.setClosable(true);
this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);
this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
jPanel1.add(jButton1, null);
jTable1.setModel(tableModel);
jScrollPane1.getViewport().add(jTable1, null);
setSize(800,300);
setVisible(true);
this.setTitle("资产设备信息浏览");
}
public void setTable(DefaultTableModel tableModel){
jTable1.setModel(tableModel);
}
void jButton1_actionPerformed(ActionEvent e) {
javax.swing.DefaultDesktopManager manger = new DefaultDesktopManager();
manger.closeFrame(this);
}
}
class JF_zcxx_lookall_jButton1_actionAdapter implements java.awt.event.ActionListener {
JF_zcxx_lookall adaptee;
JF_zcxx_lookall_jButton1_actionAdapter(JF_zcxx_lookall adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -