List of usage examples for javax.swing GroupLayout setVerticalGroup
public void setVerticalGroup(Group group)
From source file:au.com.jwatmuff.eventmanager.gui.main.MainWindow.java
private void createPanels() { printPanel = new PrintPanel(); printPanel.setParentWindow(this); printPanel.setDatabase(database);/* w w w . j ava 2 s . com*/ printPanel.setNotifier(notifier); printPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Print", null, printPanel, null, 1); resultsPanel = new ResultsPanel(); resultsPanel.setParentWindow(this); resultsPanel.setDatabase(database); resultsPanel.setNotifier(notifier); resultsPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Results", null, resultsPanel, null, 1); competitionInterfacesPanel = new CompetitionInterfacesPanel(); competitionInterfacesPanel.setParentWindow(this); competitionInterfacesPanel.setDatabase(database); competitionInterfacesPanel.setNotifier(notifier); competitionInterfacesPanel.setPeerManager(peerManager); competitionInterfacesPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Competition Interfaces", null, competitionInterfacesPanel, null, 1); sessionFightsPanel = new SessionFightsPanel(); sessionFightsPanel.setParentWindow(this); sessionFightsPanel.setDatabase(database); sessionFightsPanel.setNotifier(notifier); sessionFightsPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Fight Order", null, sessionFightsPanel, null, 1); manageSessionsPanel = new ManageSessionsPanel(); manageSessionsPanel.setParentWindow(this); manageSessionsPanel.setDatabase(database); manageSessionsPanel.setNotifier(notifier); manageSessionsPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Sessions", null, manageSessionsPanel, null, 1); fightOrderPanel = new FightOrderPanel(); fightOrderPanel.setParentWindow(this); fightOrderPanel.setDatabase(database); fightOrderPanel.setNotifier(notifier); fightOrderPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Draw", null, fightOrderPanel, null, 1); managePoolsPanel = new ManageDivisionsPanel(); managePoolsPanel.setParentWindow(this); managePoolsPanel.setDatabase(database); managePoolsPanel.setNotifier(notifier); managePoolsPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Divisions", null, managePoolsPanel, null, 1); managePlayersPanel = new ManagePlayersPanel(); managePlayersPanel.setParentWindow(this); managePlayersPanel.setDatabase(database); managePlayersPanel.setNotifier(notifier); managePlayersPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Players", null, managePlayersPanel, null, 1); administrationPanel = new AdministrationPanel(); administrationPanel.setParentWindow(this); administrationPanel.setDatabase(database); administrationPanel.setNotifier(notifier); administrationPanel.setLicenseManager(licenseManager); administrationPanel.afterPropertiesSet(); mainTabbedPane.insertTab("Administration", null, administrationPanel, null, 1); ChatPanel chatPanel = new ChatPanel(peerManager); chatPanel.setBorder(new EmptyBorder(0, 0, 0, 0)); javax.swing.GroupLayout chatPanelLayout = new javax.swing.GroupLayout(this.chatParentPanel); this.chatParentPanel.setLayout(chatPanelLayout); chatPanelLayout .setHorizontalGroup(chatPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(chatPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); chatPanelLayout .setVerticalGroup(chatPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(chatPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); this.chatParentPanel.repaint(); this.chatParentPanel.revalidate(); }
From source file:imageuploader.ImgWindow.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 a v a2 s . co m */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jFC_Images = new javax.swing.JFileChooser(); jD_Alert = new javax.swing.JDialog(); jScrollPane2 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); jMenuBar2 = new javax.swing.JMenuBar(); jMenu3 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); jMenu5 = new javax.swing.JMenu(); jMenuItem2 = new javax.swing.JMenuItem(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jTF_StyleCode = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jCB_Colors = new javax.swing.JComboBox(); jLabel4 = new javax.swing.JLabel(); jB_upload = new javax.swing.JButton(); jScrollPane3 = new javax.swing.JScrollPane(); jL_Info = new javax.swing.JList(); jB_Remove = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jCHBox_MY = new javax.swing.JCheckBox(); jCHB_CA = new javax.swing.JCheckBox(); jCHB_AZ = new javax.swing.JCheckBox(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMI_colorFile = new javax.swing.JMenuItem(); jMenu6 = new javax.swing.JMenu(); jMenuItem3 = new javax.swing.JMenuItem(); javax.swing.GroupLayout jD_AlertLayout = new javax.swing.GroupLayout(jD_Alert.getContentPane()); jD_Alert.getContentPane().setLayout(jD_AlertLayout); jD_AlertLayout.setHorizontalGroup(jD_AlertLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 400, Short.MAX_VALUE)); jD_AlertLayout.setVerticalGroup(jD_AlertLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 300, Short.MAX_VALUE)); jList1.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane2.setViewportView(jList1); jMenu3.setText("File"); jMenuBar2.add(jMenu3); jMenu4.setText("Edit"); jMenuBar2.add(jMenu4); jMenu5.setText("jMenu5"); jMenuItem2.setText("jMenuItem2"); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Myron Upload Images"); setResizable(false); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jLabel1.setText("Create Images"); jLabel2.setText("Style Code"); jLabel3.setText("Color"); jCB_Colors.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Click in Edit-> Color File" })); jCB_Colors.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCB_ColorsActionPerformed(evt); } }); jLabel4.setText("Upload Images"); jB_upload.setText("Upload"); jB_upload.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jB_uploadMouseClicked(evt); } }); DefaultListModel listModel = new DefaultListModel(); jL_Info.setModel(listModel); jScrollPane3.setViewportView(jL_Info); jB_Remove.setFont(new java.awt.Font("Tahoma", 1, 8)); // NOI18N jB_Remove.setText("-"); jB_Remove.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jB_RemoveMouseClicked(evt); } }); jLabel5.setText("Upload FTP"); jCHBox_MY.setText("MY"); jCHB_CA.setText("CA"); jCHB_AZ.setText("AZ"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout .setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel1).addGap(69, 69, 69)) .addGroup(jPanel1Layout .createSequentialGroup().addGroup(jPanel1Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addComponent( jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jB_Remove, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout .createSequentialGroup().addComponent(jLabel4).addGap(18, 18, 18) .addComponent(jB_upload, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabel5)) .addGap(35, 35, 35) .addGroup(jPanel1Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jCB_Colors, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTF_StyleCode, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jCHBox_MY).addGap(18, 18, 18) .addComponent(jCHB_CA) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCHB_AZ))))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel1) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2).addComponent(jTF_StyleCode, 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(jLabel3).addComponent(jCB_Colors, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5).addComponent(jCHBox_MY).addComponent(jCHB_CA) .addComponent(jCHB_AZ)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jB_upload, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jB_Remove, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(25, 25, 25))); jMenu1.setText("File"); jMenuBar1.add(jMenu1); jMenu2.setText("Edit"); jMI_colorFile.setText("Color File"); jMI_colorFile.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jMI_colorFileMouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { jMI_colorFileMouseEntered(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jMI_colorFileMousePressed(evt); } }); jMenu2.add(jMI_colorFile); jMenuBar1.add(jMenu2); jMenu6.setText("FTP"); jMenuItem3.setText("FTP Access"); jMenuItem3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jMenuItem3MouseClicked(evt); } public void mouseEntered(java.awt.event.MouseEvent evt) { jMenuItem3MouseEntered(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jMenuItem3MousePressed(evt); } }); jMenu6.add(jMenuItem3); jMenuBar1.add(jMenu6); 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().addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addContainerGap())); pack(); }
From source file:lookandfeel.SynthDialog.java
public SynthDialog() { JLabel label = new JLabel("Find What:");; JTextField textField = new JTextField(); JCheckBox caseCheckBox = new JCheckBox("Match Case"); JCheckBox wrapCheckBox = new JCheckBox("Wrap Around"); JCheckBox wholeCheckBox = new JCheckBox("Whole Words"); JCheckBox backCheckBox = new JCheckBox("Search Backwards"); JButton findButton = new JButton("Find"); JButton cancelButton = new JButton("Cancel"); // remove redundant default border of check boxes - they would hinder // correct spacing and aligning (maybe not needed on some look and feels) caseCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); wrapCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); wholeCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); backCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); GroupLayout layout = new GroupLayout(getContentPane()); getContentPane().setLayout(layout);//from www . j ava 2 s .c o m layout.setAutoCreateGaps(true); layout.setAutoCreateContainerGaps(true); layout.setHorizontalGroup(layout.createSequentialGroup() .addComponent(label) .addGroup(layout.createParallelGroup(LEADING) .addComponent(textField) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(LEADING) .addComponent(caseCheckBox) .addComponent(wholeCheckBox)) .addGroup(layout.createParallelGroup(LEADING) .addComponent(wrapCheckBox) .addComponent(backCheckBox)))) .addGroup(layout.createParallelGroup(LEADING) .addComponent(findButton) .addComponent(cancelButton)) ); layout.linkSize(SwingConstants.HORIZONTAL, findButton, cancelButton); layout.setVerticalGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(BASELINE) .addComponent(label) .addComponent(textField) .addComponent(findButton)) .addGroup(layout.createParallelGroup(LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(BASELINE) .addComponent(caseCheckBox) .addComponent(wrapCheckBox)) .addGroup(layout.createParallelGroup(BASELINE) .addComponent(wholeCheckBox) .addComponent(backCheckBox))) .addComponent(cancelButton)) ); setTitle("Find"); pack(); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }
From source file:Interfaz.VnServidorReportes.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 w w . j ava2s . c om */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel4 = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); lblTiketsAtendidos = new javax.swing.JLabel(); lblTicketsPendientes = new javax.swing.JLabel(); lblTicketsSinCategorizar = new javax.swing.JLabel(); lblTicketsEnSistema = new javax.swing.JLabel(); lblTicketsEnAtencion = new javax.swing.JLabel(); pnGraficoNumTikets = new javax.swing.JPanel(); btnVolverPrincipal = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); ListaActividadReciente = new java.awt.List(); jPanel5 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); cbTipoBusqueda = new javax.swing.JComboBox(); jCheckBox1 = new javax.swing.JCheckBox(); jButton2 = new javax.swing.JButton(); jScrollPane4 = new javax.swing.JScrollPane(); jList4 = new javax.swing.JList(); jlReportes = new java.awt.List(); jButton1 = new javax.swing.JButton(); calendariodesde = new com.toedter.calendar.JDateChooser(); calendariohasta = new com.toedter.calendar.JDateChooser(); jLabel3 = new javax.swing.JLabel(); tiempopromedio = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setResizable(false); jTabbedPane2.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jTabbedPane2.setPreferredSize(new java.awt.Dimension(800, 500)); jTabbedPane2.setRequestFocusEnabled(false); jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Status General ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri Light", 0, 14), new java.awt.Color(255, 153, 0))); // NOI18N lblTiketsAtendidos.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N lblTiketsAtendidos.setText("TIkets Atendidos "); lblTicketsPendientes.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N lblTicketsPendientes.setText("Tikets Pendientes"); lblTicketsSinCategorizar.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N lblTicketsSinCategorizar.setText("Tikets Sin Categorizar"); lblTicketsEnSistema.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N lblTicketsEnSistema.setText("Total Tikets en Sistema"); lblTicketsEnAtencion.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N lblTicketsEnAtencion.setText("Tikets Aun En Atencion"); javax.swing.GroupLayout pnGraficoNumTiketsLayout = new javax.swing.GroupLayout(pnGraficoNumTikets); pnGraficoNumTikets.setLayout(pnGraficoNumTiketsLayout); pnGraficoNumTiketsLayout.setHorizontalGroup(pnGraficoNumTiketsLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 302, Short.MAX_VALUE)); pnGraficoNumTiketsLayout.setVerticalGroup(pnGraficoNumTiketsLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); btnVolverPrincipal.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N btnVolverPrincipal.setText("Volver"); btnVolverPrincipal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnVolverPrincipalActionPerformed(evt); } }); 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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(lblTicketsEnSistema, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(lblTiketsAtendidos, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)) .addComponent(lblTicketsEnAtencion, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblTicketsPendientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(lblTicketsSinCategorizar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(btnVolverPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(pnGraficoNumTikets, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup().addComponent(lblTiketsAtendidos) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lblTicketsEnAtencion) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lblTicketsPendientes) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lblTicketsSinCategorizar) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(lblTicketsEnSistema) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 114, Short.MAX_VALUE) .addComponent(btnVolverPrincipal).addContainerGap()) .addComponent(pnGraficoNumTikets, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Actividad Reciente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri Light", 0, 18), new java.awt.Color(255, 102, 0))); // NOI18N ListaActividadReciente.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { ListaActividadRecienteItemStateChanged(evt); } }); ListaActividadReciente.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ListaActividadRecienteActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( ListaActividadReciente, javax.swing.GroupLayout.DEFAULT_SIZE, 409, Short.MAX_VALUE)); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ListaActividadReciente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup().addContainerGap() .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); jTabbedPane2.addTab("Estado", jPanel4); jLabel2.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jLabel2.setText(" hasta:"); jLabel1.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jLabel1.setText("Buscar Tickets desde:"); cbTipoBusqueda.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N cbTipoBusqueda.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Todos", "Fernando", "Junior", "Luis" })); cbTipoBusqueda.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cbTipoBusquedaActionPerformed(evt); } }); jCheckBox1.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jCheckBox1.setText("Buscar Desde el Origen de los tiempos"); jCheckBox1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBox1ActionPerformed(evt); } }); jButton2.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jButton2.setText("Buscar"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jList4.setModel(new javax.swing.AbstractListModel() { String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); jScrollPane4.setViewportView(jList4); jlReportes.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jlReportesItemStateChanged(evt); } }); jlReportes.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jlReportesActionPerformed(evt); } }); jButton1.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jButton1.setText("Volver"); jLabel3.setFont(new java.awt.Font("Calibri Light", 0, 14)); // NOI18N jLabel3.setText("Tiempo promedio de atencion:"); 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().addGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(calendariohasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cbTipoBusqueda, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(calendariodesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton1) .addGroup(jPanel5Layout.createSequentialGroup().addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(tiempopromedio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jlReportes, javax.swing.GroupLayout.DEFAULT_SIZE, 691, Short.MAX_VALUE) .addContainerGap())); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup().addGap(49, 49, 49) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(calendariodesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel2).addComponent(calendariohasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jCheckBox1).addGap(34, 34, 34) .addComponent(cbTipoBusqueda, 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) .addGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(tiempopromedio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton1).addGap(21, 21, 21)) .addGroup(jPanel5Layout.createSequentialGroup().addContainerGap().addComponent(jlReportes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap())); jTabbedPane2.addTab("Rendimiento", jPanel5); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1037, Short.MAX_VALUE)); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap() .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 336, Short.MAX_VALUE) .addContainerGap())); pack(); }
From source file:com.cch.aj.entryrecorder.frame.SearchJFrame.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 www .j a v a2s.c om */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); jPanel17 = new javax.swing.JPanel(); jPanel18 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tblSearch = new javax.swing.JTable(); jPanel19 = new javax.swing.JPanel(); btnSearch = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtShift = new javax.swing.JTextField(); txtProduct = new javax.swing.JTextField(); txtBatch = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new java.awt.GridBagLayout()); jPanel17.setLayout(new java.awt.GridBagLayout()); jPanel18.setLayout(new java.awt.GridBagLayout()); tblSearch.setAutoCreateRowSorter(true); tblSearch.setModel(new javax.swing.table.DefaultTableModel(new Object[][] { }, new String[] { "EntryId", "Shift", "Product Code", "Created Date" }) { Class[] types = new Class[] { java.lang.Integer.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jScrollPane2.setViewportView(tblSearch); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; jPanel18.add(jScrollPane2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.5; jPanel17.add(jPanel18, gridBagConstraints); jPanel19.setLayout(new java.awt.GridBagLayout()); btnSearch.setText("SEARCH"); btnSearch.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSearchActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(btnSearch, gridBagConstraints); jLabel2.setText("SHIFT"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 7, 9, 7); jPanel19.add(jLabel2, gridBagConstraints); jLabel3.setText("PRODUCT CODE"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 7, 9, 7); jPanel19.add(jLabel3, gridBagConstraints); jLabel4.setText("BATCH NUMBER"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.insets = new java.awt.Insets(9, 7, 9, 7); jPanel19.add(jLabel4, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtShift, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtProduct, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 4; gridBagConstraints.ipady = 4; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(9, 33, 9, 33); jPanel19.add(txtBatch, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.5; jPanel17.add(jPanel19, gridBagConstraints); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 1093, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 1093, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))); jPanel1Layout .setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 622, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 622, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 36, 0, 36); getContentPane().add(jPanel1, gridBagConstraints); jLabel1.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel1.setText("Search"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(10, 0, 10, 0); getContentPane().add(jLabel1, gridBagConstraints); pack(); }
From source file:it.unibas.spicygui.vista.wizard.PanelWizardImpl.java
/** This method is called from within the constructor to * initialize the form.//from w w w . j a va2 s .co 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() { labelDataSource = new javax.swing.JLabel(); comboDataSourceType = new javax.swing.JComboBox(); labelDataSourceType = new javax.swing.JLabel(); panelOptions = new javax.swing.JPanel(); labelDataSource.setText(""); comboDataSourceType.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); comboDataSourceType.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { comboDataSourceTypeActionPerformed(evt); } }); labelDataSourceType.setText(""); panelOptions.setLayout(new java.awt.BorderLayout()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(panelOptions, javax.swing.GroupLayout.DEFAULT_SIZE, 414, Short.MAX_VALUE) .addGroup( layout.createSequentialGroup().addComponent(labelDataSourceType).addGap(18, 18, 18) .addComponent(comboDataSourceType, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(labelDataSource)).addContainerGap())); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(labelDataSource) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(labelDataSourceType).addComponent(comboDataSourceType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(panelOptions, javax.swing.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE) .addContainerGap())); }
From source file:mupomat.view.PodrskaLozinka.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 w w.jav a2 s .c om*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); txtEmail = new javax.swing.JTextField(); btnPosalji = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jLabel1.setText("Upiite e-mail koji ste koristili pri registraciji i poslat emo Vam lozinku."); txtEmail.setHorizontalAlignment(javax.swing.JTextField.CENTER); btnPosalji.setText("Poalji zahtjev"); btnPosalji.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnPosalji.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPosaljiActionPerformed(evt); } }); 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) .addComponent(jLabel1) .addGroup(layout.createSequentialGroup() .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPosalji))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPosalji)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); pack(); }
From source file:org.nekorp.workflow.desktop.view.ServicioView.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 a va 2 s. c o m*/ */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { selector = new javax.swing.ButtonGroup(); menuBackground = new javax.swing.JPanel(); menuContainer = new javax.swing.JPanel(); jToolBar1 = new javax.swing.JToolBar(); guardarServicio = new org.nekorp.workflow.desktop.view.binding.CustomEnabledBindingJButton(); mensaje = new javax.swing.JLabel(); ordenServicio = new org.nekorp.workflow.desktop.view.binding.CustomEnabledBindingJButton(); filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0)); cerrarServicio = new javax.swing.JButton(); selectorContainer = new javax.swing.JPanel(); selectorTool = new javax.swing.JToolBar(); clienteSelector = new javax.swing.JToggleButton(); autoSelector = new javax.swing.JToggleButton(); bitacoraSelector = new javax.swing.JToggleButton(); presupuestoSelector = new javax.swing.JToggleButton(); inventarioSelector = new javax.swing.JToggleButton(); cobranzaSelector = new javax.swing.JToggleButton(); datos = new javax.swing.JPanel(); clientePanel = new javax.swing.JPanel(); autoPanel = new javax.swing.JPanel(); bitacoraPanel = new javax.swing.JPanel(); presupuestoPanel = new javax.swing.JPanel(); inventarioPanel = new javax.swing.JPanel(); cobranzaPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); setBackground(new java.awt.Color(255, 255, 255)); menuBackground.setBackground(new java.awt.Color(102, 102, 102)); jToolBar1.setBackground(new java.awt.Color(51, 51, 51)); jToolBar1.setBorder(null); jToolBar1.setFloatable(false); guardarServicio.setBackground(new java.awt.Color(51, 51, 51)); guardarServicio.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N guardarServicio.setForeground(new java.awt.Color(255, 255, 255)); guardarServicio.setText("Guardar"); guardarServicio.setFocusable(false); guardarServicio.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); guardarServicio.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); guardarServicio.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { guardarServicioActionPerformed(evt); } }); jToolBar1.add(guardarServicio); mensaje.setText(" "); jToolBar1.add(mensaje); ordenServicio.setBackground(new java.awt.Color(51, 51, 51)); ordenServicio.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N ordenServicio.setForeground(new java.awt.Color(255, 255, 255)); ordenServicio.setText("Orden de servicio"); ordenServicio.setFocusable(false); ordenServicio.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); ordenServicio.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); ordenServicio.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ordenServicioActionPerformed(evt); } }); jToolBar1.add(ordenServicio); jToolBar1.add(filler1); cerrarServicio.setBackground(new java.awt.Color(51, 51, 51)); cerrarServicio.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N cerrarServicio.setForeground(new java.awt.Color(255, 255, 255)); cerrarServicio.setText("Cerrar"); cerrarServicio.setFocusable(false); cerrarServicio.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); cerrarServicio.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); cerrarServicio.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cerrarServicioActionPerformed(evt); } }); jToolBar1.add(cerrarServicio); javax.swing.GroupLayout menuContainerLayout = new javax.swing.GroupLayout(menuContainer); menuContainer.setLayout(menuContainerLayout); menuContainerLayout.setHorizontalGroup( menuContainerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); menuContainerLayout.setVerticalGroup(menuContainerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(menuContainerLayout.createSequentialGroup().addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))); javax.swing.GroupLayout menuBackgroundLayout = new javax.swing.GroupLayout(menuBackground); menuBackground.setLayout(menuBackgroundLayout); menuBackgroundLayout.setHorizontalGroup( menuBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( menuContainer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); menuBackgroundLayout.setVerticalGroup( menuBackgroundLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( menuContainer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)); selectorTool.setBackground(new java.awt.Color(153, 153, 153)); selectorTool.setFloatable(false); selectorTool.setRollover(true); selector.add(clienteSelector); clienteSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N clienteSelector.setText("Cliente"); clienteSelector.setFocusable(false); clienteSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); clienteSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); clienteSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clienteSelectorActionPerformed(evt); } }); selectorTool.add(clienteSelector); selector.add(autoSelector); autoSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N autoSelector.setText("Auto"); autoSelector.setFocusable(false); autoSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); autoSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); autoSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { autoSelectorActionPerformed(evt); } }); selectorTool.add(autoSelector); selector.add(bitacoraSelector); bitacoraSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N bitacoraSelector.setText("Bitacora"); bitacoraSelector.setFocusable(false); bitacoraSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); bitacoraSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); bitacoraSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bitacoraSelectorActionPerformed(evt); } }); selectorTool.add(bitacoraSelector); selector.add(presupuestoSelector); presupuestoSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N presupuestoSelector.setText("Presupuesto"); presupuestoSelector.setFocusable(false); presupuestoSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); presupuestoSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); presupuestoSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { presupuestoSelectorActionPerformed(evt); } }); selectorTool.add(presupuestoSelector); selector.add(inventarioSelector); inventarioSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N inventarioSelector.setText("Inventario de daos"); inventarioSelector.setFocusable(false); inventarioSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); inventarioSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); inventarioSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { inventarioSelectorActionPerformed(evt); } }); selectorTool.add(inventarioSelector); selector.add(cobranzaSelector); cobranzaSelector.setFont(new java.awt.Font("Arial", 0, 11)); // NOI18N cobranzaSelector.setText("Cobranza"); cobranzaSelector.setFocusable(false); cobranzaSelector.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); cobranzaSelector.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); cobranzaSelector.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cobranzaSelectorActionPerformed(evt); } }); selectorTool.add(cobranzaSelector); javax.swing.GroupLayout selectorContainerLayout = new javax.swing.GroupLayout(selectorContainer); selectorContainer.setLayout(selectorContainerLayout); selectorContainerLayout.setHorizontalGroup(selectorContainerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(selectorTool, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); selectorContainerLayout.setVerticalGroup(selectorContainerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(selectorTool, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)); datos.setBackground(new java.awt.Color(255, 255, 255)); datos.setLayout(new java.awt.CardLayout()); clientePanel.setLayout(new java.awt.BorderLayout()); datos.add(clientePanel, "cliente"); autoPanel.setLayout(new java.awt.BorderLayout()); datos.add(autoPanel, "auto"); bitacoraPanel.setLayout(new java.awt.BorderLayout()); datos.add(bitacoraPanel, "bitacora"); presupuestoPanel.setLayout(new java.awt.BorderLayout()); datos.add(presupuestoPanel, "presupuesto"); inventarioPanel.setLayout(new java.awt.BorderLayout()); datos.add(inventarioPanel, "inventario"); cobranzaPanel.setLayout(new java.awt.BorderLayout()); datos.add(cobranzaPanel, "cobranza"); javax.swing.GroupLayout emptyPanelLayout = new javax.swing.GroupLayout(emptyPanel); emptyPanel.setLayout(emptyPanelLayout); emptyPanelLayout.setHorizontalGroup(emptyPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 664, Short.MAX_VALUE)); emptyPanelLayout.setVerticalGroup(emptyPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 387, Short.MAX_VALUE)); datos.add(emptyPanel, "empty"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(datos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(selectorContainer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(menuBackground, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(menuBackground, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(selectorContainer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0).addComponent(datos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); }
From source file:co.com.soinsoftware.hotelero.view.JFRoomDetail.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 ww w. j a v a2 s .co m */ // <editor-fold defaultstate="collapsed" // <editor-fold defaultstate="collapsed" // <editor-fold defaultstate="collapsed" // desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jpTitle = new javax.swing.JPanel(); jlbTitle = new javax.swing.JLabel(); jpClient = new javax.swing.JPanel(); jlbIdentification = new javax.swing.JLabel(); jtfIdentification = new javax.swing.JFormattedTextField(); jlbName = new javax.swing.JLabel(); jtfName = new javax.swing.JTextField(); jlbPhone = new javax.swing.JLabel(); jtfPhone = new javax.swing.JFormattedTextField(); jlbCareer = new javax.swing.JLabel(); jtfCareer = new javax.swing.JTextField(); jlbSiteFrom = new javax.swing.JLabel(); jtfSiteFrom = new javax.swing.JTextField(); jlbSiteTo = new javax.swing.JLabel(); jtfSiteTo = new javax.swing.JTextField(); jlbCompany = new javax.swing.JLabel(); jlbInitialDate = new javax.swing.JLabel(); jdcInitialDate = new com.toedter.calendar.JDateChooser(); jcbCompany = new javax.swing.JComboBox<String>(); jlbFinalDate = new javax.swing.JLabel(); jdcFinalDate = new com.toedter.calendar.JDateChooser(); lbImage = new javax.swing.JLabel(); jpAction = new javax.swing.JPanel(); jbtCheckIn = new javax.swing.JButton(); jbtDelete = new javax.swing.JButton(); jbtClose = new javax.swing.JButton(); setTitle("Hotelero"); setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/images/melvic.png"))); jpTitle.setBackground(new java.awt.Color(255, 255, 255)); jlbTitle.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N jlbTitle.setText("Habitacin"); javax.swing.GroupLayout jpTitleLayout = new javax.swing.GroupLayout(jpTitle); jpTitle.setLayout(jpTitleLayout); jpTitleLayout .setHorizontalGroup(jpTitleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpTitleLayout.createSequentialGroup().addContainerGap().addComponent(jlbTitle) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jpTitleLayout.setVerticalGroup(jpTitleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpTitleLayout.createSequentialGroup().addGap(32, 32, 32).addComponent(jlbTitle) .addContainerGap(34, Short.MAX_VALUE))); jpClient.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12))); // NOI18N jlbIdentification.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbIdentification.setText("Cedula(*):"); jtfIdentification.setEditable(false); jtfIdentification.setBackground(new java.awt.Color(255, 255, 255)); jtfIdentification.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#,##0")))); jtfIdentification.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbName.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbName.setText("Nombre(*):"); jtfName.setEditable(false); jtfName.setBackground(new java.awt.Color(255, 255, 255)); jtfName.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbPhone.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbPhone.setText("Telfono(*):"); jtfPhone.setEditable(false); jtfPhone.setBackground(new java.awt.Color(255, 255, 255)); jtfPhone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0")))); jtfPhone.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbCareer.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbCareer.setText("Profesin:"); jtfCareer.setEditable(false); jtfCareer.setBackground(new java.awt.Color(255, 255, 255)); jtfCareer.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbSiteFrom.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbSiteFrom.setText("Procedencia:"); jtfSiteFrom.setEditable(false); jtfSiteFrom.setBackground(new java.awt.Color(255, 255, 255)); jtfSiteFrom.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbSiteTo.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbSiteTo.setText("Destino:"); jtfSiteTo.setEditable(false); jtfSiteTo.setBackground(new java.awt.Color(255, 255, 255)); jtfSiteTo.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jlbCompany.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbCompany.setText("Empresa:"); jlbInitialDate.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbInitialDate.setText("Fecha de llegada(*):"); jdcInitialDate.setBackground(new java.awt.Color(255, 255, 255)); jdcInitialDate.setEnabled(false); jdcInitialDate.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jcbCompany.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N jcbCompany.setEnabled(false); jlbFinalDate.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jlbFinalDate.setText("Fecha de salida(*):"); jdcFinalDate.setBackground(new java.awt.Color(255, 255, 255)); jdcFinalDate.setEnabled(false); jdcFinalDate.setFont(new java.awt.Font("Verdana", 0, 10)); // NOI18N javax.swing.GroupLayout jpClientLayout = new javax.swing.GroupLayout(jpClient); jpClient.setLayout(jpClientLayout); jpClientLayout.setHorizontalGroup(jpClientLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpClientLayout.createSequentialGroup().addContainerGap().addGroup(jpClientLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpClientLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jtfCareer, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jlbCareer).addComponent(jlbIdentification) .addComponent(jtfIdentification, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jlbName) .addComponent(jtfName, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jlbPhone) .addComponent(jtfPhone, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jlbSiteFrom).addComponent(jtfSiteFrom).addComponent(jlbSiteTo) .addComponent(jtfSiteTo).addComponent(jlbCompany).addComponent(jlbInitialDate) .addComponent(jcbCompany, 0, 200, Short.MAX_VALUE)) .addComponent(jlbFinalDate) .addComponent(jdcFinalDate, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jdcInitialDate, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jpClientLayout.setVerticalGroup(jpClientLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpClientLayout.createSequentialGroup().addContainerGap().addComponent(jlbIdentification) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfIdentification, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jlbName) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbPhone).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbInitialDate) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jdcInitialDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbFinalDate) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jdcFinalDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbCareer).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfCareer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbSiteFrom) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfSiteFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbSiteTo).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jtfSiteTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jlbCompany) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jcbCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); lbImage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/soin.png"))); // NOI18N jpAction.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 0, 11))); // NOI18N jbtCheckIn.setBackground(new java.awt.Color(16, 135, 221)); jbtCheckIn.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jbtCheckIn.setForeground(new java.awt.Color(255, 255, 255)); jbtCheckIn.setText("Check-In"); jbtCheckIn.setPreferredSize(new java.awt.Dimension(89, 23)); jbtCheckIn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtCheckInActionPerformed(evt); } }); jbtDelete.setBackground(new java.awt.Color(16, 135, 221)); jbtDelete.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jbtDelete.setForeground(new java.awt.Color(255, 255, 255)); jbtDelete.setText("Eliminar"); jbtDelete.setPreferredSize(new java.awt.Dimension(89, 23)); jbtDelete.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtDeleteActionPerformed(evt); } }); jbtClose.setBackground(new java.awt.Color(16, 135, 221)); jbtClose.setFont(new java.awt.Font("Verdana", 1, 10)); // NOI18N jbtClose.setForeground(new java.awt.Color(255, 255, 255)); jbtClose.setText("Cerrar"); jbtClose.setPreferredSize(new java.awt.Dimension(89, 23)); jbtClose.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtCloseActionPerformed(evt); } }); javax.swing.GroupLayout jpActionLayout = new javax.swing.GroupLayout(jpAction); jpAction.setLayout(jpActionLayout); jpActionLayout.setHorizontalGroup(jpActionLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpActionLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jbtDelete, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jbtCheckIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jbtClose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(23, 23, 23))); jpActionLayout.setVerticalGroup(jpActionLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jpActionLayout.createSequentialGroup().addGap(23, 23, 23).addGroup(jpActionLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jbtCheckIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jbtDelete, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jbtClose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jpTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(lbImage, javax.swing.GroupLayout.PREFERRED_SIZE, 388, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup().addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jpClient, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jpAction, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jpTitle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jpClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jpAction, 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(lbImage, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))); pack(); }
From source file:GUI.ServerUI_Client.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 ww .j av a 2 s . com */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jActiveButton = new javax.swing.JToggleButton(); jRadioServerButton = new javax.swing.JRadioButton(); jRadioClientButton = new javax.swing.JRadioButton(); jTextIPclient = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jTextIPserver = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jTextPortClient = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jTextPortServer = new javax.swing.JTextField(); jBeginMeasurement = new javax.swing.JButton(); jGraphPanel = new javax.swing.JPanel(); jTCPpanel = new javax.swing.JPanel(); jSpinner3 = new javax.swing.JSpinner(); jSpinner4 = new javax.swing.JSpinner(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jSpinner5 = new javax.swing.JSpinner(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jSpinner6 = new javax.swing.JSpinner(); jLabel6 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); jTextLogger = new javax.swing.JTextArea(); jLabel11 = new javax.swing.JLabel(); jCheckBoxNagle = new javax.swing.JCheckBox(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setResizable(false); jActiveButton.setText("Active"); jActiveButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jActiveButtonActionPerformed(evt); } }); jRadioServerButton.setText("Server"); jRadioServerButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioServerButtonActionPerformed(evt); } }); jRadioClientButton.setText("Client"); jRadioClientButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioClientButtonActionPerformed(evt); } }); jTextIPclient.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextIPclientActionPerformed(evt); } }); jLabel1.setText("IP"); jTextIPserver.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextIPserverActionPerformed(evt); } }); jLabel2.setText("IP"); jTextPortClient.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextPortClientActionPerformed(evt); } }); jLabel3.setText("Port"); jLabel4.setText("Port"); jTextPortServer.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextPortServerActionPerformed(evt); } }); jBeginMeasurement.setFont(new java.awt.Font("Lucida Grande", 0, 14)); // NOI18N jBeginMeasurement.setText("Begin Measurement"); jBeginMeasurement.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jBeginMeasurementActionPerformed(evt); } }); javax.swing.GroupLayout jGraphPanelLayout = new javax.swing.GroupLayout(jGraphPanel); jGraphPanel.setLayout(jGraphPanelLayout); jGraphPanelLayout.setHorizontalGroup(jGraphPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 491, Short.MAX_VALUE)); jGraphPanelLayout.setVerticalGroup(jGraphPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 293, Short.MAX_VALUE)); jTCPpanel.setBackground(new java.awt.Color(230, 230, 230)); jTCPpanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel7.setText("TCP Receive Window"); jLabel8.setText("TCP Send Window"); jLabel9.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel9.setText("TCP Properties"); jLabel10.setText("Socket Timeout"); jLabel6.setText("Buffers Size"); javax.swing.GroupLayout jTCPpanelLayout = new javax.swing.GroupLayout(jTCPpanel); jTCPpanel.setLayout(jTCPpanelLayout); jTCPpanelLayout .setHorizontalGroup( jTCPpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( jTCPpanelLayout.createSequentialGroup().addContainerGap().addGroup(jTCPpanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup( jTCPpanelLayout.createSequentialGroup().addGroup(jTCPpanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jTCPpanelLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jLabel10).addGap(42, 42, 42)) .addGroup(jTCPpanelLayout.createSequentialGroup() .addGroup(jTCPpanelLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( jLabel8) .addComponent(jLabel7) .addComponent(jLabel6)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jTCPpanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jSpinner6, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE) .addComponent(jSpinner5).addComponent(jSpinner4) .addComponent(jSpinner3))) .addGroup(jTCPpanelLayout.createSequentialGroup().addComponent(jLabel9) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); jTCPpanelLayout.setVerticalGroup(jTCPpanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jTCPpanelLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel9).addGap(18, 18, 18) .addGroup(jTCPpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6).addComponent(jSpinner3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jTCPpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7).addComponent(jSpinner4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jTCPpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8).addComponent(jSpinner5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jTCPpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10).addComponent(jSpinner6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap())); jTextLogger.setColumns(20); jTextLogger.setRows(5); jScrollPane1.setViewportView(jTextLogger); jLabel11.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel11.setText("Logger"); jCheckBoxNagle.setText("Disable Nagle Algorithm"); jCheckBoxNagle.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxNagleActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioClientButton).addComponent(jRadioServerButton)) .addGap(25, 25, 25) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup().addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextIPclient, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup().addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextIPserver, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextPortClient, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup().addGap(12, 12, 12) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextPortServer, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addComponent(jBeginMeasurement, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jActiveButton)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBoxNagle) .addComponent(jTCPpanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel11)).addComponent(jGraphPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))) .addGap(14, 14, 14))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jBeginMeasurement, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup().addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jActiveButton) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioClientButton) .addComponent(jTextIPclient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1).addComponent(jLabel3)) .addComponent(jTextPortClient, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextPortServer, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGroup(layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioServerButton) .addComponent(jTextIPserver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2))))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jGraphPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18)) .addGroup(layout.createSequentialGroup().addGap(32, 32, 32) .addComponent(jCheckBoxNagle).addGap(18, 18, 18) .addComponent(jTCPpanel, 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(jLabel11))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(10, Short.MAX_VALUE))); getAccessibleContext().setAccessibleDescription(""); pack(); }