📄 starsinforformpanel.java
字号:
/* * StarsButtonTablePanel.java * * Created on January 13, 2002, 7:13 PM */package org.impact.stars.appclient.common;/** * * @author cai * @version */public class StarsInforFormPanel extends javax.swing.JPanel { /** Creates new StarsButtonTablePanel */ public StarsInforFormPanel() { initComponents(); } private void initComponents() { tableScrollPane = new javax.swing.JScrollPane(); tableScrollPane.setViewportView(getInforTablePanel()); tablelowPanel = new javax.swing.JPanel(); tableaddButton = new javax.swing.JButton(); setLayout(new java.awt.BorderLayout()); add(tableScrollPane, java.awt.BorderLayout.CENTER); tableaddButton.setText("Add New"); tableaddButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tableaddButton1ActionPerformed(evt); } }); tablelowPanel.add(tableaddButton); tableremoveButton.setText("Remove"); tableremoveButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tableremoveButton1ActionPerformed(evt); } }); tablelowPanel.add(tableremoveButton); add(tablelowPanel, java.awt.BorderLayout.SOUTH); } private StarsInforTablePanel getInforTablePanel() { tableInforPanel = new StarsInforTablePanel(); return tableInforPanel; }public void tableremoveButton1ActionPerformed(java.awt.event.ActionEvent evt) { getTableInforPanel().removeQuestionRow(); } public void tableaddButton1ActionPerformed(java.awt.event.ActionEvent evt) { getTableInforPanel().addQuestionRow(); tableScrollPane.setViewportView(getTableInforPanel()); } public StarsInforTablePanel getTableInforPanel() { if (tableInforPanel==null) { tableInforPanel = new StarsInforTablePanel(); } return tableInforPanel; } private javax.swing.JScrollPane tableScrollPane; private javax.swing.JPanel tablelowPanel; private StarsInforTablePanel tableInforPanel; private javax.swing.JButton tableaddButton = new javax.swing.JButton(); private javax.swing.JButton tableremoveButton = new javax.swing.JButton(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -