📄 filelistpanel.java
字号:
/* * FileListPanel.java * * Created on 2005年3月11日, 上午11:23 */package com.sinpool.rivercrescent.GUI;import javax.swing.*;/** * * @author sinpool */public class FileListPanel extends javax.swing.JPanel { /** Creates new form FileListPanel */ public FileListPanel() { initComponents(); this.setVisible(true); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() {//GEN-BEGIN:initComponents fileListLabel = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); setLayout(new java.awt.BorderLayout()); setBorder(new javax.swing.border.TitledBorder(null, "\u6587\u4ef6\u5217\u8868", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("宋体", 0, 14))); setPreferredSize(new java.awt.Dimension(500, 400)); fileListLabel.setFont(new java.awt.Font("宋体", 0, 12)); fileListLabel.setForeground(java.awt.Color.blue); fileListLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); fileListLabel.setBorder(new javax.swing.border.TitledBorder(null, "\u4efb\u52a1\u7b80\u4ecb", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("楷体_GB2312", 0, 12))); fileListLabel.setPreferredSize(new java.awt.Dimension(200, 50)); add(fileListLabel, java.awt.BorderLayout.NORTH); jScrollPane1.setFont(new java.awt.Font("宋体", 0, 14)); jTable1.setBackground(java.awt.SystemColor.info); jTable1.setFont(new java.awt.Font("宋体", 0, 12)); jTable1.setForeground(java.awt.SystemColor.controlDkShadow); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null}, {null}, {null}, {null} }, new String [] { "文件列表" } ) { Class[] types = new Class [] { java.lang.String.class }; boolean[] canEdit = new boolean [] { false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jScrollPane1.setViewportView(jTable1); add(jScrollPane1, java.awt.BorderLayout.CENTER); }//GEN-END:initComponents public JTable getPane(){ return jTable1; } public JLabel getLabel(){ return fileListLabel; } // 变量声明 - 不进行修改//GEN-BEGIN:variables private javax.swing.JLabel fileListLabel; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTable jTable1; // 变量声明结束//GEN-END:variables }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -