📄 viewticketjpanel.java
字号:
/* * ViewTicketJPanel.java * * Created on 2009年1月11日, 下午1:23 */package passengertransportmis;import org.jdesktop.application.Action;import java.util.Date;/** * * @author Degree41 */public class ViewTicketJPanel extends javax.swing.JPanel { /** Creates new form ViewTicketJPanel */ public ViewTicketJPanel() { initComponents(); } @Action public void view(Date beginDate,Date endDate) { } /** 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. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { ticketTypeComboBox = new javax.swing.JComboBox(); beginDateSpinner = new javax.swing.JSpinner(); endDateSpinner = new javax.swing.JSpinner(); jLabel1 = new javax.swing.JLabel(); viewButton = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); ticketInfoTextArea = new javax.swing.JTextArea(); setName("Form"); // NOI18N ticketTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Sell", "Return" })); ticketTypeComboBox.setName("ticketTypeComboBox"); // NOI18N beginDateSpinner.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(), new java.util.Date(1199165280000L), null, java.util.Calendar.DAY_OF_YEAR)); beginDateSpinner.setName("beginDateSpinner"); // NOI18N endDateSpinner.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(), null, null, java.util.Calendar.DAY_OF_YEAR)); endDateSpinner.setName("endDateSpinner"); // NOI18N org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(passengertransportmis.PassengerTransportMISApp.class).getContext().getResourceMap(ViewTicketJPanel.class); jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N jLabel1.setName("jLabel1"); // NOI18N javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(passengertransportmis.PassengerTransportMISApp.class).getContext().getActionMap(ViewTicketJPanel.class, this); viewButton.setAction(actionMap.get("view")); // NOI18N viewButton.setText(resourceMap.getString("viewButton.text")); // NOI18N viewButton.setName("viewButton"); // NOI18N jScrollPane1.setName("jScrollPane1"); // NOI18N ticketInfoTextArea.setColumns(20); ticketInfoTextArea.setRows(5); ticketInfoTextArea.setText(resourceMap.getString("ticketInfoTextArea.text")); // NOI18N ticketInfoTextArea.setEnabled(false); ticketInfoTextArea.setName("ticketInfoTextArea"); // NOI18N jScrollPane1.setViewportView(ticketInfoTextArea); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(ticketTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(362, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(beginDateSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel1) .addGap(18, 18, 18) .addComponent(endDateSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(viewButton) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE) .addGap(18, 18, 18)))) ); layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {beginDateSpinner, endDateSpinner}); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(ticketTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(beginDateSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1) .addComponent(endDateSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(viewButton)) .addGap(18, 18, 18) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE) .addGap(33, 33, 33)) ); layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {beginDateSpinner, endDateSpinner, jLabel1, viewButton}); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JSpinner beginDateSpinner; private javax.swing.JSpinner endDateSpinner; private javax.swing.JLabel jLabel1; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTextArea ticketInfoTextArea; private javax.swing.JComboBox ticketTypeComboBox; private javax.swing.JButton viewButton; // End of variables declaration//GEN-END:variables public javax.swing.JComboBox getTicketTypeComboBox() { return ticketTypeComboBox; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -