List of usage examples for com.jgoodies.forms.layout CellConstraints xy
public CellConstraints xy(int col, int row)
Examples:
cc.xy(1, 1); cc.xy(1, 3);
From source file:com.spirit.general.gui.panel.JPCuentasBancarias.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown spPanelCuentasBancarias = new JScrollPane(); panelCuentasBancarias = new JPanel(); lblBanco = new JLabel(); cmbBanco = new JComboBox(); lblTipoCuenta = new JLabel(); lblNombre = new JLabel(); cmbTipoCuenta = new JComboBox(); txtCuenta = new JTextField(); lblNumeroCheque = new JLabel(); txtNumeroCheque = new JTextField(); cbCuentaCliente = new JCheckBox(); txtCliente = new JTextField(); btnBuscarCliente = new JButton(); scCuentasDetalles = new JScrollPane(); tblCuentasDetalles = new JTable(); CellConstraints cc = new CellConstraints(); popup = new JPopupMenu(); //======== this ======== setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== spPanelCuentasBancarias ======== {//from w w w .java 2s.c o m //======== panelCuentasBancarias ======== { panelCuentasBancarias.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); ((FormLayout) panelCuentasBancarias.getLayout()).setColumnGroups(new int[][] { { 5, 11 } }); //---- lblBanco ---- lblBanco.setText("Banco:"); panelCuentasBancarias.add(lblBanco, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelCuentasBancarias.add(cmbBanco, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipoCuenta ---- lblTipoCuenta.setText("Tipo de Cuenta:"); panelCuentasBancarias.add(lblTipoCuenta, cc.xywh(9, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblNombre ---- lblNombre.setText("Cuenta:"); panelCuentasBancarias.add(lblNombre, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelCuentasBancarias.add(cmbTipoCuenta, cc.xywh(11, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelCuentasBancarias.add(txtCuenta, cc.xywh(5, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblNumeroCheque ---- lblNumeroCheque.setText("N\u00famero de Cheque:"); panelCuentasBancarias.add(lblNumeroCheque, cc.xywh(9, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCuentasBancarias.add(txtNumeroCheque, cc.xy(11, 5)); //---- cbCuentaCliente ---- cbCuentaCliente.setText("Cuenta de cliente"); panelCuentasBancarias.add(cbCuentaCliente, cc.xy(3, 7)); //---- txtCliente ---- txtCliente.setEditable(false); panelCuentasBancarias.add(txtCliente, cc.xywh(5, 7, 7, 1)); //---- btnBuscarCliente ---- btnBuscarCliente.setText("Buscar"); panelCuentasBancarias.add(btnBuscarCliente, cc.xy(13, 7)); //======== scCuentasDetalles ======== { //---- tblCuentasDetalles ---- tblCuentasDetalles.setModel( new DefaultTableModel(new Object[][] { { null, null, null, null }, }, new String[] { "Banco", "Tipo de Cuenta", "N\u00famero de Cuenta", "N\u00famero de Cheque" }) { boolean[] columnEditable = new boolean[] { false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tblCuentasDetalles.setPreferredScrollableViewportSize(new Dimension(450, 150)); tblCuentasDetalles.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); scCuentasDetalles.setViewportView(tblCuentasDetalles); } panelCuentasBancarias.add(scCuentasDetalles, cc.xywh(3, 11, 11, 1)); } spPanelCuentasBancarias.setViewportView(panelCuentasBancarias); } add(spPanelCuentasBancarias, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.general.gui.panel.JPDocumento.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown txtCodigo = new JTextField(); txtNombre = new JTextField(); txtAbreviado = new JTextField(); cmbTipoDocumento = new JComboBox(); cmbEstado = new JComboBox(); cmbBonificacion = new JComboBox(); cmbPrecioEspecial = new JComboBox(); cmbDescuentoEspecial = new JComboBox(); cmbMulta = new JComboBox(); lblMulta = new JLabel(); lblCodigo = new JLabel(); lblNombre = new JLabel(); lblAbreviado = new JLabel(); lblTipoDocumento = new JLabel(); lblEstado = new JLabel(); lblDiferido = new JLabel(); cmbDiferido = new JComboBox(); lblCheque = new JLabel(); cmbCheque = new JComboBox(); lblBonificacion = new JLabel(); lblPrecioEspecial = new JLabel(); lblProtesto = new JLabel(); cmbProtesto = new JComboBox(); lblDescuentoEspecial = new JLabel(); lblRetencionRenta = new JLabel(); cmbRetencionRenta = new JComboBox(); lblPideAutorizacion = new JLabel(); cmbPideAutorizacion = new JComboBox(); lblInteres = new JLabel(); cmbInteres = new JComboBox(); lblRetencionIva = new JLabel(); cmbRetencionIva = new JComboBox(); spTblDocumento = new JScrollPane(); tblDocumento = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(45)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); add(txtCodigo, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(txtNombre, cc.xywh(5, 5, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(txtAbreviado, cc.xywh(5, 7, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(cmbTipoDocumento, cc.xywh(5, 9, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(cmbEstado, cc.xywh(5, 11, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(cmbBonificacion, cc.xywh(5, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); add(cmbPrecioEspecial, cc.xy(17, 13)); add(cmbDescuentoEspecial, cc.xy(5, 15)); add(cmbMulta, cc.xy(17, 15));//from w w w .ja va 2 s.c om //---- lblMulta ---- lblMulta.setText("Cobra multa:"); add(lblMulta, cc.xywh(15, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblCodigo ---- lblCodigo.setText("C\u00f3digo:"); add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblNombre ---- lblNombre.setText("Nombre:"); add(lblNombre, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblAbreviado ---- lblAbreviado.setText("Abreviado:"); add(lblAbreviado, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblTipoDocumento ---- lblTipoDocumento.setText("Tipo Documento:"); add(lblTipoDocumento, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblDiferido ---- lblDiferido.setText("Es diferido:"); add(lblDiferido, cc.xywh(15, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbDiferido, cc.xy(17, 11)); //---- lblCheque ---- lblCheque.setText("Es cheque:"); add(lblCheque, cc.xywh(21, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbCheque, cc.xy(23, 11)); //---- lblBonificacion ---- lblBonificacion.setText("Es de Bonificaci\u00f3n:"); add(lblBonificacion, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblPrecioEspecial ---- lblPrecioEspecial.setText("Precio especial:"); add(lblPrecioEspecial, cc.xywh(15, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblProtesto ---- lblProtesto.setText("Admite protesto:"); add(lblProtesto, cc.xywh(21, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbProtesto, cc.xy(23, 13)); //---- lblDescuentoEspecial ---- lblDescuentoEspecial.setText("Descuento especial:"); add(lblDescuentoEspecial, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblRetencionRenta ---- lblRetencionRenta.setText("Retiene renta:"); lblRetencionRenta.setHorizontalAlignment(SwingConstants.RIGHT); add(lblRetencionRenta, cc.xy(21, 15)); add(cmbRetencionRenta, cc.xy(23, 15)); //---- lblPideAutorizacion ---- lblPideAutorizacion.setText("Pide Autorizaci\u00f3n:"); add(lblPideAutorizacion, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); add(cmbPideAutorizacion, cc.xywh(5, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblInteres ---- lblInteres.setText("Cobra inter\u00e9s:"); add(lblInteres, cc.xywh(15, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbInteres, cc.xy(17, 17)); //---- lblRetencionIva ---- lblRetencionIva.setText("Retiene IVA:"); add(lblRetencionIva, cc.xywh(21, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbRetencionIva, cc.xy(23, 17)); //======== spTblDocumento ======== { //---- tblDocumento ---- tblDocumento.setModel(new DefaultTableModel(new Object[][] { { null, null, null, null }, }, new String[] { "Codigo", "Nombre", "Tipo Documento", "Estado" }) { boolean[] columnEditable = new boolean[] { false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblDocumento.setViewportView(tblDocumento); } add(spTblDocumento, cc.xywh(3, 21, 23, 5)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.general.gui.panel.JPEmpleado.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); spPanelEmpleado = new JScrollPane(); panelEmpleado = new JPanel(); txtCodigo = new JTextField(); lblCodigo = new JLabel(); fsIdentificacion = compFactory.createSeparator("Identificaci\u00f3n:"); lblNombres = new JLabel(); txtNombres = new JTextField(); lblApellidos = new JLabel(); lblTipoIdentificacion = new JLabel(); cmbTipoIdentificacion = new JComboBox(); lblIdentificacion = new JLabel(); txtIdentificacion = new JTextField(); txtApellidos = new JTextField(); lblProfesion = new JLabel(); lblDomicilio = new JLabel(); lblTelefono = new JLabel(); lblEmail = new JLabel(); fsDatosPersonales = compFactory.createSeparator("Datos Personales:"); txtProfesion = new JTextField(); lblBanco = new JLabel(); cmbBanco = new JComboBox(); txtDomicilio = new JTextField(); lblTipoCuenta = new JLabel(); cmbTipoCuenta = new JComboBox(); txtTelefono = new JTextField(); lblNumeroCuenta = new JLabel(); txtNumeroCuenta = new JTextField(); lblCelular = new JLabel(); txtCelular = new JTextField(); txtEmail = new JTextField(); fsDatosOficina = compFactory.createSeparator("Datos Oficina:"); lblOficina = new JLabel(); cmbOficina = new JComboBox(); lblDepartamento = new JLabel(); cmbDepartamento = new JComboBox(); lblJefe = new JLabel(); txtJefe = new JTextField(); btnBuscarJefe = new JButton(); btnBorrarJefe = new JButton(); lblTipoEmpleado = new JLabel(); cmbTipoEmpleado = new JComboBox(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); lblExtesion = new JLabel(); txtExtension = new JTextField(); lblNivel = new JLabel(); txtNivel = new JTextField(); CellConstraints cc = new CellConstraints(); //======== this ======== setName("Empleado"); setLayout(new FormLayout("default:grow", "fill:15dlu:grow")); //======== spPanelEmpleado ======== {/*from w ww .jav a2 s . c o m*/ //======== panelEmpleado ======== { panelEmpleado.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(70)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(16)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); ((FormLayout) panelEmpleado.getLayout()).setColumnGroups(new int[][] { { 1, 17 }, { 7, 15 } }); panelEmpleado.add(txtCodigo, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblCodigo ---- lblCodigo.setText("C\u00f3digo:"); panelEmpleado.add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(fsIdentificacion, cc.xywh(3, 5, 13, 1)); //---- lblNombres ---- lblNombres.setText("Nombres:"); panelEmpleado.add(lblNombres, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtNombres, cc.xywh(5, 7, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblApellidos ---- lblApellidos.setText("Apellidos:"); panelEmpleado.add(lblApellidos, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblTipoIdentificacion ---- lblTipoIdentificacion.setText("Tipo Identificaci\u00f3n:"); panelEmpleado.add(lblTipoIdentificacion, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(cmbTipoIdentificacion, cc.xywh(5, 11, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblIdentificacion ---- lblIdentificacion.setText("N\u00famero Identificaci\u00f3n:"); panelEmpleado.add(lblIdentificacion, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtIdentificacion, cc.xywh(5, 13, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelEmpleado.add(txtApellidos, cc.xywh(5, 9, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblProfesion ---- lblProfesion.setText("Profesi\u00f3n:"); panelEmpleado.add(lblProfesion, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblDomicilio ---- lblDomicilio.setText("Domicilio:"); panelEmpleado.add(lblDomicilio, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblTelefono ---- lblTelefono.setText("Tel\u00e9fono:"); panelEmpleado.add(lblTelefono, cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblEmail ---- lblEmail.setText("E-mail:"); panelEmpleado.add(lblEmail, cc.xywh(3, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(fsDatosPersonales, cc.xywh(3, 15, 13, 1)); panelEmpleado.add(txtProfesion, cc.xywh(5, 17, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblBanco ---- lblBanco.setText("Banco:"); panelEmpleado.add(lblBanco, cc.xywh(13, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelEmpleado.add(cmbBanco, cc.xy(15, 17)); panelEmpleado.add(txtDomicilio, cc.xywh(5, 19, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipoCuenta ---- lblTipoCuenta.setText("Tipo de Cuenta:"); panelEmpleado.add(lblTipoCuenta, cc.xy(13, 19)); panelEmpleado.add(cmbTipoCuenta, cc.xy(15, 19)); panelEmpleado.add(txtTelefono, cc.xywh(5, 21, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblNumeroCuenta ---- lblNumeroCuenta.setText("No. de Cuenta:"); panelEmpleado.add(lblNumeroCuenta, cc.xywh(13, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtNumeroCuenta ---- txtNumeroCuenta.setHorizontalAlignment(SwingConstants.RIGHT); panelEmpleado.add(txtNumeroCuenta, cc.xy(15, 21)); //---- lblCelular ---- lblCelular.setText("Celular:"); panelEmpleado.add(lblCelular, cc.xywh(3, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtCelular, cc.xywh(5, 23, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelEmpleado.add(txtEmail, cc.xywh(5, 25, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelEmpleado.add(fsDatosOficina, cc.xywh(3, 27, 13, 1)); //---- lblOficina ---- lblOficina.setText("Oficina:"); panelEmpleado.add(lblOficina, cc.xywh(3, 29, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(cmbOficina, cc.xywh(5, 29, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblDepartamento ---- lblDepartamento.setText("Departamento:"); panelEmpleado.add(lblDepartamento, cc.xywh(13, 29, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(cmbDepartamento, cc.xywh(15, 29, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblJefe ---- lblJefe.setText("Jefe:"); panelEmpleado.add(lblJefe, cc.xywh(3, 31, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtJefe, cc.xywh(5, 31, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- btnBuscarJefe ---- btnBuscarJefe.setIcon(null); btnBuscarJefe.setToolTipText("Buscar jefe"); panelEmpleado.add(btnBuscarJefe, cc.xywh(9, 31, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- btnBorrarJefe ---- btnBorrarJefe.setToolTipText("Borro jefe seleccionado"); panelEmpleado.add(btnBorrarJefe, cc.xywh(11, 31, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipoEmpleado ---- lblTipoEmpleado.setText("Tipo Empleado:"); panelEmpleado.add(lblTipoEmpleado, cc.xywh(13, 31, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(cmbTipoEmpleado, cc.xywh(15, 31, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblEstado ---- lblEstado.setText("Estado:"); panelEmpleado.add(lblEstado, cc.xywh(3, 33, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(cmbEstado, cc.xywh(5, 33, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblExtesion ---- lblExtesion.setText("Ext.Oficina:"); panelEmpleado.add(lblExtesion, cc.xywh(13, 33, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtExtension, cc.xywh(15, 33, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblNivel ---- lblNivel.setText("Nivel:"); panelEmpleado.add(lblNivel, cc.xywh(13, 35, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelEmpleado.add(txtNivel, cc.xywh(15, 35, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } spPanelEmpleado.setViewportView(panelEmpleado); } add(spPanelEmpleado, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.inventario.gui.panel.JPDemoServicioWebConsultaStock.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); sDemoServicioWebConsultaStock = compFactory.createSeparator("Demo Servicio Web Consulta Stock"); lblIntervaloMinutos = new JLabel(); txtIntervaloMinutos = new JTextField(); lblRecuperarTodos = new JLabel(); rbSiRecuperarTodos = new JRadioButton(); rbNoRecuperarTodos = new JRadioButton(); btnEjecutar = new JButton(); lblSku = new JLabel(); lblStock = new JLabel(); spResultados = new JScrollPane(); txtResultados = new JTextArea(); lblTotalItemsDevueltos = new JLabel(); lblNumeroItems = new JLabel(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); add(sDemoServicioWebConsultaStock, cc.xywh(3, 3, 9, 1)); //---- lblIntervaloMinutos ---- lblIntervaloMinutos.setText("Intervalo [min]:"); add(lblIntervaloMinutos, cc.xy(3, 5)); //---- txtIntervaloMinutos ---- txtIntervaloMinutos.setHorizontalAlignment(SwingConstants.RIGHT); add(txtIntervaloMinutos, cc.xywh(5, 5, 3, 1)); //---- lblRecuperarTodos ---- lblRecuperarTodos.setText("Recuperar todos:"); add(lblRecuperarTodos, cc.xy(3, 7)); //---- rbSiRecuperarTodos ---- rbSiRecuperarTodos.setText("S\u00ed"); rbSiRecuperarTodos.setSelected(true); add(rbSiRecuperarTodos, cc.xy(5, 7)); //---- rbNoRecuperarTodos ---- rbNoRecuperarTodos.setText("No"); add(rbNoRecuperarTodos, cc.xy(7, 7)); //---- btnEjecutar ---- btnEjecutar.setText("Ejecutar"); add(btnEjecutar, cc.xy(9, 7));/*w ww . ja va 2 s . c om*/ //---- lblSku ---- lblSku.setText("SKU"); lblSku.setFont(new Font("Tahoma", Font.BOLD, 11)); add(lblSku, cc.xy(3, 11)); //---- lblStock ---- lblStock.setText("| STOCK"); lblStock.setFont(new Font("Tahoma", Font.BOLD, 11)); add(lblStock, cc.xywh(5, 11, 3, 1)); //======== spResultados ======== { //---- txtResultados ---- txtResultados.setRows(10); spResultados.setViewportView(txtResultados); } add(spResultados, cc.xywh(3, 12, 9, 4)); //---- lblTotalItemsDevueltos ---- lblTotalItemsDevueltos.setText("Total items devueltos:"); lblTotalItemsDevueltos.setFont(new Font("Tahoma", Font.BOLD, 11)); add(lblTotalItemsDevueltos, cc.xywh(3, 19, 3, 1)); //---- lblNumeroItems ---- lblNumeroItems.setText("#items"); lblNumeroItems.setHorizontalAlignment(SwingConstants.LEFT); add(lblNumeroItems, cc.xywh(7, 19, 3, 1)); //---- bgRecuperarTodos ---- ButtonGroup bgRecuperarTodos = new ButtonGroup(); bgRecuperarTodos.add(rbSiRecuperarTodos); bgRecuperarTodos.add(rbNoRecuperarTodos); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.inventario.gui.panel.JPNuevoGenerico.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown jtpGenerico = new JideTabbedPane(); spPanelGenerico = new JScrollPane(); panelGenerico = new JPanel(); lblNombre = new JLabel(); txtNombre = new JTextField(); lblAbreviado = new JLabel(); txtAbreviado = new JTextField(); lblTipo = new JLabel(); cmbTipo = new JComboBox(); lblFamiliaGenerico = new JLabel(); cmbFamiliaGenerico = new JComboBox(); lblTipoProducto = new JLabel(); cmbTipoProducto = new JComboBox(); lblLinea = new JLabel(); cmbLinea = new JComboBox(); lblMedida = new JLabel(); cmbMedida = new JComboBox(); lblCobraIvaProveedor = new JLabel(); rbCobraIvaProveedorSi = new JRadioButton(); rbCobraIvaProveedorNo = new JRadioButton(); lblCambiaDescripcion = new JLabel(); rbCambioDescripcionSi = new JRadioButton(); rbCambioDescripcionNo = new JRadioButton(); lblCobraIvaCliente = new JLabel(); rbCobraIvaClienteSi = new JRadioButton(); rbCobraIvaClienteNo = new JRadioButton(); lblServicio = new JLabel(); rbServicioSi = new JRadioButton(); rbServicioNo = new JRadioButton(); lblCobraIce = new JLabel(); rbCobraIceSi = new JRadioButton(); rbCobraIceNo = new JRadioButton(); lblEsInventario = new JLabel(); rbLlevaInventarioSi = new JRadioButton(); rbLlevaInventarioNo = new JRadioButton(); lblAceptaDescuento = new JLabel(); rbAceptaDescuentoSi = new JRadioButton(); rbAceptaDescuentoNo = new JRadioButton(); lblUsaLote = new JLabel(); rbUsaLoteSi = new JRadioButton(); rbUsaLoteNo = new JRadioButton(); lblOtroImpuesto = new JLabel(); txtOtroImpuesto = new JTextField(); lblTieneSerie = new JLabel(); rbTieneSerieSi = new JRadioButton(); rbTieneSerieNo = new JRadioButton(); lblEstadoGenerico = new JLabel(); cmbEstadoGenerico = new JComboBox(); spPanelProducto = new JScrollPane(); panelProducto = new JPanel(); lblProveedorId = new JLabel(); txtProveedor = new JTextField(); btnBuscarProveedor = new JButton(); lblSubproveedor = new JLabel(); txtSubproveedor = new JTextField(); lblCodigoBarras = new JLabel(); txtCodigoBarras = new JTextField(); cbGenerarCodigoBarras = new JCheckBox(); lblMarca = new JLabel(); cmbMarca = new JComboBox(); lblAceptaPromocion = new JLabel(); rbAceptaPromocionSi = new JRadioButton(); rbAceptaPromocionNo = new JRadioButton(); lblModelo = new JLabel(); cmbModelo = new JComboBox(); lblAceptaDevolucion = new JLabel(); rbAceptaDevolucionSi = new JRadioButton(); rbAceptaDevolucionNo = new JRadioButton(); lblPresentacionId = new JLabel(); cmbPresentacionId = new JComboBox(); lblPermiteVenta = new JLabel(); rbPermiteVentaSi = new JRadioButton(); rbPermiteVentaNo = new JRadioButton(); lblColor = new JLabel(); cmbColor = new JComboBox(); lblCambioPrecio = new JLabel(); rbCambioPrecioSi = new JRadioButton(); rbCambioPrecioNo = new JRadioButton(); lblOrigenProducto = new JLabel(); cmbOrigenProducto = new JComboBox(); lblEstadoProducto = new JLabel(); cmbEstadoProducto = new JComboBox(); lblPesoBruto = new JLabel(); txtPesoBruto = new JTextField(); lblPesoNeto = new JLabel(); txtPesoNeto = new JTextField(); lblCosto = new JLabel(); txtCosto = new JTextField(); lblMargenMinimo = new JLabel(); txtMargenMinimo = new JTextField(); lblRebate = new JLabel(); txtRebate = new JTextField(); panel1 = new JPanel(); btnAgregarProducto = new JButton(); btnActualizarProducto = new JButton(); btnEliminarProducto = new JButton(); scpProducto = new JScrollPane(); tblProductos = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== jtpGenerico ======== {//w w w .j a v a2 s . c o m //======== spPanelGenerico ======== { //======== panelGenerico ======== { panelGenerico.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblNombre ---- lblNombre.setText("Nombre:"); lblNombre.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblNombre, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(txtNombre, cc.xywh(5, 3, 15, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblAbreviado ---- lblAbreviado.setText("Abreviado:"); lblAbreviado.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblAbreviado, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(txtAbreviado, cc.xywh(5, 5, 15, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipo ---- lblTipo.setText("Tipo:"); lblTipo.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblTipo, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- cmbTipo ---- cmbTipo.setModel(new DefaultComboBoxModel(new String[] { "MEDIOS", "PRODUCCION", "GASTO" })); panelGenerico.add(cmbTipo, cc.xywh(5, 7, 3, 1)); //---- lblFamiliaGenerico ---- lblFamiliaGenerico.setText("Familia del gen\u00e9rico:"); lblFamiliaGenerico.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblFamiliaGenerico, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(cmbFamiliaGenerico, cc.xywh(5, 9, 13, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipoProducto ---- lblTipoProducto.setText("Tipo de producto:"); lblTipoProducto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblTipoProducto, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(cmbTipoProducto, cc.xywh(5, 11, 13, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblLinea ---- lblLinea.setText("L\u00ednea:"); lblLinea.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblLinea, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(cmbLinea, cc.xywh(5, 13, 13, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblMedida ---- lblMedida.setText("Medida:"); lblMedida.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblMedida, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelGenerico.add(cmbMedida, cc.xywh(5, 15, 13, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblCobraIvaProveedor ---- lblCobraIvaProveedor.setText("Cobra IVA Proveedor:"); lblCobraIvaProveedor.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblCobraIvaProveedor, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbCobraIvaProveedorSi ---- rbCobraIvaProveedorSi.setText("S\u00ed"); rbCobraIvaProveedorSi.setSelected(true); panelGenerico.add(rbCobraIvaProveedorSi, cc.xy(5, 17)); //---- rbCobraIvaProveedorNo ---- rbCobraIvaProveedorNo.setText("No"); panelGenerico.add(rbCobraIvaProveedorNo, cc.xy(7, 17)); //---- lblCambiaDescripcion ---- lblCambiaDescripcion.setText("Cambio descripci\u00f3n:"); lblCambiaDescripcion.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblCambiaDescripcion, cc.xywh(11, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbCambioDescripcionSi ---- rbCambioDescripcionSi.setText("S\u00ed"); rbCambioDescripcionSi.setSelected(true); panelGenerico.add(rbCambioDescripcionSi, cc.xy(13, 17)); //---- rbCambioDescripcionNo ---- rbCambioDescripcionNo.setText("No"); panelGenerico.add(rbCambioDescripcionNo, cc.xy(15, 17)); //---- lblCobraIvaCliente ---- lblCobraIvaCliente.setText("Cobra IVA Cliente:"); lblCobraIvaCliente.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblCobraIvaCliente, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- rbCobraIvaClienteSi ---- rbCobraIvaClienteSi.setText("S\u00ed"); rbCobraIvaClienteSi.setSelected(true); panelGenerico.add(rbCobraIvaClienteSi, cc.xy(5, 19)); //---- rbCobraIvaClienteNo ---- rbCobraIvaClienteNo.setText("No"); panelGenerico.add(rbCobraIvaClienteNo, cc.xy(7, 19)); //---- lblServicio ---- lblServicio.setText("Servicio:"); lblServicio.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblServicio, cc.xywh(11, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbServicioSi ---- rbServicioSi.setText("S\u00ed"); rbServicioSi.setSelected(true); panelGenerico.add(rbServicioSi, cc.xy(13, 19)); //---- rbServicioNo ---- rbServicioNo.setText("No"); panelGenerico.add(rbServicioNo, cc.xy(15, 19)); //---- lblCobraIce ---- lblCobraIce.setText("Cobra ICE:"); lblCobraIce.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblCobraIce, cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbCobraIceSi ---- rbCobraIceSi.setText("S\u00ed"); panelGenerico.add(rbCobraIceSi, cc.xy(5, 21)); //---- rbCobraIceNo ---- rbCobraIceNo.setText("No"); rbCobraIceNo.setSelected(true); panelGenerico.add(rbCobraIceNo, cc.xy(7, 21)); //---- lblEsInventario ---- lblEsInventario.setText("Lleva inventario:"); lblEsInventario.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblEsInventario, cc.xywh(11, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- rbLlevaInventarioSi ---- rbLlevaInventarioSi.setText("S\u00ed"); panelGenerico.add(rbLlevaInventarioSi, cc.xy(13, 21)); //---- rbLlevaInventarioNo ---- rbLlevaInventarioNo.setText("No"); rbLlevaInventarioNo.setSelected(true); panelGenerico.add(rbLlevaInventarioNo, cc.xy(15, 21)); //---- lblAceptaDescuento ---- lblAceptaDescuento.setText("Acepta descuento:"); lblAceptaDescuento.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblAceptaDescuento, cc.xywh(3, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- rbAceptaDescuentoSi ---- rbAceptaDescuentoSi.setText("S\u00ed"); rbAceptaDescuentoSi.setSelected(true); panelGenerico.add(rbAceptaDescuentoSi, cc.xy(5, 23)); //---- rbAceptaDescuentoNo ---- rbAceptaDescuentoNo.setText("No"); panelGenerico.add(rbAceptaDescuentoNo, cc.xy(7, 23)); //---- lblUsaLote ---- lblUsaLote.setText("Usa lote:"); lblUsaLote.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblUsaLote, cc.xywh(11, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbUsaLoteSi ---- rbUsaLoteSi.setText("S\u00ed"); panelGenerico.add(rbUsaLoteSi, cc.xy(13, 23)); //---- rbUsaLoteNo ---- rbUsaLoteNo.setText("No"); rbUsaLoteNo.setSelected(true); panelGenerico.add(rbUsaLoteNo, cc.xy(15, 23)); //---- lblOtroImpuesto ---- lblOtroImpuesto.setText("Otro impuesto [%]:"); lblOtroImpuesto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblOtroImpuesto, cc.xywh(3, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- txtOtroImpuesto ---- txtOtroImpuesto.setHorizontalAlignment(SwingConstants.RIGHT); panelGenerico.add(txtOtroImpuesto, cc.xywh(5, 25, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTieneSerie ---- lblTieneSerie.setText("Tiene serie:"); lblTieneSerie.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblTieneSerie, cc.xywh(11, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbTieneSerieSi ---- rbTieneSerieSi.setText("S\u00ed"); panelGenerico.add(rbTieneSerieSi, cc.xy(13, 25)); //---- rbTieneSerieNo ---- rbTieneSerieNo.setText("No"); rbTieneSerieNo.setSelected(true); panelGenerico.add(rbTieneSerieNo, cc.xy(15, 25)); //---- lblEstadoGenerico ---- lblEstadoGenerico.setText("Estado:"); lblEstadoGenerico.setFont(new Font("Tahoma", Font.BOLD, 11)); panelGenerico.add(lblEstadoGenerico, cc.xywh(3, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelGenerico.add(cmbEstadoGenerico, cc.xywh(5, 27, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } spPanelGenerico.setViewportView(panelGenerico); } jtpGenerico.addTab("General", spPanelGenerico); //======== spPanelProducto ======== { //======== panelProducto ======== { panelProducto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(12), FormSpec.NO_GROW) })); //---- lblProveedorId ---- lblProveedorId.setText("Proveedor:"); lblProveedorId.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblProveedorId, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelProducto.add(txtProveedor, cc.xywh(5, 3, 13, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelProducto.add(btnBuscarProveedor, cc.xywh(19, 3, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- lblSubproveedor ---- lblSubproveedor.setText("Subproveedor:"); lblSubproveedor.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblSubproveedor, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(txtSubproveedor, cc.xywh(5, 5, 5, 1)); //---- lblCodigoBarras ---- lblCodigoBarras.setText("C\u00f3digo de barras:"); lblCodigoBarras.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblCodigoBarras, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelProducto.add(txtCodigoBarras, cc.xywh(5, 7, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- cbGenerarCodigoBarras ---- cbGenerarCodigoBarras.setText("Generar c\u00f3digo de barras"); cbGenerarCodigoBarras.setFont(new Font("Tahoma", Font.BOLD, 11)); cbGenerarCodigoBarras.setHorizontalAlignment(SwingConstants.LEFT); panelProducto.add(cbGenerarCodigoBarras, cc.xywh(13, 7, 5, 1)); //---- lblMarca ---- lblMarca.setText("Marca:"); lblMarca.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblMarca, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(cmbMarca, cc.xywh(5, 9, 5, 1)); //---- lblAceptaPromocion ---- lblAceptaPromocion.setText("Acepta promoci\u00f3n:"); lblAceptaPromocion.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblAceptaPromocion, cc.xywh(13, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbAceptaPromocionSi ---- rbAceptaPromocionSi.setText("S\u00ed"); rbAceptaPromocionSi.setSelected(true); panelProducto.add(rbAceptaPromocionSi, cc.xy(15, 9)); //---- rbAceptaPromocionNo ---- rbAceptaPromocionNo.setText("No"); panelProducto.add(rbAceptaPromocionNo, cc.xy(17, 9)); //---- lblModelo ---- lblModelo.setText("Modelo:"); lblModelo.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblModelo, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(cmbModelo, cc.xywh(5, 11, 5, 1)); //---- lblAceptaDevolucion ---- lblAceptaDevolucion.setText("Acepta devoluci\u00f3n:"); lblAceptaDevolucion.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblAceptaDevolucion, cc.xywh(13, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbAceptaDevolucionSi ---- rbAceptaDevolucionSi.setText("S\u00ed"); rbAceptaDevolucionSi.setSelected(true); panelProducto.add(rbAceptaDevolucionSi, cc.xy(15, 11)); //---- rbAceptaDevolucionNo ---- rbAceptaDevolucionNo.setText("No"); panelProducto.add(rbAceptaDevolucionNo, cc.xy(17, 11)); //---- lblPresentacionId ---- lblPresentacionId.setText("Presentaci\u00f3n:"); lblPresentacionId.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblPresentacionId, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelProducto.add(cmbPresentacionId, cc.xywh(5, 13, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblPermiteVenta ---- lblPermiteVenta.setText("Permite venta:"); lblPermiteVenta.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblPermiteVenta, cc.xywh(13, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbPermiteVentaSi ---- rbPermiteVentaSi.setText("S\u00ed"); rbPermiteVentaSi.setSelected(true); panelProducto.add(rbPermiteVentaSi, cc.xy(15, 13)); //---- rbPermiteVentaNo ---- rbPermiteVentaNo.setText("No"); panelProducto.add(rbPermiteVentaNo, cc.xy(17, 13)); //---- lblColor ---- lblColor.setText("Color:"); lblColor.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblColor, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(cmbColor, cc.xywh(5, 15, 5, 1)); //---- lblCambioPrecio ---- lblCambioPrecio.setText("Cambio de precio:"); lblCambioPrecio.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblCambioPrecio, cc.xywh(13, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- rbCambioPrecioSi ---- rbCambioPrecioSi.setText("S\u00ed"); rbCambioPrecioSi.setSelected(true); panelProducto.add(rbCambioPrecioSi, cc.xy(15, 15)); //---- rbCambioPrecioNo ---- rbCambioPrecioNo.setText("No"); panelProducto.add(rbCambioPrecioNo, cc.xy(17, 15)); //---- lblOrigenProducto ---- lblOrigenProducto.setText("Origen del producto:"); lblOrigenProducto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblOrigenProducto, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelProducto.add(cmbOrigenProducto, cc.xywh(5, 17, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblEstadoProducto ---- lblEstadoProducto.setText("Estado:"); lblEstadoProducto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblEstadoProducto, cc.xywh(13, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelProducto.add(cmbEstadoProducto, cc.xywh(15, 17, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblPesoBruto ---- lblPesoBruto.setText("Peso bruto:"); lblPesoBruto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblPesoBruto, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(txtPesoBruto, cc.xy(5, 19)); //---- lblPesoNeto ---- lblPesoNeto.setText("Peso neto:"); lblPesoNeto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblPesoNeto, cc.xywh(7, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProducto.add(txtPesoNeto, cc.xy(9, 19)); //---- lblCosto ---- lblCosto.setText("Costo:"); lblCosto.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblCosto, cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- txtCosto ---- txtCosto.setHorizontalAlignment(SwingConstants.RIGHT); panelProducto.add(txtCosto, cc.xywh(5, 21, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblMargenMinimo ---- lblMargenMinimo.setText("Margen m\u00ednimo:"); lblMargenMinimo.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblMargenMinimo, cc.xywh(7, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- txtMargenMinimo ---- txtMargenMinimo.setHorizontalAlignment(SwingConstants.RIGHT); panelProducto.add(txtMargenMinimo, cc.xy(9, 21)); //---- lblRebate ---- lblRebate.setText("Rebate:"); lblRebate.setFont(new Font("Tahoma", Font.BOLD, 11)); panelProducto.add(lblRebate, cc.xywh(11, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- txtRebate ---- txtRebate.setHorizontalAlignment(SwingConstants.RIGHT); panelProducto.add(txtRebate, cc.xywh(13, 21, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnAgregarProducto ---- btnAgregarProducto.setText("A"); panel1.add(btnAgregarProducto, cc.xy(1, 1)); //---- btnActualizarProducto ---- btnActualizarProducto.setText("U"); btnActualizarProducto.setHorizontalAlignment(SwingConstants.CENTER); panel1.add(btnActualizarProducto, cc.xy(3, 1)); //---- btnEliminarProducto ---- btnEliminarProducto.setText("D"); panel1.add(btnEliminarProducto, cc.xy(5, 1)); } panelProducto.add(panel1, cc.xywh(3, 23, 16, 1)); //======== scpProducto ======== { //---- tblProductos ---- tblProductos.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Proveedor", "Descripci\u00f3n", "Estado" }) { boolean[] columnEditable = new boolean[] { false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); { TableColumnModel cm = tblProductos.getColumnModel(); cm.getColumn(0).setMinWidth(150); cm.getColumn(0).setPreferredWidth(150); cm.getColumn(1).setMinWidth(150); cm.getColumn(1).setPreferredWidth(150); cm.getColumn(2).setResizable(false); cm.getColumn(2).setMinWidth(70); cm.getColumn(2).setMaxWidth(70); cm.getColumn(2).setPreferredWidth(70); } tblProductos.setPreferredScrollableViewportSize(new Dimension(450, 150)); tblProductos.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); scpProducto.setViewportView(tblProductos); } panelProducto.add(scpProducto, cc.xywh(3, 25, 17, 5)); } spPanelProducto.setViewportView(panelProducto); } jtpGenerico.addTab("Productos", spPanelProducto); } add(jtpGenerico, cc.xy(1, 1)); //---- bgCobraIvaProveedor ---- ButtonGroup bgCobraIvaProveedor = new ButtonGroup(); bgCobraIvaProveedor.add(rbCobraIvaProveedorSi); bgCobraIvaProveedor.add(rbCobraIvaProveedorNo); //---- bgCambioDescripcion ---- ButtonGroup bgCambioDescripcion = new ButtonGroup(); bgCambioDescripcion.add(rbCambioDescripcionSi); bgCambioDescripcion.add(rbCambioDescripcionNo); //---- bgCobraIvaCliente ---- ButtonGroup bgCobraIvaCliente = new ButtonGroup(); bgCobraIvaCliente.add(rbCobraIvaClienteSi); bgCobraIvaCliente.add(rbCobraIvaClienteNo); //---- bgServicio ---- ButtonGroup bgServicio = new ButtonGroup(); bgServicio.add(rbServicioSi); bgServicio.add(rbServicioNo); //---- bgCobraIce ---- ButtonGroup bgCobraIce = new ButtonGroup(); bgCobraIce.add(rbCobraIceSi); bgCobraIce.add(rbCobraIceNo); //---- bgLlevaInventario ---- ButtonGroup bgLlevaInventario = new ButtonGroup(); bgLlevaInventario.add(rbLlevaInventarioSi); bgLlevaInventario.add(rbLlevaInventarioNo); //---- bgAceptaDescuento ---- ButtonGroup bgAceptaDescuento = new ButtonGroup(); bgAceptaDescuento.add(rbAceptaDescuentoSi); bgAceptaDescuento.add(rbAceptaDescuentoNo); //---- bgUsaLote ---- ButtonGroup bgUsaLote = new ButtonGroup(); bgUsaLote.add(rbUsaLoteSi); bgUsaLote.add(rbUsaLoteNo); //---- bgTieneSerie ---- ButtonGroup bgTieneSerie = new ButtonGroup(); bgTieneSerie.add(rbTieneSerieSi); bgTieneSerie.add(rbTieneSerieNo); //---- bgAceptaPromocion ---- ButtonGroup bgAceptaPromocion = new ButtonGroup(); bgAceptaPromocion.add(rbAceptaPromocionSi); bgAceptaPromocion.add(rbAceptaPromocionNo); //---- bgAceptaDevolucion ---- ButtonGroup bgAceptaDevolucion = new ButtonGroup(); bgAceptaDevolucion.add(rbAceptaDevolucionSi); bgAceptaDevolucion.add(rbAceptaDevolucionNo); //---- bgPermiteVenta ---- ButtonGroup bgPermiteVenta = new ButtonGroup(); bgPermiteVenta.add(rbPermiteVentaSi); bgPermiteVenta.add(rbPermiteVentaNo); //---- bgCambioPrecio ---- ButtonGroup bgCambioPrecio = new ButtonGroup(); bgCambioPrecio.add(rbCambioPrecioSi); bgCambioPrecio.add(rbCambioPrecioNo); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.inventario.gui.panel.JPStockValorizado.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown lblBodega = new JLabel(); txtBodega = new JTextField(); btnBuscarBodega = new JButton(); lblFechaCorte = new JLabel(); cmbFechaCorte = new DateComboBox(); btnConsultar = new JButton(); spStockValorizado = new JScrollPane(); tblStockValorizado = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setName("KARDEX"); setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(80)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(40)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblBodega ---- lblBodega.setText("Bodega:"); add(lblBodega, cc.xy(3, 3)); //---- txtBodega ---- txtBodega.setEnabled(false);/*from w w w . j a v a 2s. c o m*/ txtBodega.setEditable(false); add(txtBodega, cc.xywh(5, 3, 3, 1)); //---- btnBuscarBodega ---- btnBuscarBodega.setText("B"); add(btnBuscarBodega, cc.xywh(11, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- lblFechaCorte ---- lblFechaCorte.setText("Fecha de corte:"); add(lblFechaCorte, cc.xy(3, 5)); add(cmbFechaCorte, cc.xywh(5, 5, 3, 1)); //---- btnConsultar ---- btnConsultar.setText("Consultar"); add(btnConsultar, cc.xywh(11, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //======== spStockValorizado ======== { //---- tblStockValorizado ---- tblStockValorizado.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "SKU", "MODELO", "PRESENTACION", "COLOR", "STOCK", "PR. UNITARIO", "STOCK VALORIZADO" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spStockValorizado.setViewportView(tblStockValorizado); } add(spStockValorizado, cc.xywh(3, 9, 10, 3)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JDSeleccionarOrdenes.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown dialogPane = new JPanel(); panel1 = new JPanel(); ldescripcion = new JLabel(); spTblPresupuestoDetalles = new JScrollPane(); tblPresupuestoDetalles = new JTable(); btnAceptar = new JButton(); btnCancelar = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Facturaci\u00f3n Parcial"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {/*from ww w. j a v a 2 s .c o m*/ dialogPane.setBorder(Borders.DIALOG_BORDER); dialogPane.setLayout(new BorderLayout()); } contentPane.add(dialogPane, BorderLayout.SOUTH); //======== panel1 ======== { panel1.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX3), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(120)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(120)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX3) }, new RowSpec[] { new RowSpec(Sizes.DLUY3), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- ldescripcion ---- ldescripcion.setText("Elija los detalles que desea facturar:"); panel1.add(ldescripcion, cc.xywh(3, 3, 3, 1)); //======== spTblPresupuestoDetalles ======== { //---- tblPresupuestoDetalles ---- tblPresupuestoDetalles .setModel(new DefaultTableModel(new Object[][] { { false, null, null, null, null }, }, new String[] { "", "Orden", "Proveedor", "Producto", "Valor" }) { Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class, Object.class, Object.class }; boolean[] columnEditable = new boolean[] { true, false, true, true, false }; @Override public Class<?> getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblPresupuestoDetalles.setViewportView(tblPresupuestoDetalles); } panel1.add(spTblPresupuestoDetalles, cc.xywh(3, 5, 9, 5)); //---- btnAceptar ---- btnAceptar.setText("Aceptar"); panel1.add(btnAceptar, cc.xy(5, 11)); //---- btnCancelar ---- btnCancelar.setText("Cancelar"); panel1.add(btnCancelar, cc.xy(9, 11)); } contentPane.add(panel1, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPCampana.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown jtpCampana = new JideTabbedPane(); panelCampana = new JPanel(); lblCodigo = new JLabel(); txtCodigo = new JTextField(); lblNombre = new JLabel(); lblCorporacion = new JLabel(); txtCorporacion = new JTextField(); btnBuscarCorporacion = new JButton(); txtNombre = new JTextField(); lblCliente = new JLabel(); btnBuscarCliente = new JButton(); txtCliente = new JTextField(); lblFechaInicio = new JLabel(); cmbFechaInicio = new DateComboBox(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); lblPublicoObjetivo = new JLabel(); txtPublicoObjetivo = new JTextField(); txtObservacion = new JTextField(); lblObservacion = new JLabel(); panelProductoCliente = new JPanel(); spCbListProductos = new JScrollPane(); cbListProductos = new CheckBoxList(); btnSeleccionarTodo = new JButton(); btnDeseleccionarTodo = new JButton(); panelVersion = new JPanel(); lblCodigoProducto2 = new JLabel(); txtCodigoVersion = new JTextField(); lblEstadoProducto2 = new JLabel(); cmbEstadoVersion = new JComboBox(); lblMarca2 = new JLabel(); cmbProducto = new JComboBox(); btnActualizarProductos = new JButton(); lblComercial = new JLabel(); txtNombreVersion = new JTextField(); panelBotonesVersion = new JPanel(); btnAgregarVersion = new JButton(); btnActualizarVersion = new JButton(); btnEliminarVersion = new JButton(); spTblVersion = new JScrollPane(); tblVersion = new JTable(); panelDetalle = new JPanel(); cmbZonaCliente = new JComboBox(); lblParticipacion = new JLabel(); txtParticipacion = new JTextField(); lblRestante = new JLabel(); txtRestante = new JTextField(); txtDescripcionDetalle = new JTextField(); spDetalleCampana = new JScrollPane(); tableDetalleCampana = new JTable(); lblZonaCliente = new JLabel(); lblDescripcionDetalle = new JLabel(); panel2 = new JPanel(); btnEliminarDetalle = new JButton(); btnAgregarDetalle = new JButton(); panelBrief = new JPanel(); lblTipoBrief = new JLabel(); cmbTipoBrief = new JComboBox(); lblURLDescripcion = new JLabel(); txtURLBrief = new JTextField(); btnAgregarArchivoBrief = new JButton(); lblDescripcionBrief = new JLabel(); spDescripcionBrief = new JScrollPane(); txtDescripcionBrief = new JTextArea(); panel3 = new JPanel(); btnAgregarBrief = new JButton(); btnActualizarBrief = new JButton(); btnEliminarBrief = new JButton(); spBrief = new JScrollPane(); tableBrief = new JTable(); panelArchivo = new JPanel(); lblFechaArchivo = new JLabel(); cmbTipoArchivo = new JComboBox(); lblURLArchivo = new JLabel(); cmbFechaArchivo = new DateComboBox(); txtURLArchivo = new JTextField(); btnAgregarURLArchivo = new JButton(); spArchivo = new JScrollPane(); tableArchivo = new JTable(); lblTipoArchivo = new JLabel(); panel4 = new JPanel(); btnAgregarArchivo = new JButton(); btnActualizarArchivo = new JButton(); btnEliminarArchivo = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== jtpCampana ======== {/* ww w . j a v a 2 s .c o m*/ //======== panelCampana ======== { panelCampana.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.PREF_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); ((FormLayout) panelCampana.getLayout()) .setColumnGroups(new int[][] { { 1, 17 }, { 3, 9 }, { 5, 13 } }); //---- lblCodigo ---- lblCodigo.setText("C\u00f3digo:"); panelCampana.add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(txtCodigo, cc.xy(5, 3)); //---- lblNombre ---- lblNombre.setText("Nombre:"); panelCampana.add(lblNombre, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblCorporacion ---- lblCorporacion.setText("Corporaci\u00f3n:"); panelCampana.add(lblCorporacion, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(txtCorporacion, cc.xywh(5, 7, 5, 1)); panelCampana.add(btnBuscarCorporacion, cc.xywh(11, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelCampana.add(txtNombre, cc.xywh(5, 5, 5, 1)); //---- lblCliente ---- lblCliente.setText("Cliente:"); panelCampana.add(lblCliente, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(btnBuscarCliente, cc.xywh(11, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelCampana.add(txtCliente, cc.xywh(5, 9, 5, 1)); //---- lblFechaInicio ---- lblFechaInicio.setText("Fecha Inicio:"); panelCampana.add(lblFechaInicio, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(cmbFechaInicio, cc.xy(5, 11)); //---- lblEstado ---- lblEstado.setText("Estado:"); panelCampana.add(lblEstado, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(cmbEstado, cc.xy(5, 13)); //---- lblPublicoObjetivo ---- lblPublicoObjetivo.setText("Grupo Objetivo:"); panelCampana.add(lblPublicoObjetivo, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCampana.add(txtPublicoObjetivo, cc.xywh(5, 15, 9, 1)); panelCampana.add(txtObservacion, cc.xywh(5, 17, 9, 1)); //---- lblObservacion ---- lblObservacion.setText("Observaci\u00f3n:"); panelCampana.add(lblObservacion, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); } jtpCampana.addTab("General", panelCampana); //======== panelProductoCliente ======== { panelProductoCliente.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //======== spCbListProductos ======== { spCbListProductos.setViewportView(cbListProductos); } panelProductoCliente.add(spCbListProductos, cc.xywh(3, 3, 5, 7)); //---- btnSeleccionarTodo ---- btnSeleccionarTodo.setText("Seleccionar todo"); panelProductoCliente.add(btnSeleccionarTodo, cc.xy(9, 3)); //---- btnDeseleccionarTodo ---- btnDeseleccionarTodo.setText("Deseleccionar todo"); panelProductoCliente.add(btnDeseleccionarTodo, cc.xy(9, 5)); } jtpCampana.addTab("Productos", panelProductoCliente); //======== panelVersion ======== { panelVersion.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(170)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(49)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); //---- lblCodigoProducto2 ---- lblCodigoProducto2.setText("C\u00f3digo:"); panelVersion.add(lblCodigoProducto2, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelVersion.add(txtCodigoVersion, cc.xy(5, 3)); //---- lblEstadoProducto2 ---- lblEstadoProducto2.setText("Estado:"); panelVersion.add(lblEstadoProducto2, cc.xywh(7, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- cmbEstadoVersion ---- cmbEstadoVersion.setModel(new DefaultComboBoxModel(new String[] { "ACTIVO", "INACTIVO" })); panelVersion.add(cmbEstadoVersion, cc.xywh(9, 3, 2, 1)); //---- lblMarca2 ---- lblMarca2.setText("Producto:"); panelVersion.add(lblMarca2, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelVersion.add(cmbProducto, cc.xywh(5, 5, 3, 1)); panelVersion.add(btnActualizarProductos, cc.xywh(9, 5, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- lblComercial ---- lblComercial.setText("Comercial:"); panelVersion.add(lblComercial, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelVersion.add(txtNombreVersion, cc.xywh(5, 7, 3, 1)); //======== panelBotonesVersion ======== { panelBotonesVersion .setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); panelBotonesVersion.add(btnAgregarVersion, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); panelBotonesVersion.add(btnActualizarVersion, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); panelBotonesVersion.add(btnEliminarVersion, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); } panelVersion.add(panelBotonesVersion, cc.xywh(3, 11, 5, 1)); //======== spTblVersion ======== { spTblVersion.setPreferredSize(new Dimension(452, 100)); //---- tblVersion ---- tblVersion.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "C\u00f3digo", "Producto", "Comercial", "Estado" }) { boolean[] columnEditable = new boolean[] { false, true, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tblVersion.setPreferredScrollableViewportSize(new Dimension(450, 300)); tblVersion.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS); tblVersion.setAutoCreateColumnsFromModel(true); spTblVersion.setViewportView(tblVersion); } panelVersion.add(spTblVersion, cc.xywh(3, 13, 9, 5)); } jtpCampana.addTab("Comerciales", panelVersion); //======== panelDetalle ======== { panelDetalle.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.PREFERRED, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); panelDetalle.add(cmbZonaCliente, cc.xywh(5, 3, 3, 1)); //---- lblParticipacion ---- lblParticipacion.setText("Participaci\u00f3n (%):"); panelDetalle.add(lblParticipacion, cc.xywh(11, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtParticipacion ---- txtParticipacion.setEditable(true); panelDetalle.add(txtParticipacion, cc.xy(13, 3)); //---- lblRestante ---- lblRestante.setText("Restante (%):"); panelDetalle.add(lblRestante, cc.xywh(15, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtRestante ---- txtRestante.setEditable(true); panelDetalle.add(txtRestante, cc.xy(17, 3)); panelDetalle.add(txtDescripcionDetalle, cc.xywh(5, 5, 13, 1)); //======== spDetalleCampana ======== { //---- tableDetalleCampana ---- tableDetalleCampana.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Zona", "Participacion %", "Descripcion" }) { boolean[] columnEditable = new boolean[] { false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tableDetalleCampana.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); tableDetalleCampana.setPreferredScrollableViewportSize(new Dimension(450, 160)); spDetalleCampana.setViewportView(tableDetalleCampana); } panelDetalle.add(spDetalleCampana, cc.xywh(3, 11, 15, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblZonaCliente ---- lblZonaCliente.setText("Zona:"); panelDetalle.add(lblZonaCliente, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblDescripcionDetalle ---- lblDescripcionDetalle.setText("Observaci\u00f3n:"); panelDetalle.add(lblDescripcionDetalle, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== panel2 ======== { panel2.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnEliminarDetalle ---- btnEliminarDetalle.setText("E"); panel2.add(btnEliminarDetalle, cc.xy(3, 1)); //---- btnAgregarDetalle ---- btnAgregarDetalle.setText("A"); panel2.add(btnAgregarDetalle, cc.xy(1, 1)); } panelDetalle.add(panel2, cc.xywh(3, 9, 15, 1)); } jtpCampana.addTab("Zonas", panelDetalle); //======== panelBrief ======== { panelBrief.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(40)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblTipoBrief ---- lblTipoBrief.setText("Tipo de Brief:"); panelBrief.add(lblTipoBrief, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelBrief.add(cmbTipoBrief, cc.xy(5, 3)); //---- lblURLDescripcion ---- lblURLDescripcion.setText("Brief:"); panelBrief.add(lblURLDescripcion, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtURLBrief ---- txtURLBrief.setEditable(false); panelBrief.add(txtURLBrief, cc.xywh(5, 5, 3, 1)); panelBrief.add(btnAgregarArchivoBrief, cc.xywh(9, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblDescripcionBrief ---- lblDescripcionBrief.setText("Observaci\u00f3n:"); panelBrief.add(lblDescripcionBrief, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== spDescripcionBrief ======== { //---- txtDescripcionBrief ---- txtDescripcionBrief.setLineWrap(true); txtDescripcionBrief.setWrapStyleWord(false); spDescripcionBrief.setViewportView(txtDescripcionBrief); } panelBrief.add(spDescripcionBrief, cc.xywh(5, 7, 5, 3, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== panel3 ======== { panel3.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnAgregarBrief ---- btnAgregarBrief.setText("A"); panel3.add(btnAgregarBrief, cc.xy(1, 1)); //---- btnActualizarBrief ---- btnActualizarBrief.setText("U"); panel3.add(btnActualizarBrief, cc.xy(3, 1)); //---- btnEliminarBrief ---- btnEliminarBrief.setText("D"); panel3.add(btnEliminarBrief, cc.xy(5, 1)); } panelBrief.add(panel3, cc.xywh(3, 13, 9, 1)); //======== spBrief ======== { //---- tableBrief ---- tableBrief.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Tipo", "Descripcion", "URL" }) { boolean[] columnEditable = new boolean[] { false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tableBrief.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); spBrief.setViewportView(tableBrief); } panelBrief.add(spBrief, cc.xywh(3, 15, 9, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); } jtpCampana.addTab("Briefs", panelBrief); //======== panelArchivo ======== { panelArchivo.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblFechaArchivo ---- lblFechaArchivo.setText("Fecha:"); panelArchivo.add(lblFechaArchivo, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelArchivo.add(cmbTipoArchivo, cc.xywh(5, 3, 3, 1)); //---- lblURLArchivo ---- lblURLArchivo.setText("Archivo:"); panelArchivo.add(lblURLArchivo, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelArchivo.add(cmbFechaArchivo, cc.xywh(5, 5, 3, 1)); //---- txtURLArchivo ---- txtURLArchivo.setEditable(false); panelArchivo.add(txtURLArchivo, cc.xywh(5, 7, 5, 1)); panelArchivo.add(btnAgregarURLArchivo, cc.xywh(11, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //======== spArchivo ======== { //---- tableArchivo ---- tableArchivo.setModel( new DefaultTableModel(new Object[][] {}, new String[] { "Tipo", "Fecha", "URL" }) { boolean[] columnEditable = new boolean[] { false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tableArchivo.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); spArchivo.setViewportView(tableArchivo); } panelArchivo.add(spArchivo, cc.xywh(3, 13, 11, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblTipoArchivo ---- lblTipoArchivo.setText("Tipo de Archivo:"); panelArchivo.add(lblTipoArchivo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== panel4 ======== { panel4.setLayout( new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnAgregarArchivo ---- btnAgregarArchivo.setText("A"); panel4.add(btnAgregarArchivo, cc.xy(1, 1)); //---- btnActualizarArchivo ---- btnActualizarArchivo.setText("U"); panel4.add(btnActualizarArchivo, cc.xy(3, 1)); //---- btnEliminarArchivo ---- btnEliminarArchivo.setText("D"); panel4.add(btnEliminarArchivo, cc.xy(5, 1)); } panelArchivo.add(panel4, cc.xywh(3, 11, 11, 1)); } jtpCampana.addTab("Archivos", panelArchivo); } add(jtpCampana, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPComercial.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown lblCodigoComercial = new JLabel(); txtCodigoComercial = new JTextField(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); lblCorporacion = new JLabel(); txtCorporacion = new JTextField(); btnBuscarCorporacion = new JButton(); lblCliente = new JLabel(); txtCliente = new JTextField(); btnBuscarCliente = new JButton(); lblCampanaComercial = new JLabel(); txtCampanaComercial = new JTextField(); btnBuscarCampana = new JButton(); lblComercial = new JLabel(); cmbCampanaProductoVersion = new JComboBox(); lblVersionComercial = new JLabel(); txtIdentificacionComercial = new JTextField(); lblProductoComercial = new JLabel(); txtProductoComercial = new JTextField(); lblTiempo = new JLabel(); txtTiempo = new JTextField(); lblSeg = new JLabel(); lblDerechoProgramaComercial = new JLabel(); cmbDerechoProgramaComercial = new JComboBox(); panel2 = new JPanel(); btnAgregarComercialCliente = new JButton(); btnActualizarComercialCliente = new JButton(); btnEliminarComercialCliente = new JButton(); spComercialClente = new JScrollPane(); tblComercialCliente = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(72)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY6), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); //---- lblCodigoComercial ---- lblCodigoComercial.setText("C\u00f3digo:"); add(lblCodigoComercial, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtCodigoComercial, cc.xy(5, 3)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(17, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- cmbEstado ---- cmbEstado.setModel(new DefaultComboBoxModel(new String[] { "ACTIVO", "INACTIVO" })); add(cmbEstado, cc.xy(19, 3));//from w w w .j a va2s. c o m //---- lblCorporacion ---- lblCorporacion.setText("Corporaci\u00f3n:"); add(lblCorporacion, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtCorporacion ---- txtCorporacion.setEditable(false); add(txtCorporacion, cc.xywh(5, 5, 7, 1)); add(btnBuscarCorporacion, cc.xywh(13, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblCliente ---- lblCliente.setText("Cliente:"); add(lblCliente, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtCliente ---- txtCliente.setEditable(true); add(txtCliente, cc.xywh(5, 7, 7, 1)); add(btnBuscarCliente, cc.xywh(13, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblCampanaComercial ---- lblCampanaComercial.setText("Campa\u00f1a:"); add(lblCampanaComercial, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtCampanaComercial, cc.xywh(5, 9, 7, 1)); add(btnBuscarCampana, cc.xywh(13, 9, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblComercial ---- lblComercial.setText("Comercial:"); add(lblComercial, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbCampanaProductoVersion, cc.xywh(5, 11, 7, 1)); //---- lblVersionComercial ---- lblVersionComercial.setText("Identificaci\u00f3n:"); add(lblVersionComercial, cc.xywh(17, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtIdentificacionComercial, cc.xy(19, 11)); //---- lblProductoComercial ---- lblProductoComercial.setText("Producto Comercial:"); lblProductoComercial.setHorizontalAlignment(SwingConstants.RIGHT); add(lblProductoComercial, cc.xy(3, 13)); //---- txtProductoComercial ---- txtProductoComercial.setEditable(false); add(txtProductoComercial, cc.xywh(5, 13, 7, 1)); //---- lblTiempo ---- lblTiempo.setText("Tiempo:"); add(lblTiempo, cc.xywh(17, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtTiempo, cc.xy(19, 13)); //---- lblSeg ---- lblSeg.setText("(seg.)"); add(lblSeg, cc.xy(21, 13)); //---- lblDerechoProgramaComercial ---- lblDerechoProgramaComercial.setText("Derecho de Programa:"); add(lblDerechoProgramaComercial, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbDerechoProgramaComercial, cc.xywh(5, 15, 7, 1)); //======== panel2 ======== { panel2.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnAgregarComercialCliente ---- btnAgregarComercialCliente.setText("A"); panel2.add(btnAgregarComercialCliente, cc.xy(1, 1)); //---- btnActualizarComercialCliente ---- btnActualizarComercialCliente.setText("U"); panel2.add(btnActualizarComercialCliente, cc.xy(3, 1)); //---- btnEliminarComercialCliente ---- btnEliminarComercialCliente.setText("E"); panel2.add(btnEliminarComercialCliente, cc.xy(5, 1)); } add(panel2, cc.xywh(3, 19, 9, 1)); //======== spComercialClente ======== { spComercialClente.setPreferredSize(new Dimension(452, 100)); //---- tblComercialCliente ---- tblComercialCliente.setModel(new DefaultTableModel( new Object[][] { { null, null, null, null, null, null }, }, new String[] { "C\u00f3digo", "Campa\u00f1a", "Comercial", "Derecho de Programa", "Identificaci\u00f3n", "(seg.)" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tblComercialCliente.setPreferredScrollableViewportSize(new Dimension(450, 100)); tblComercialCliente.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS); tblComercialCliente.setAutoCreateColumnsFromModel(true); spComercialClente.setViewportView(tblComercialCliente); } add(spComercialClente, cc.xywh(3, 21, 21, 5)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPControlTrafico.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown lblCliente = new JLabel(); txtCliente = new JTextField(); btnCliente = new JButton(); cbTodos = new JCheckBox(); cbFechaCreacion = new JCheckBox(); lblFechaInicio = new JLabel(); cmbFechaInicio = new DateComboBox(); lblFechaFin = new JLabel(); cmbFechaFin = new DateComboBox(); cbFechaEntrega = new JCheckBox(); lblOficina = new JLabel(); cmbOficina = new JComboBox(); lblTipoOrden = new JLabel(); cmbTipoOrden = new JComboBox(); lblEqCuentas = new JLabel(); cmbEqCuentas = new JComboBox(); spTblOrdenes = new JScrollPane(); tblOrdenes = new JTable(); cbOrdenTrabajo = new JCheckBox(); lblEjecutivo = new JLabel(); cmbEjecutivo = new JComboBox(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); btnConsultar = new JButton(); lblResponsable = new JLabel(); cmbResponsable = new JComboBox(); cbVerDetallesCuentas = new JCheckBox(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX4), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(70)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(40)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX3), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX4) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblCliente ---- lblCliente.setText("Cliente:"); add(lblCliente, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtCliente, cc.xywh(5, 3, 9, 1)); add(btnCliente, cc.xywh(15, 3, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbTodos ---- cbTodos.setText("Todos"); add(cbTodos, cc.xy(17, 3)); //---- cbFechaCreacion ---- cbFechaCreacion.setText("Ordenar por Fecha de Creaci\u00f3n"); add(cbFechaCreacion, cc.xy(21, 3));/*from w w w . j av a 2s. co m*/ //---- lblFechaInicio ---- lblFechaInicio.setText("Fecha Inicio:"); add(lblFechaInicio, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbFechaInicio, cc.xywh(5, 5, 3, 1)); //---- lblFechaFin ---- lblFechaFin.setText("Fecha Fin:"); add(lblFechaFin, cc.xywh(9, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbFechaFin, cc.xywh(11, 5, 3, 1)); //---- cbFechaEntrega ---- cbFechaEntrega.setText("Ordenar por Fecha de Entrega"); add(cbFechaEntrega, cc.xy(21, 5)); //---- lblOficina ---- lblOficina.setText("Oficina:"); add(lblOficina, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbOficina, cc.xy(5, 7)); //---- lblTipoOrden ---- lblTipoOrden.setText("Tipo:"); add(lblTipoOrden, cc.xywh(7, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbTipoOrden, cc.xywh(9, 7, 3, 1)); //---- lblEqCuentas ---- lblEqCuentas.setText("Eq.Cuenta:"); add(lblEqCuentas, cc.xywh(13, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbEqCuentas, cc.xy(15, 7)); //======== spTblOrdenes ======== { //---- tblOrdenes ---- tblOrdenes.setModel(new DefaultTableModel( new Object[][] { { null, null, null, null, null, null, null, null, null, null }, }, new String[] { "C\u00f3digo", "Cliente", "Trabajo", "SubTipo", "Responsable", "Eq.Cuent.", "Ejecutivo(a)", "F.Creaci\u00f3n", "F.Limite", "F.Entrega" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false, false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblOrdenes.setViewportView(tblOrdenes); } add(spTblOrdenes, cc.xywh(3, 15, 21, 5)); //---- cbOrdenTrabajo ---- cbOrdenTrabajo.setText("Ordenar por Orden de Trabajo"); add(cbOrdenTrabajo, cc.xy(21, 7)); //---- lblEjecutivo ---- lblEjecutivo.setText("Ejecutivo(a):"); add(lblEjecutivo, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbEjecutivo, cc.xywh(5, 9, 7, 1)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(13, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbEstado, cc.xy(15, 9)); //---- btnConsultar ---- btnConsultar.setText("Consultar"); add(btnConsultar, cc.xy(21, 9)); //---- lblResponsable ---- lblResponsable.setText("Responsable:"); add(lblResponsable, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbResponsable, cc.xywh(5, 11, 7, 1)); //---- cbVerDetallesCuentas ---- cbVerDetallesCuentas.setText("Ver detalles de Cuentas"); add(cbVerDetallesCuentas, cc.xywh(13, 11, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); // JFormDesigner - End of component initialization //GEN-END:initComponents }