List of usage examples for javax.swing GroupLayout linkSize
public void linkSize(int axis, Component... components)
From source file:org.yccheok.jstock.gui.NewBuyTransactionJDialog.java
/** This method is called from within the constructor to * initialize the form./* www .j a va 2 s . c o m*/ * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jComboBox1 = new AutoCompleteJComboBox(); jPanel2 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jSpinner1 = new javax.swing.JSpinner(); jPanel3 = CalendarFactory.createDateField(); jLabel4 = new javax.swing.JLabel(); jFormattedTextField1 = getCurrencyJFormattedTextField(); jFormattedTextField2 = getCurrencyJFormattedTextField(); jFormattedTextField3 = getCurrencyJFormattedTextField(); jFormattedTextField4 = getCurrencyJFormattedTextField(); jFormattedTextField5 = getCurrencyJFormattedTextField(); jLabel10 = new javax.swing.JLabel(); jFormattedTextField6 = getCurrencyJFormattedTextField(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jComboBox2 = new javax.swing.JComboBox<>(); jPanel4 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jComboBox1.setEditable(true); jComboBox1.setPreferredSize(new java.awt.Dimension(110, 24)); ((AutoCompleteJComboBox) jComboBox1).attachStockInfoObserver(this.getStockInfoObserver()); ((AutoCompleteJComboBox) jComboBox1).attachDispObserver(this.getDispObserver()); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N setTitle(bundle.getString("NewBuyTransactionJDialog_Buy")); // NOI18N setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } }); jPanel2.setBorder(javax.swing.BorderFactory .createTitledBorder(bundle.getString("NewBuyTransactionJDialog_Transaction"))); // NOI18N jLabel2.setText(bundle.getString("NewSellTransactionJDialog_Symbol")); // NOI18N jSpinner1.setModel(new javax.swing.SpinnerNumberModel(100.0d, 0.001d, null, 100.0d)); JSpinner.NumberEditor numberEditor = (JSpinner.NumberEditor) jSpinner1.getEditor(); final DecimalFormat decimalFormat = numberEditor.getFormat(); decimalFormat.setMaximumFractionDigits(4); numberEditor.getTextField().addMouseListener(getJFormattedTextFieldMouseListener()); jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinner1StateChanged(evt); } }); jPanel3.setBackground(new java.awt.Color(204, 255, 255)); jPanel3.setMaximumSize(new java.awt.Dimension(32767, 20)); jPanel3.setPreferredSize(new java.awt.Dimension(100, 20)); jLabel4.setText(bundle.getString("NewBuyTransactionJDialog_Date")); // NOI18N jFormattedTextField1.setValue(new Double(0.0)); jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField1KeyTyped(evt); } }); jFormattedTextField2.setEditable(false); jFormattedTextField2.setValue(new Double(0.0)); jFormattedTextField3.setValue(new Double(0.0)); jFormattedTextField3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField3KeyTyped(evt); } }); jFormattedTextField4.setValue(new Double(0.0)); jFormattedTextField4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField4KeyTyped(evt); } }); jFormattedTextField5.setValue(new Double(0.0)); jFormattedTextField5.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField5KeyTyped(evt); } }); jLabel10.setFont(jLabel10.getFont().deriveFont(jLabel10.getFont().getStyle() | java.awt.Font.BOLD)); jLabel10.setText(bundle.getString("NewBuyTransactionJDialog_NetValue")); // NOI18N jFormattedTextField6.setEditable(false); jFormattedTextField6.setFont(jFormattedTextField6.getFont() .deriveFont(jFormattedTextField6.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField6.setValue(new Double(0.0)); jLabel1.setText(bundle.getString("NewBuyTransactionJDialog_Unit")); // NOI18N jLabel3.setText(bundle.getString("NewBuyTransactionJDialog_Price")); // NOI18N jLabel5.setText(bundle.getString("NewBuyTransactionJDialog_Value")); // NOI18N jLabel7.setText(bundle.getString("NewBuyTransactionJDialog_Broker")); // NOI18N jLabel8.setText(bundle.getString("NewBuyTransactionJDialog_Clearing")); // NOI18N jLabel9.setText(bundle.getString("NewBuyTransactionJDialog_StampDuty")); // NOI18N jLabel11.setText(bundle.getString("NewBuyTransactionJDialog_Code")); // NOI18N jTextField2.setEditable(false); jComboBox2.setModel( new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11).addComponent(jLabel2).addComponent(jLabel4) .addComponent(jLabel1).addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE))) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9).addComponent(jLabel7).addComponent(jLabel8) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel2Layout.createSequentialGroup().addComponent(jLabel10) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE))) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jPanel3, jSpinner1, jTextField1 }); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel1, jLabel10, jLabel11, jLabel2, jLabel3, jLabel4, jLabel5, jLabel7, jLabel8, jLabel9 }); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGap(14, 14, 14) .addComponent(jLabel9)) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jPanel3, jSpinner1, jTextField1 }); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N jButton1.setText(bundle.getString("NewBuyTransactionJDialog_OK")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel4.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N jButton2.setText(bundle.getString("NewBuyTransactionJDialog_Cancel")); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel4.add(jButton2); getContentPane().add(jPanel4, java.awt.BorderLayout.SOUTH); jPanel1.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("NewBuyTransactionJDialog_Stock"))); // NOI18N jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 15, 5)); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/inbox.png"))); // NOI18N jPanel1.add(jLabel6); getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); pack(); }
From source file:org.yccheok.jstock.gui.NewSellTransactionJDialog.java
private void initComponentsWithoutBrokerageFirm() { jPanel2 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jSpinner1 = new javax.swing.JSpinner(); jPanel3 = CalendarFactory.createDateField(); jLabel4 = new javax.swing.JLabel(); jFormattedTextField1 = getCurrencyJFormattedTextField(false); jFormattedTextField2 = getCurrencyJFormattedTextField(false); jFormattedTextField3 = getCurrencyJFormattedTextField(false); jFormattedTextField4 = getCurrencyJFormattedTextField(false); jFormattedTextField5 = getCurrencyJFormattedTextField(false); jLabel10 = new javax.swing.JLabel(); jFormattedTextField6 = getPercentageJFormattedTextField(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jFormattedTextField7 = getCurrencyJFormattedTextField(false); jLabel11 = new javax.swing.JLabel(); jFormattedTextField8 = getCurrencyJFormattedTextField(true); jLabel12 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N setTitle(bundle.getString("NewSellTransactionJDialog_Sell")); // NOI18N setResizable(false);/*from ww w.ja va 2s . c om*/ jPanel2.setBorder(javax.swing.BorderFactory .createTitledBorder(bundle.getString("NewSellTransactionJDialog_Transaction"))); // NOI18N jTextField1.setEditable(false); jLabel2.setText(bundle.getString("NewBuyTransactionJDialog_Symbol")); // NOI18N jSpinner1.setModel(new javax.swing.SpinnerNumberModel(100.0d, 0.001d, null, 100.0d)); JSpinner.NumberEditor numberEditor = (JSpinner.NumberEditor) jSpinner1.getEditor(); final DecimalFormat decimalFormat = numberEditor.getFormat(); decimalFormat.setMaximumFractionDigits(4); numberEditor.getTextField().addMouseListener(getJFormattedTextFieldMouseListener()); jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinner1StateChanged(evt); } }); jPanel3.setBackground(new java.awt.Color(204, 255, 255)); jPanel3.setMaximumSize(new java.awt.Dimension(32767, 20)); jPanel3.setPreferredSize(new java.awt.Dimension(100, 20)); jLabel4.setText(bundle.getString("NewBuyTransactionJDialog_Date")); // NOI18N jFormattedTextField1.setValue(new Double(0.0)); jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField1KeyTyped(evt); } }); jFormattedTextField2.setEditable(false); jFormattedTextField2.setValue(new Double(0.0)); jFormattedTextField3.setEditable(false); jFormattedTextField3.setValue(new Double(0.0)); jFormattedTextField4.setValue(new Double(0.0)); jFormattedTextField4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField4KeyTyped(evt); } }); jFormattedTextField5.setValue(new Double(0.0)); jFormattedTextField5.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField5KeyTyped(evt); } }); jLabel10.setFont(jLabel10.getFont().deriveFont(jLabel10.getFont().getStyle() | java.awt.Font.BOLD)); jLabel10.setText(bundle.getString("NewSellTransactionJDialog_Profit%")); // NOI18N jFormattedTextField6.setEditable(false); jFormattedTextField6.setFont(jFormattedTextField6.getFont() .deriveFont(jFormattedTextField6.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField6.setValue(new Double(0.0)); jLabel1.setText(bundle.getString("NewSellTransactionJDialog_Unit")); // NOI18N jLabel3.setText(bundle.getString("NewSellTransactionJDialog_Price")); // NOI18N jLabel5.setText(bundle.getString("NewSellTransactionJDialog_Value")); // NOI18N jLabel7.setText(bundle.getString("NewSellTransactionJDialog_BuyCost")); // NOI18N jLabel8.setText(bundle.getString("NewSellTransactionJDialog_Broker")); // NOI18N jLabel9.setText(bundle.getString("NewSellTransactionJDialog_Clearing")); // NOI18N jFormattedTextField7.setValue(new Double(0.0)); jFormattedTextField7.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField7KeyTyped(evt); } }); jLabel11.setText(bundle.getString("NewSellTransactionJDialog_StampDuty")); // NOI18N jFormattedTextField8.setEditable(false); jFormattedTextField8.setFont(jFormattedTextField8.getFont() .deriveFont(jFormattedTextField8.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField8.setValue(new Double(0.0)); jLabel12.setFont(jLabel12.getFont().deriveFont(jLabel12.getFont().getStyle() | java.awt.Font.BOLD)); jLabel12.setText(bundle.getString("NewSellTransactionJDialog_Profit$")); // NOI18N javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel9) .addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel5).addComponent(jLabel7) .addComponent(jLabel8).addComponent(jLabel1).addComponent(jLabel4).addComponent(jLabel11) .addComponent(jLabel12).addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) .addComponent(jFormattedTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jFormattedTextField7, jFormattedTextField8, jPanel3, jSpinner1, jTextField1 }); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel1, jLabel10, jLabel11, jLabel12, jLabel2, jLabel3, jLabel4, jLabel5, jLabel7, jLabel8, jLabel9 }); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGap(14, 14, 14) .addComponent(jLabel9)) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jFormattedTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jFormattedTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jPanel3, jSpinner1, jTextField1 }); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N jButton1.setText(bundle.getString("NewSellTransactionJDialog_OK")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel4.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N jButton2.setText(bundle.getString("NewSellTransactionJDialog_Cancel")); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel4.add(jButton2); getContentPane().add(jPanel4, java.awt.BorderLayout.SOUTH); jPanel1.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("NewSellTransactionJDialog_Stock"))); // NOI18N jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 15, 5)); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/outbox.png"))); // NOI18N jPanel1.add(jLabel6); jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/idea.png"))); // NOI18N jButton3.setText(bundle.getString("NewSellTransactionJDialog_BestPrice")); // NOI18N jButton3.setToolTipText("Suggest the best selling price to break even."); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jPanel1.add(jButton3); getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); pack(); }
From source file:org.yccheok.jstock.gui.NewSellTransactionJDialog.java
private void initComponentsWithFeeCalculationDisabled() { jPanel2 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jSpinner1 = new javax.swing.JSpinner(); jPanel3 = CalendarFactory.createDateField(); jLabel4 = new javax.swing.JLabel(); jFormattedTextField1 = getCurrencyJFormattedTextField(false); jFormattedTextField2 = getCurrencyJFormattedTextField(false); jFormattedTextField3 = getCurrencyJFormattedTextField(false); jFormattedTextField4 = getCurrencyJFormattedTextField(false); jFormattedTextField5 = getCurrencyJFormattedTextField(false); jFormattedTextField7 = getCurrencyJFormattedTextField(false); jFormattedTextField4.setValue(new Double(0.0)); jFormattedTextField5.setValue(new Double(0.0)); jFormattedTextField7.setValue(new Double(0.0)); jLabel10 = new javax.swing.JLabel(); jFormattedTextField6 = getPercentageJFormattedTextField(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jFormattedTextField8 = getCurrencyJFormattedTextField(true); jLabel12 = new javax.swing.JLabel(); jPanel4 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N setTitle(bundle.getString("NewSellTransactionJDialog_Sell")); // NOI18N setResizable(false);//from www. j a v a2 s . c om jPanel2.setBorder(javax.swing.BorderFactory .createTitledBorder(bundle.getString("NewSellTransactionJDialog_Transaction"))); // NOI18N jTextField1.setEditable(false); jLabel2.setText(bundle.getString("NewBuyTransactionJDialog_Symbol")); // NOI18N jSpinner1.setModel(new javax.swing.SpinnerNumberModel(100.0d, 0.001d, null, 100.0d)); JSpinner.NumberEditor numberEditor = (JSpinner.NumberEditor) jSpinner1.getEditor(); final DecimalFormat decimalFormat = numberEditor.getFormat(); decimalFormat.setMaximumFractionDigits(4); numberEditor.getTextField().addMouseListener(getJFormattedTextFieldMouseListener()); jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinner1StateChanged(evt); } }); jPanel3.setBackground(new java.awt.Color(204, 255, 255)); jPanel3.setMaximumSize(new java.awt.Dimension(32767, 20)); jPanel3.setPreferredSize(new java.awt.Dimension(100, 20)); jLabel4.setText(bundle.getString("NewBuyTransactionJDialog_Date")); // NOI18N jFormattedTextField1.setValue(new Double(0.0)); jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField1KeyTyped(evt); } }); jFormattedTextField2.setEditable(false); jFormattedTextField2.setValue(new Double(0.0)); jFormattedTextField3.setEditable(false); jFormattedTextField3.setValue(new Double(0.0)); jLabel10.setFont(jLabel10.getFont().deriveFont(jLabel10.getFont().getStyle() | java.awt.Font.BOLD)); jLabel10.setText(bundle.getString("NewSellTransactionJDialog_Profit%")); // NOI18N jFormattedTextField6.setEditable(false); jFormattedTextField6.setFont(jFormattedTextField6.getFont() .deriveFont(jFormattedTextField6.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField6.setValue(new Double(0.0)); jLabel1.setText(bundle.getString("NewSellTransactionJDialog_Unit")); // NOI18N jLabel3.setText(bundle.getString("NewSellTransactionJDialog_Price")); // NOI18N jLabel5.setText(bundle.getString("NewSellTransactionJDialog_Value")); // NOI18N jLabel7.setText(bundle.getString("NewSellTransactionJDialog_BuyCost")); // NOI18N jFormattedTextField8.setEditable(false); jFormattedTextField8.setFont(jFormattedTextField8.getFont() .deriveFont(jFormattedTextField8.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField8.setValue(new Double(0.0)); jLabel12.setFont(jLabel12.getFont().deriveFont(jLabel12.getFont().getStyle() | java.awt.Font.BOLD)); jLabel12.setText(bundle.getString("NewSellTransactionJDialog_Profit$")); // NOI18N javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel2) .addComponent(jLabel3).addComponent(jLabel5).addComponent(jLabel7).addComponent(jLabel1) .addComponent(jLabel4).addComponent(jLabel12).addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField6, jFormattedTextField8, jPanel3, jSpinner1, jTextField1 }); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel1, jLabel10, jLabel12, jLabel2, jLabel3, jLabel4, jLabel5, jLabel7 }); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2).addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jFormattedTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField6, jPanel3, jSpinner1, jTextField1 }); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N jButton1.setText(bundle.getString("NewSellTransactionJDialog_OK")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel4.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N jButton2.setText(bundle.getString("NewSellTransactionJDialog_Cancel")); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel4.add(jButton2); getContentPane().add(jPanel4, java.awt.BorderLayout.SOUTH); jPanel1.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("NewSellTransactionJDialog_Stock"))); // NOI18N jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 15, 5)); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/outbox.png"))); // NOI18N jPanel1.add(jLabel6); jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/idea.png"))); // NOI18N jButton3.setText(bundle.getString("NewSellTransactionJDialog_BestPrice")); // NOI18N jButton3.setToolTipText("Suggest the best selling price to break even."); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jPanel1.add(jButton3); getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); pack(); }
From source file:org.yccheok.jstock.gui.NewSellTransactionJDialog.java
/** This method is called from within the constructor to * initialize the form.// ww w . jav a 2s . c o m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jSpinner1 = new javax.swing.JSpinner(); jPanel3 = CalendarFactory.createDateField(); jLabel4 = new javax.swing.JLabel(); jFormattedTextField1 = getCurrencyJFormattedTextField(false); jFormattedTextField2 = getCurrencyJFormattedTextField(false); jFormattedTextField3 = getCurrencyJFormattedTextField(false); jFormattedTextField4 = getCurrencyJFormattedTextField(false); jFormattedTextField5 = getCurrencyJFormattedTextField(false); jLabel10 = new javax.swing.JLabel(); jFormattedTextField6 = getPercentageJFormattedTextField(); jLabel1 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jFormattedTextField7 = getCurrencyJFormattedTextField(false); jLabel11 = new javax.swing.JLabel(); jFormattedTextField8 = getCurrencyJFormattedTextField(true); jLabel12 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); jPanel4 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jLabel6 = new javax.swing.JLabel(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N setTitle(bundle.getString("NewSellTransactionJDialog_Sell")); // NOI18N setResizable(false); jPanel2.setBorder(javax.swing.BorderFactory .createTitledBorder(bundle.getString("NewSellTransactionJDialog_Transaction"))); // NOI18N jTextField1.setEditable(false); jLabel2.setText(bundle.getString("NewBuyTransactionJDialog_Symbol")); // NOI18N jSpinner1.setModel(new javax.swing.SpinnerNumberModel(100.0d, 0.001d, null, 100.0d)); JSpinner.NumberEditor numberEditor = (JSpinner.NumberEditor) jSpinner1.getEditor(); final DecimalFormat decimalFormat = numberEditor.getFormat(); decimalFormat.setMaximumFractionDigits(4); numberEditor.getTextField().addMouseListener(getJFormattedTextFieldMouseListener()); jSpinner1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSpinner1StateChanged(evt); } }); jPanel3.setBackground(new java.awt.Color(204, 255, 255)); jPanel3.setMaximumSize(new java.awt.Dimension(32767, 20)); jPanel3.setPreferredSize(new java.awt.Dimension(100, 20)); jLabel4.setText(bundle.getString("NewBuyTransactionJDialog_Date")); // NOI18N jFormattedTextField1.setValue(new Double(0.0)); jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField1KeyTyped(evt); } }); jFormattedTextField2.setEditable(false); jFormattedTextField2.setValue(new Double(0.0)); jFormattedTextField3.setEditable(false); jFormattedTextField3.setValue(new Double(0.0)); jFormattedTextField4.setValue(new Double(0.0)); jFormattedTextField4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField4KeyTyped(evt); } }); jFormattedTextField5.setValue(new Double(0.0)); jFormattedTextField5.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField5KeyTyped(evt); } }); jLabel10.setFont(jLabel10.getFont().deriveFont(jLabel10.getFont().getStyle() | java.awt.Font.BOLD)); jLabel10.setText(bundle.getString("NewSellTransactionJDialog_Profit%")); // NOI18N jFormattedTextField6.setEditable(false); jFormattedTextField6.setFont(jFormattedTextField6.getFont() .deriveFont(jFormattedTextField6.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField6.setValue(new Double(0.0)); jLabel1.setText(bundle.getString("NewSellTransactionJDialog_Unit")); // NOI18N jLabel3.setText(bundle.getString("NewSellTransactionJDialog_Price")); // NOI18N jLabel5.setText(bundle.getString("NewSellTransactionJDialog_Value")); // NOI18N jLabel7.setText(bundle.getString("NewSellTransactionJDialog_BuyCost")); // NOI18N jLabel8.setText(bundle.getString("NewSellTransactionJDialog_Broker")); // NOI18N jLabel9.setText(bundle.getString("NewSellTransactionJDialog_Clearing")); // NOI18N jFormattedTextField7.setValue(new Double(0.0)); jFormattedTextField7.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField7KeyTyped(evt); } }); jLabel11.setText(bundle.getString("NewSellTransactionJDialog_StampDuty")); // NOI18N jFormattedTextField8.setEditable(false); jFormattedTextField8.setFont(jFormattedTextField8.getFont() .deriveFont(jFormattedTextField8.getFont().getStyle() | java.awt.Font.BOLD)); jFormattedTextField8.setValue(new Double(0.0)); jLabel12.setFont(jLabel12.getFont().deriveFont(jLabel12.getFont().getStyle() | java.awt.Font.BOLD)); jLabel12.setText(bundle.getString("NewSellTransactionJDialog_Profit$")); // NOI18N jComboBox1.setModel( new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout .setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(jPanel2Layout .createSequentialGroup().addContainerGap().addGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel9).addComponent(jLabel2).addComponent(jLabel3) .addComponent(jLabel5).addComponent( jLabel7) .addComponent(jLabel8).addComponent(jLabel1).addComponent(jLabel4) .addComponent(jLabel11).addComponent(jLabel12) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jSpinner1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE) .addComponent(jFormattedTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) .addComponent(jFormattedTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 79, Short.MAX_VALUE) .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jFormattedTextField7, jFormattedTextField8, jPanel3, jSpinner1, jTextField1 }); jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jLabel1, jLabel10, jLabel11, jLabel12, jLabel2, jLabel3, jLabel4, jLabel5, jLabel7, jLabel8, jLabel9 }); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2).addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGap(14, 14, 14) .addComponent(jLabel9)) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jFormattedTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jFormattedTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2, jFormattedTextField3, jFormattedTextField4, jFormattedTextField5, jFormattedTextField6, jPanel3, jSpinner1, jTextField1 }); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N jButton1.setText(bundle.getString("NewSellTransactionJDialog_OK")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel4.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N jButton2.setText(bundle.getString("NewSellTransactionJDialog_Cancel")); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel4.add(jButton2); getContentPane().add(jPanel4, java.awt.BorderLayout.SOUTH); jPanel1.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("NewSellTransactionJDialog_Stock"))); // NOI18N jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 15, 5)); jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/outbox.png"))); // NOI18N jPanel1.add(jLabel6); jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/idea.png"))); // NOI18N jButton3.setText(bundle.getString("NewSellTransactionJDialog_BestPrice")); // NOI18N jButton3.setToolTipText("Suggest the best selling price to break even."); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jPanel1.add(jButton3); getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); pack(); }
From source file:org.yccheok.jstock.gui.portfolio.AutoDividendJDialog.java
/** * 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./*from w w w. j ava 2s. c om*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jXHeader1 = new org.jdesktop.swingx.JXHeader(); jPanel2 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jPanel5 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jFormattedTextField1 = getCurrencyJFormattedTextField(); jLabel2 = new javax.swing.JLabel(); jFormattedTextField2 = getCurrencyJFormattedTextField(); jPanel6 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/yccheok/jstock/data/gui"); // NOI18N setTitle(bundle.getString("AutoDividendJDialog_Title")); // NOI18N setResizable(false); getContentPane().setLayout(new java.awt.BorderLayout(5, 5)); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/apply.png"))); // NOI18N jButton1.setText(bundle.getString("AutoDividendJDialog_Apply")); // NOI18N jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jPanel1.add(jButton1); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/16x16/button_cancel.png"))); // NOI18N jButton2.setText(bundle.getString("AutoDividendJDialog_Cancel")); // NOI18N jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel1.add(jButton2); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jXHeader1.setDescription(bundle.getString("AutoDividendJDialog_Description")); // NOI18N jXHeader1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/32x32/auto-dividend.png"))); // NOI18N jXHeader1.setTitle(bundle.getString("AutoDividendJDialog_AutoDividend")); // NOI18N getContentPane().add(jXHeader1, java.awt.BorderLayout.NORTH); jPanel2.setLayout(new java.awt.BorderLayout(5, 5)); jLabel4.setForeground(new java.awt.Color(0, 0, 255)); jPanel4.add(jLabel4); jPanel2.add(jPanel4, java.awt.BorderLayout.SOUTH); jScrollPane1.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("AutoDividendJDialog_Dividend"))); // NOI18N jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER); jPanel5.setBorder( javax.swing.BorderFactory.createTitledBorder(bundle.getString("AutoDividendJDialog_DividendTax"))); // NOI18N jPanel5.setLayout(new java.awt.BorderLayout()); jLabel1.setText(bundle.getString("AutoDividendJDialog_Tax")); // NOI18N jFormattedTextField1.setText("0"); jFormattedTextField1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField1KeyTyped(evt); } }); jLabel2.setText(bundle.getString("AutoDividendJDialog_TaxRate")); // NOI18N jFormattedTextField2.setText("0"); jFormattedTextField2.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { jFormattedTextField2KeyTyped(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2).addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(93, Short.MAX_VALUE))); jPanel3Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jFormattedTextField1, jFormattedTextField2 }); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1).addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel5.add(jPanel3, java.awt.BorderLayout.CENTER); jPanel6.setLayout(new java.awt.GridLayout(2, 1, 5, 5)); jPanel5.add(jPanel6, java.awt.BorderLayout.SOUTH); jPanel2.add(jPanel5, java.awt.BorderLayout.NORTH); getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); setBounds(0, 0, 301, 502); }
From source file:SeedGenerator.MainForm.java
/** * 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.//from w w w.ja v a 2 s. co m */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { choiceSearchEngine = new java.awt.Choice(); jMenu1 = new javax.swing.JMenu(); txtSearchText = new java.awt.TextField(); jButton1 = new javax.swing.JButton(); btnRunSeedGenerator = new javax.swing.JButton(); jFileChooser1 = new javax.swing.JFileChooser(); jFrame1 = new javax.swing.JFrame(); jFrame2 = new javax.swing.JFrame(); pnlSparql = new javax.swing.JPanel(); btnStartRemoteQueries = new javax.swing.JButton(); btnPrepareQueryQueue = new javax.swing.JButton(); btnParseResponse = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jProgressBar1 = new javax.swing.JProgressBar(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); pnlCrawler = new javax.swing.JPanel(); jScrollPane15 = new javax.swing.JScrollPane(); txtSearchTexts = new javax.swing.JTextArea(); lblSearchText4 = new java.awt.Label(); jScrollPane16 = new javax.swing.JScrollPane(); lstSearchEngines = new javax.swing.JList(); jLabel16 = new javax.swing.JLabel(); txtMaxPage = new javax.swing.JTextField(); lblMessage4 = new javax.swing.JLabel(); label9 = new java.awt.Label(); lblCount4 = new javax.swing.JLabel(); btnRunAnalyzer = new javax.swing.JButton(); btnRunMultitextSearch = new javax.swing.JButton(); btnCreateSearchQueue = new javax.swing.JButton(); btnStopThreads4 = new javax.swing.JButton(); btnStopSearchQueue4 = new javax.swing.JButton(); btnStopAnalyzer4 = new javax.swing.JButton(); btnCreateSearchQueueFromPreviousUrls = new javax.swing.JButton(); label10 = new java.awt.Label(); jLabel17 = new javax.swing.JLabel(); jScrollPane17 = new javax.swing.JScrollPane(); jTable = new javax.swing.JTable(); txtSeeds = new java.awt.TextArea(); jPanel1 = new javax.swing.JPanel(); jButtonAnalyzeEndpointHtml = new javax.swing.JButton(); jButtonPostFilterUrls = new javax.swing.JButton(); jPanel9 = new javax.swing.JPanel(); txtSparqlesUrl = new javax.swing.JTextField(); txtLodstatsUrl = new javax.swing.JTextField(); txtDatahubUrl = new javax.swing.JTextField(); btnParseSparqles = new javax.swing.JButton(); btnParseDatahub = new javax.swing.JButton(); jTextField1 = new javax.swing.JTextField(); btnParseLODCloud = new javax.swing.JButton(); btnLodstats = new javax.swing.JButton(); jPanel10 = new javax.swing.JPanel(); btnStatisticalAnalysis = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); btnStatusMonitor = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); txtNumOfThreadsStatisticalAnalysis = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtNumOfThreadsStatusMonitoring = new javax.swing.JTextField(); txtStatisticalAnalysisTimeout = new javax.swing.JTextField(); txtStatisticalAnalysisCheckEveryHours = new javax.swing.JTextField(); label1 = new java.awt.Label(); jPanel3 = new javax.swing.JPanel(); jTextField2 = new javax.swing.JTextField(); jScrollPane3 = new javax.swing.JScrollPane(); jTextAreaFederatedQuery = new javax.swing.JTextArea(); jButton4 = new javax.swing.JButton(); btnParseSemanticDiscovery = new javax.swing.JButton(); jButtonGetSparqlEndpointWebPages = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jButtonRunClassCollector = new javax.swing.JButton(); jScrollPane5 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jComboCommonQueries = new javax.swing.JComboBox(); txtMaxCollectorThreads = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); btnWordnetAnalyzer = new javax.swing.JButton(); btnTfidf = new javax.swing.JButton(); jButtonIDF = new javax.swing.JButton(); btnSameAs = new javax.swing.JButton(); jButtonExportSelectedTriples = new javax.swing.JButton(); jButtonPrepareEndpointLcnWordTable = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButtonExportRclh = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); jButtonwordnetTdidf = new javax.swing.JButton(); jButtonWordnetLevel = new javax.swing.JButton(); jButtonTabloyaAktar = new javax.swing.JButton(); jButtonResetEndpointsForProcessing = new javax.swing.JButton(); jButtonGetSubjectsFromLODCLOUD = new javax.swing.JButton(); jButtonProfiler = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButtontfidftop20 = new javax.swing.JButton(); jButtonWordnetlevel = new javax.swing.JButton(); jPanel5 = new javax.swing.JPanel(); btnIoTCollectResults = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); panel1 = new java.awt.Panel(); jPanel8 = new javax.swing.JPanel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu2 = new javax.swing.JMenu(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItemSaveTask = new javax.swing.JMenuItem(); jMenuItemSaveUrlList = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); jMenuItemConfig = new javax.swing.JMenuItem(); jMenuItemCreateInitialDatabase = new javax.swing.JMenuItem(); choiceSearchEngine.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jMenu1.setText("jMenu1"); txtSearchText.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtSearchTextActionPerformed(evt); } }); jButton1.setText("test"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); btnRunSeedGenerator.setText("disabled-Run Seed Generator"); btnRunSeedGenerator.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRunSeedGeneratorActionPerformed(evt); } }); javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout(jFrame1.getContentPane()); jFrame1.getContentPane().setLayout(jFrame1Layout); jFrame1Layout.setHorizontalGroup(jFrame1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 400, Short.MAX_VALUE)); jFrame1Layout.setVerticalGroup(jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE)); javax.swing.GroupLayout jFrame2Layout = new javax.swing.GroupLayout(jFrame2.getContentPane()); jFrame2.getContentPane().setLayout(jFrame2Layout); jFrame2Layout.setHorizontalGroup(jFrame2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 400, Short.MAX_VALUE)); jFrame2Layout.setVerticalGroup(jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 300, Short.MAX_VALUE)); btnStartRemoteQueries.setBackground(new java.awt.Color(255, 0, 0)); btnStartRemoteQueries.setText("Start Remote Sparql Query Threads"); btnStartRemoteQueries.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStartRemoteQueriesActionPerformed(evt); } }); btnPrepareQueryQueue.setText("Prepare Remote Sparql Query Queue"); btnPrepareQueryQueue.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPrepareQueryQueueActionPerformed(evt); } }); btnParseResponse.setText("Parse Responses"); btnParseResponse.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnParseResponseActionPerformed(evt); } }); jButton2.setText("ali hoca queue yarat"); jButton2.setEnabled(false); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setText("start ali hoca remote query"); jButton3.setEnabled(false); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout pnlSparqlLayout = new javax.swing.GroupLayout(pnlSparql); pnlSparql.setLayout(pnlSparqlLayout); pnlSparqlLayout.setHorizontalGroup(pnlSparqlLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlSparqlLayout.createSequentialGroup().addContainerGap() .addGroup(pnlSparqlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlSparqlLayout.createSequentialGroup().addGroup(pnlSparqlLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(btnStartRemoteQueries, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnPrepareQueryQueue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnParseResponse, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(0, 416, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSparqlLayout .createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addGroup(pnlSparqlLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING)))) .addContainerGap())); pnlSparqlLayout.setVerticalGroup(pnlSparqlLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlSparqlLayout.createSequentialGroup().addContainerGap() .addComponent(btnPrepareQueryQueue) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnStartRemoteQueries) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnParseResponse) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton3) .addContainerGap(233, Short.MAX_VALUE))); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Sparql Endpoint Crawler and Analyzer(SPECAN) v2.0"); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); jTabbedPane1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); jTabbedPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jTabbedPane1.setFocusCycleRoot(true); jTabbedPane1.setInheritsPopupMenu(true); txtSearchTexts.setColumns(20); txtSearchTexts.setRows(5); jScrollPane15.setViewportView(txtSearchTexts); lblSearchText4.setText("Search Texts (Seperated by lines)"); lstSearchEngines.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Google", "Bing", "Yahoo", "Yandex" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane16.setViewportView(lstSearchEngines); jLabel16.setText("Max. Page"); txtMaxPage.setText("10"); txtMaxPage.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtMaxPageActionPerformed(evt); } }); lblMessage4.setForeground(new java.awt.Color(255, 0, 51)); label9.setText("Search Engines"); lblCount4.setForeground(new java.awt.Color(255, 0, 0)); lblCount4.setText("Count"); lblCount4.setName(""); // NOI18N btnRunAnalyzer.setText("Run URL Analyzer"); btnRunAnalyzer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRunAnalyzerActionPerformed(evt); } }); btnRunMultitextSearch.setText("Run Search Queue"); btnRunMultitextSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRunMultitextSearchActionPerformed(evt); } }); btnCreateSearchQueue.setText("Search"); btnCreateSearchQueue.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCreateSearchQueueActionPerformed(evt); } }); btnStopThreads4.setText("Stop Threads"); btnStopThreads4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStopThreads4ActionPerformed(evt); } }); btnStopSearchQueue4.setBackground(new java.awt.Color(255, 0, 0)); btnStopSearchQueue4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStopSearchQueue4ActionPerformed(evt); } }); btnStopAnalyzer4.setBackground(new java.awt.Color(255, 0, 0)); btnStopAnalyzer4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStopAnalyzer4ActionPerformed(evt); } }); btnCreateSearchQueueFromPreviousUrls.setText("Domain Learning"); btnCreateSearchQueueFromPreviousUrls.setActionCommand("Create Search In Previous Urls"); btnCreateSearchQueueFromPreviousUrls.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCreateSearchQueueFromPreviousUrlsActionPerformed(evt); } }); label10.setText("Generated Urls"); jLabel17.setText("# of Extracted URLs:"); jTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "SearchEngine", "Search Text", "URL", "Date Created" })); jScrollPane17.setViewportView(jTable); if (jTable.getColumnModel().getColumnCount() > 0) { jTable.getColumnModel().getColumn(0).setPreferredWidth(10); jTable.getColumnModel().getColumn(1).setPreferredWidth(50); jTable.getColumnModel().getColumn(2).setPreferredWidth(200); jTable.getColumnModel().getColumn(3).setPreferredWidth(50); } txtSeeds.setVisible(false); javax.swing.GroupLayout pnlCrawlerLayout = new javax.swing.GroupLayout(pnlCrawler); pnlCrawler.setLayout(pnlCrawlerLayout); pnlCrawlerLayout.setHorizontalGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCrawlerLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlCrawlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlCrawlerLayout.createSequentialGroup().addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(label9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(lblSearchText4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(pnlCrawlerLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblCount4, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlCrawlerLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addGroup(pnlCrawlerLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(btnCreateSearchQueue, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRunMultitextSearch, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnStopSearchQueue4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addGroup(pnlCrawlerLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(pnlCrawlerLayout .createSequentialGroup() .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtMaxPage, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(pnlCrawlerLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent( btnCreateSearchQueueFromPreviousUrls, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent( btnRunAnalyzer, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE))) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnStopAnalyzer4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(322, 322, 322)) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addGap(127, 127, 127).addComponent(txtSeeds, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addComponent(label10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblMessage4, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(599, 599, 599)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlCrawlerLayout.createSequentialGroup().addComponent(jScrollPane17) .addGap(200, 200, 200).addComponent(btnStopThreads4) .addGap(37, 37, 37))) .addContainerGap())); pnlCrawlerLayout.setVerticalGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlCrawlerLayout.createSequentialGroup().addContainerGap(20, Short.MAX_VALUE) .addGroup(pnlCrawlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblSearchText4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(label9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, 0) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addComponent(btnCreateSearchQueue) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnStopSearchQueue4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnRunMultitextSearch)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnRunAnalyzer).addComponent(btnStopAnalyzer4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnCreateSearchQueueFromPreviousUrls)) .addGroup(pnlCrawlerLayout.createSequentialGroup() .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17).addComponent(lblCount4)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(pnlCrawlerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlCrawlerLayout.createSequentialGroup().addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblMessage4) .addGroup(pnlCrawlerLayout.createSequentialGroup().addGap(17, 17, 17) .addComponent(txtSeeds, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(22, 22, 22).addComponent(btnStopThreads4)) .addGroup(pnlCrawlerLayout.createSequentialGroup().addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(pnlCrawlerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtMaxPage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16)) .addComponent(label10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(31, 31, 31))); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout .setHorizontalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(pnlCrawler, javax.swing.GroupLayout.PREFERRED_SIZE, 583, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5525, 5525, 5525))); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(pnlCrawler, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))); jTabbedPane1.addTab("Crawler", jPanel2); jButtonAnalyzeEndpointHtml.setText("Analyze Endpoint HTML"); jButtonAnalyzeEndpointHtml.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonAnalyzeEndpointHtmlActionPerformed(evt); } }); jButtonPostFilterUrls.setText("Mark Same URLs with same #triples"); jButtonPostFilterUrls.setToolTipText("Mark Same URLs with same #triples"); jButtonPostFilterUrls.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPostFilterUrlsActionPerformed(evt); } }); jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Dataset Collection")); txtSparqlesUrl.setText("http://sparqles.okfn.org/api/endpoint/list"); txtLodstatsUrl.setText("http://stats.lod2.eu"); txtDatahubUrl.setText("http://datahub.io/api/3/action/resource_search?query=format:sparql"); txtDatahubUrl.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); btnParseSparqles.setText("SPARQLES"); btnParseSparqles.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnParseSparqlesActionPerformed(evt); } }); btnParseDatahub.setText("Datahub"); btnParseDatahub.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnParseDatahubActionPerformed(evt); } }); jTextField1.setText("http://lod-cloud.net/data/void.ttl"); btnParseLODCloud.setText("LOD Cloud"); btnParseLODCloud.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnParseLODCloudActionPerformed(evt); } }); btnLodstats.setText("LODStats"); btnLodstats.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnLodstatsActionPerformed(evt); } }); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout .setHorizontalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addGroup(jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(btnParseSparqles, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnParseLODCloud, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnParseDatahub, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnLodstats, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(txtLodstatsUrl, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtDatahubUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE) .addComponent(txtSparqlesUrl, javax.swing.GroupLayout.Alignment.LEADING)) .addGap(0, 12, Short.MAX_VALUE))); jPanel9Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { btnLodstats, btnParseLODCloud, btnParseSparqles }); jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnParseSparqles).addComponent(txtSparqlesUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnParseLODCloud).addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnLodstats).addComponent(txtLodstatsUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnParseDatahub).addComponent(txtDatahubUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Monitoring & Analysis")); jPanel10.setLayout(null); btnStatisticalAnalysis.setBackground(new java.awt.Color(0, 255, 0)); btnStatisticalAnalysis.setText("Statistical Analysis"); btnStatisticalAnalysis.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStatisticalAnalysisActionPerformed(evt); } }); jPanel10.add(btnStatisticalAnalysis); btnStatisticalAnalysis.setBounds(10, 60, 175, 29); jLabel4.setText("#ofThreads"); jPanel10.add(jLabel4); jLabel4.setBounds(190, 25, 82, 17); btnStatusMonitor.setBackground(new java.awt.Color(0, 255, 0)); btnStatusMonitor.setText("Status Monitoring"); btnStatusMonitor.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStatusMonitorActionPerformed(evt); } }); jPanel10.add(btnStatusMonitor); btnStatusMonitor.setBounds(10, 20, 175, 29); jLabel7.setText("Check Every"); jPanel10.add(jLabel7); jLabel7.setBounds(190, 95, 85, 17); jLabel8.setText("Hours"); jPanel10.add(jLabel8); jLabel8.setBounds(310, 95, 42, 17); txtNumOfThreadsStatisticalAnalysis.setText("1"); jPanel10.add(txtNumOfThreadsStatisticalAnalysis); txtNumOfThreadsStatisticalAnalysis.setBounds(280, 60, 26, 27); jLabel3.setText("#ofThreads"); jPanel10.add(jLabel3); jLabel3.setBounds(190, 65, 82, 17); jLabel5.setText("| Timeout"); jPanel10.add(jLabel5); jLabel5.setBounds(310, 65, 65, 17); jLabel6.setText("Seconds"); jPanel10.add(jLabel6); jLabel6.setBounds(430, 65, 59, 17); txtNumOfThreadsStatusMonitoring.setText("1"); jPanel10.add(txtNumOfThreadsStatusMonitoring); txtNumOfThreadsStatusMonitoring.setBounds(280, 20, 26, 27); txtStatisticalAnalysisTimeout.setText("120"); jPanel10.add(txtStatisticalAnalysisTimeout); txtStatisticalAnalysisTimeout.setBounds(390, 60, 26, 27); txtStatisticalAnalysisCheckEveryHours.setText("6"); jPanel10.add(txtStatisticalAnalysisCheckEveryHours); txtStatisticalAnalysisCheckEveryHours.setBounds(280, 90, 26, 27); label1.setBackground(new java.awt.Color(1, 1, 1)); label1.setText("label1"); jPanel10.add(label1); label1.setBounds(10, 55, 480, 1); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonAnalyzeEndpointHtml, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButtonPostFilterUrls, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(9, 9, 9))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28).addComponent(jButtonAnalyzeEndpointHtml) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonPostFilterUrls) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel9.getAccessibleContext().setAccessibleName("Collect Other Projects"); jTabbedPane1.addTab("Analysis", jPanel1); jTextField2.setText("jTextField2"); jTextAreaFederatedQuery.setColumns(20); jTextAreaFederatedQuery.setRows(5); jScrollPane3.setViewportView(jTextAreaFederatedQuery); jButton4.setText("Send"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); btnParseSemanticDiscovery.setText("Parse SpEnD"); btnParseSemanticDiscovery.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnParseSemanticDiscoveryActionPerformed(evt); } }); jButtonGetSparqlEndpointWebPages.setText("Get Sparql Endpoint WebPages"); jButtonGetSparqlEndpointWebPages.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonGetSparqlEndpointWebPagesActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton4) .addComponent(btnParseSemanticDiscovery, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButtonGetSparqlEndpointWebPages, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGap(220, 220, 220))); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jButton4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnParseSemanticDiscovery) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonGetSparqlEndpointWebPages))) .addGap(0, 159, Short.MAX_VALUE))); jTabbedPane1.addTab("Federation", jPanel3); jButtonRunClassCollector.setText("Run Collector"); jButtonRunClassCollector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonRunClassCollectorActionPerformed(evt); } }); jTextArea1.setColumns(20); jTextArea1.setRows(5); jScrollPane5.setViewportView(jTextArea1); jComboCommonQueries.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); txtMaxCollectorThreads.setHorizontalAlignment(javax.swing.JTextField.RIGHT); txtMaxCollectorThreads.setText("1"); jLabel9.setText("Threads"); jButton6.setText("Reset Endpoint Updates"); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jButton7.setText("Export All Triples"); jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); btnWordnetAnalyzer.setText("3-Wordnet Analyzer"); btnWordnetAnalyzer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnWordnetAnalyzerActionPerformed(evt); } }); btnTfidf.setText("1-TF Calculator"); btnTfidf.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnTfidfActionPerformed(evt); } }); jButtonIDF.setText("2-IDF Calculator"); jButtonIDF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonIDFActionPerformed(evt); } }); btnSameAs.setText("4-sameAs URL PLD count"); btnSameAs.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSameAsActionPerformed(evt); } }); jButtonExportSelectedTriples.setText("Export Selected Triples"); jButtonExportSelectedTriples.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExportSelectedTriplesActionPerformed(evt); } }); jButtonPrepareEndpointLcnWordTable.setText("Prepare Endpoint LCN Word Table"); jButtonPrepareEndpointLcnWordTable.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPrepareEndpointLcnWordTableActionPerformed(evt); } }); jButton8.setText("TF IDF -NEW"); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); jButtonExportRclh.setText("Export RCLH"); jButtonExportRclh.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonExportRclhActionPerformed(evt); } }); jButton9.setText("Analyze tf idf"); jButton9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton9ActionPerformed(evt); } }); jButtonwordnetTdidf.setText("5-Wordnet TF-IDF"); jButtonwordnetTdidf.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonwordnetTdidfActionPerformed(evt); } }); jButtonWordnetLevel.setText("Wordnet level"); jButtonWordnetLevel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonWordnetLevelActionPerformed(evt); } }); jButtonTabloyaAktar.setText("6-Tabloya Aktar"); jButtonTabloyaAktar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonTabloyaAktarActionPerformed(evt); } }); jButtonResetEndpointsForProcessing.setText("Reset Endpoints For Processing"); jButtonResetEndpointsForProcessing.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonResetEndpointsForProcessingActionPerformed(evt); } }); jButtonGetSubjectsFromLODCLOUD.setText("6-LOD Cloud Subjects"); jButtonGetSubjectsFromLODCLOUD.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonGetSubjectsFromLODCLOUDActionPerformed(evt); } }); jButtonProfiler.setText("Temp Profiler"); jButtonProfiler.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonProfilerActionPerformed(evt); } }); jButton5.setText("domain"); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jButtontfidftop20.setText("Wordnet Tf top 20"); jButtontfidftop20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtontfidftop20ActionPerformed(evt); } }); jButtonWordnetlevel.setText("3.1 Wordnet Level"); jButtonWordnetlevel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonWordnetlevelActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addComponent(jButtonRunClassCollector) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboCommonQueries, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(4, 4, 4) .addComponent(txtMaxCollectorThreads, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(73, 73, 73)) .addGroup(jPanel4Layout.createSequentialGroup().addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 536, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap() .addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jButtonResetEndpointsForProcessing) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonWordnetlevel)) .addGroup( jPanel4Layout .createSequentialGroup().addGroup(jPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jButtonIDF).addGap(10, 10, 10) .addComponent(jButtonwordnetTdidf)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(btnTfidf).addGap(18, 18, 18) .addComponent(btnWordnetAnalyzer))) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jButtontfidftop20) .addGap(32, 32, 32).addComponent(btnSameAs, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent( jButtonGetSubjectsFromLODCLOUD) .addGap(44, 44, 44) .addGroup(jPanel4Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonWordnetLevel) .addComponent( jButtonTabloyaAktar)))))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonPrepareEndpointLcnWordTable, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton9).addComponent(jButtonExportRclh))) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButtonProfiler) .addGroup(jPanel4Layout.createSequentialGroup().addComponent(jButton6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonExportSelectedTriples))) .addGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton5)) .addGroup(jPanel4Layout.createSequentialGroup().addGap(27, 27, 27) .addComponent(jButton8))))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonRunClassCollector) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboCommonQueries, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtMaxCollectorThreads, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton6).addComponent(jButton7) .addComponent(jButtonExportSelectedTriples).addComponent(jButton8)) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addGap(11, 11, 11) .addGroup(jPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonProfiler).addComponent(jButton5))) .addGroup(jPanel4Layout.createSequentialGroup().addGap(40, 40, 40) .addGroup(jPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonResetEndpointsForProcessing) .addComponent(jButtonWordnetLevel) .addComponent(jButtonWordnetlevel)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButtonTabloyaAktar).addComponent(btnWordnetAnalyzer) .addComponent(btnTfidf) .addComponent(jButtonGetSubjectsFromLODCLOUD))) .addGroup(jPanel4Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButtonPrepareEndpointLcnWordTable))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnSameAs).addComponent(jButtonExportRclh) .addComponent(jButtonwordnetTdidf).addComponent(jButtonIDF) .addComponent(jButtontfidftop20)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))); jTabbedPane1.addTab("Recommender", jPanel4); btnIoTCollectResults.setText("Start"); btnIoTCollectResults.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnIoTCollectResultsActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout .setHorizontalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap() .addComponent(btnIoTCollectResults).addContainerGap(538, Short.MAX_VALUE))); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addComponent(btnIoTCollectResults) .addContainerGap(337, Short.MAX_VALUE))); jTabbedPane1.addTab("IoT Crawler", jPanel5); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup(jPanel7Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 100, Short.MAX_VALUE)); jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE)); panel1.setName("test"); // NOI18N javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1); panel1.setLayout(panel1Layout); panel1Layout.setHorizontalGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE)); panel1Layout.setVerticalGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE)); jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Test")); jPanel8.setToolTipText("ttt"); jPanel8.setName("test"); // NOI18N javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup(jPanel8Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 100, Short.MAX_VALUE)); jPanel8Layout.setVerticalGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE)); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup(jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup().addGroup(jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup().addGap(120, 120, 120).addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup().addGap(43, 43, 43).addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(102, 102, 102) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(56, Short.MAX_VALUE))); jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup().addContainerGap() .addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup().addGap(52, 52, 52).addComponent( jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel6Layout.createSequentialGroup().addGap(24, 24, 24).addComponent( jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(158, Short.MAX_VALUE))); jTabbedPane1.addTab("tab6", jPanel6); jMenu2.setText("File"); jMenuItem2.setText("Load Previous Search Task"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenu2.add(jMenuItem2); jMenuItemSaveTask.setText("Save Search Task"); jMenuItemSaveTask.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemSaveTaskActionPerformed(evt); } }); jMenu2.add(jMenuItemSaveTask); jMenuItemSaveUrlList.setText("Save Url List"); jMenu2.add(jMenuItemSaveUrlList); jMenuBar1.add(jMenu2); jMenu4.setText("Config"); jMenuItemConfig.setText("Database Connection"); jMenuItemConfig.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemConfigActionPerformed(evt); } }); jMenu4.add(jMenuItemConfig); jMenuItemCreateInitialDatabase.setText("Create Initial Database"); jMenuItemCreateInitialDatabase.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCreateInitialDatabaseActionPerformed(evt); } }); jMenu4.add(jMenuItemCreateInitialDatabase); jMenuBar1.add(jMenu4); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 604, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 415, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0))); pack(); }
From source file:sistemacontrolvuelos.ControlVuelos.java
/** * 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.// w ww. j av a2 s. co m */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jtxt_id = new javax.swing.JTextField(); jtxt_nombre = new javax.swing.JTextField(); jtxt_pais = new javax.swing.JTextField(); jtxt_contra = new javax.swing.JTextField(); jbtn_enviar = new javax.swing.JButton(); jLabel4 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jLabel27 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jcb_origen_c = new javax.swing.JComboBox(); jcb_destino_c = new javax.swing.JComboBox(); jtxt_id_c = new javax.swing.JTextField(); jtxt_fecha_salida_c = new javax.swing.JTextField(); jtxt_fecha_llegada_c = new javax.swing.JTextField(); jtxt_precio_pc_c = new javax.swing.JTextField(); jtxt_precio_ct_c = new javax.swing.JTextField(); jtxt_precio_ce_c = new javax.swing.JTextField(); jtxt_cantidad_pc_c = new javax.swing.JTextField(); jtxt_cantidad_ct_c = new javax.swing.JTextField(); jtxt_cantidad_ce_c = new javax.swing.JTextField(); jcb_estado_c = new javax.swing.JComboBox(); jButton3 = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jLabel15 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); jcb_vuelos_e = new javax.swing.JComboBox(); jtxt_origen_e = new javax.swing.JTextField(); jtxt_destino_e = new javax.swing.JTextField(); jtxt_fecha_salida_e = new javax.swing.JTextField(); jtxt_fecha_llegada_e = new javax.swing.JTextField(); jtxt_precio_pc_e = new javax.swing.JTextField(); jtxt_precio_ct_e = new javax.swing.JTextField(); jtxt_precio_ce_e = new javax.swing.JTextField(); jtxt_cantidad_pc_e = new javax.swing.JTextField(); jtxt_cantidad_ct_e = new javax.swing.JTextField(); jtxt_cantidad_ce_e = new javax.swing.JTextField(); jtxt_estado_e = new javax.swing.JTextField(); jbtn_actualizar = new javax.swing.JButton(); jbtn_eliminar = new javax.swing.JButton(); jbtn_seleccionar = new javax.swing.JButton(); jbtn_enVuelo = new javax.swing.JButton(); jbtn_enArribo = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jTabbedPane1.setPreferredSize(new java.awt.Dimension(620, 320)); jTabbedPane1.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { jTabbedPane1FocusGained(evt); } }); jPanel1.setOpaque(false); jLabel1.setText("Nombre"); jLabel2.setText("Pais"); jLabel3.setText("Contrasea"); jtxt_id.setText("1"); jtxt_id.setName(""); // NOI18N jtxt_nombre.setText("Test"); jtxt_pais.setText("Guatemala"); jtxt_contra.setText("123456"); jbtn_enviar.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N jbtn_enviar.setText("Enviar"); jbtn_enviar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_enviarActionPerformed(evt); } }); jLabel4.setText("Id"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup().addComponent(jLabel3) .addGap(43, 43, 43)) .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel4) .addGap(89, 89, 89))) .addGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jtxt_pais).addComponent(jtxt_contra).addComponent(jtxt_id) .addComponent(jtxt_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jLabel2).addComponent(jLabel1).addComponent(jbtn_enviar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] { jtxt_contra, jtxt_id, jtxt_nombre, jtxt_pais }); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(9, 9, 9) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4).addComponent(jtxt_id, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1).addComponent(jtxt_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2).addComponent(jtxt_pais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jtxt_contra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addGap(18, 18, 18) .addComponent(jbtn_enviar, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jTabbedPane1.addTab("Creacion de Aeropuertos", jPanel1); jLabel27.setText("Destino: "); jLabel29.setText("Origen:"); jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel5.setText("Creacion de Vuelos"); jLabel6.setText("Id:"); jLabel7.setText("Hora y Fecha Salida:"); jLabel8.setText("Hora y Fecha Llegada:"); jLabel9.setText("Precio Primera Clase:"); jLabel10.setText("Precio Clase Turista:"); jLabel11.setText("Precio Clase Ejecutiva:"); jLabel12.setText("Cantidad Primera Clase:"); jLabel13.setText("Cantidad Clase Turista:"); jLabel14.setText("Cantidad Clase Ejecutiva:"); jLabel16.setText("Estado:"); jtxt_id_c.setEditable(false); jtxt_id_c.setText("vuelo1"); jtxt_id_c.setEnabled(false); jcb_estado_c.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "En Aeropuerto", "En Vuelo", "En Arribo" })); jButton3.setText("Guardar Vuelo"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap().addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addComponent(jButton3)) .addGroup(jPanel2Layout.createSequentialGroup().addGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6).addComponent(jLabel7).addComponent(jLabel8) .addComponent(jLabel9).addComponent(jLabel10).addComponent(jLabel11) .addComponent(jLabel12).addComponent(jLabel13).addComponent(jLabel14) .addComponent(jLabel16).addComponent(jLabel27).addComponent(jLabel29)) .addGap(35, 35, 35) .addGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jcb_origen_c, 0, 230, Short.MAX_VALUE) .addComponent(jtxt_cantidad_ce_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_cantidad_ct_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_cantidad_pc_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_ce_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_ct_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_pc_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_fecha_llegada_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_fecha_salida_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_id_c, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jcb_estado_c, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jcb_destino_c, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup().addGap(10, 10, 10).addComponent(jLabel5) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jcb_origen_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel29)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27).addComponent(jcb_destino_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6).addComponent(jtxt_id_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(jtxt_fecha_salida_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8).addComponent(jtxt_fecha_llegada_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9).addComponent(jtxt_precio_pc_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10).addComponent(jtxt_precio_ct_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jtxt_precio_ce_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jtxt_cantidad_pc_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13) .addComponent(jtxt_cantidad_ct_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel14).addComponent(jtxt_cantidad_ce_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel16).addComponent(jcb_estado_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18).addComponent(jButton3) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jTabbedPane1.addTab("Creacion de Vuelos", jPanel2); jLabel15.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel15.setText("Seleccione un Vuelo"); jLabel30.setText("id:"); jLabel18.setText("Estado:"); jLabel17.setText("Destino:"); jLabel19.setText("Cantidad Clase Ejecutiva:"); jLabel20.setText("Cantidad Clase Turista:"); jLabel21.setText("Cantidad Primera Clase:"); jLabel22.setText("Precio Clase Ejecutiva:"); jLabel23.setText("Precio Clase Turista:"); jLabel24.setText("Precio Primera Clase:"); jLabel25.setText("Hora y Fecha Llegada:"); jLabel26.setText("Hora y Fecha Salida:"); jLabel28.setText("Origen:"); jtxt_origen_e.setEditable(false); jtxt_origen_e.setEnabled(false); jtxt_destino_e.setEditable(false); jtxt_destino_e.setEnabled(false); jtxt_estado_e.setEditable(false); jtxt_estado_e.setEnabled(false); jbtn_actualizar.setText("Actualizar Vuelo"); jbtn_actualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_actualizarActionPerformed(evt); } }); jbtn_eliminar.setText("Eliminar Vuelo"); jbtn_eliminar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_eliminarActionPerformed(evt); } }); jbtn_seleccionar.setText("Seleccionar"); jbtn_seleccionar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_seleccionarActionPerformed(evt); } }); jbtn_enVuelo.setText("En Vuelo"); jbtn_enVuelo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_enVueloActionPerformed(evt); } }); jbtn_enArribo.setText("En Arribo"); jbtn_enArribo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtn_enArriboActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout.createSequentialGroup().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel17).addComponent(jLabel26).addComponent(jLabel25) .addComponent(jLabel24).addComponent(jLabel23).addComponent(jLabel22) .addComponent(jLabel21).addComponent(jLabel20).addComponent(jLabel19) .addComponent(jLabel18).addComponent(jLabel28) .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jbtn_enVuelo) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jbtn_enArribo))) .addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout .createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jtxt_origen_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_destino_e))) .addGroup(jPanel3Layout.createSequentialGroup().addGap(6, 6, 6) .addGroup(jPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addComponent(jbtn_actualizar) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jbtn_eliminar)) .addComponent(jtxt_cantidad_ce_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_cantidad_ct_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_cantidad_pc_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_ce_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_ct_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_precio_pc_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_fecha_llegada_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_fecha_salida_e, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE) .addComponent(jtxt_estado_e)) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(jPanel3Layout.createSequentialGroup().addComponent(jLabel30) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jcb_vuelos_e, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(jbtn_seleccionar))) .addContainerGap())); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel15).addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jcb_vuelos_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel30).addComponent(jbtn_seleccionar)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel28).addComponent(jtxt_origen_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17).addComponent(jtxt_destino_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel26).addComponent(jtxt_fecha_salida_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel25).addComponent(jtxt_fecha_llegada_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel24).addComponent(jtxt_precio_pc_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel23).addComponent(jtxt_precio_ct_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel22).addComponent(jtxt_precio_ce_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel21).addComponent(jtxt_cantidad_pc_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel20).addComponent(jtxt_cantidad_ct_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel19).addComponent(jtxt_cantidad_ce_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18).addComponent(jtxt_estado_e, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jbtn_actualizar).addComponent(jbtn_eliminar) .addComponent(jbtn_enVuelo).addComponent(jbtn_enArribo)) .addContainerGap())); jTabbedPane1.addTab("Editar Vuelo", jPanel3); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 413, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)); pack(); }