List of usage examples for com.jgoodies.forms.layout Sizes DLUX4
ConstantSize DLUX4
To view the source code for com.jgoodies.forms.layout Sizes DLUX4.
Click Source Link
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));//from ww w .j a va 2 s . c o m //---- cbFechaCreacion ---- cbFechaCreacion.setText("Ordenar por Fecha de Creaci\u00f3n"); add(cbFechaCreacion, cc.xy(21, 3)); //---- 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 }
From source file:com.spirit.medios.gui.panel.JPInversionPlanMedios.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown label1 = new JLabel(); rbAgruparClienteProductoMedios = new JRadioButton(); rbAgruparClienteMedioProducto = new JRadioButton(); rbAgruparMedioClienteProducto = new JRadioButton(); separator1 = new JSeparator(); lblFechaInicio = new JLabel(); cmbFechaInicio = new DateComboBox(); lblFechaFin = new JLabel(); cmbFechaFin = new DateComboBox(); label6 = new JLabel(); lblCliente = new JLabel(); txtCliente = new JTextField(); btnCliente = new JButton(); cbClientesTodos = new JCheckBox(); cbMostrarCliente = new JCheckBox(); rbValorBruto = new JRadioButton(); label7 = new JLabel(); txtClienteOficina = new JTextField(); btnClienteOficina = new JButton(); cbClienteOficinaTodos = new JCheckBox(); cbMostrarClienteOficina = new JCheckBox(); rbValorNeto = new JRadioButton(); label8 = new JLabel(); cmbMarcas = new JComboBox(); cbMostrarMarca = new JCheckBox(); btnConsultar = new JButton(); label4 = new JLabel(); txtProducto = new JTextField(); btnProducto = new JButton(); cbProductosTodos = new JCheckBox(); cbMostrarProducto = new JCheckBox(); label3 = new JLabel(); cmbTipoMedio = new JComboBox(); cbMostrarCampana = new JCheckBox(); lblTipoProducto = new JLabel(); cmbTipoProducto = new JComboBox(); cbMostrarTipoMedio = new JCheckBox(); label2 = new JLabel(); txtMedio = new JTextField(); btnMedio = new JButton(); cbMediosTodos = new JCheckBox(); cbMostrarMedio = new JCheckBox(); label9 = new JLabel(); txtMedioOficina = new JTextField(); btnMedioOficina = new JButton(); cbMedioOficinaTodos = new JCheckBox(); cbMostrarMedioOficina = new JCheckBox(); label10 = new JLabel(); cbPautaRegular = new JCheckBox(); cbAuspicio = new JCheckBox(); cbMostrarTipoPauta = new JCheckBox(); lblOficinaEmpresa = new JLabel(); cmbOficinaEmpresa = new JComboBox(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); cbVerAprobadosFacturados = new JCheckBox(); cbMostrarDerechoPrograma = new JCheckBox(); lblDerechoPrograma = new JLabel(); cmbDerechoPrograma = new JComboBox(); spTblInversiones = new JScrollPane(); tblInversionesPlanMedios = new JTable(); 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(35)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(43)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX3), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(35)), 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(12)), 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, 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(16)), 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)) })); //---- label1 ---- label1.setText("Agrupar por:"); label1.setHorizontalAlignment(SwingConstants.RIGHT); add(label1, cc.xy(3, 3));/*w w w .j a v a 2s . co m*/ //---- rbAgruparClienteProductoMedios ---- rbAgruparClienteProductoMedios.setText("Cliente/Producto/T-Medios/Medios"); rbAgruparClienteProductoMedios.setSelected(true); add(rbAgruparClienteProductoMedios, cc.xywh(5, 3, 5, 1)); //---- rbAgruparClienteMedioProducto ---- rbAgruparClienteMedioProducto.setText("Cliente/T-Medios/Medios/Producto"); add(rbAgruparClienteMedioProducto, cc.xywh(11, 3, 9, 1)); //---- rbAgruparMedioClienteProducto ---- rbAgruparMedioClienteProducto.setText("T-Medios/Medios/Cliente/Producto"); add(rbAgruparMedioClienteProducto, cc.xywh(23, 3, 5, 1)); add(separator1, cc.xywh(3, 5, 25, 1)); //---- lblFechaInicio ---- lblFechaInicio.setText("Fecha Inicio:"); add(lblFechaInicio, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbFechaInicio, cc.xywh(5, 7, 3, 1)); //---- lblFechaFin ---- lblFechaFin.setText("Fecha Fin:"); add(lblFechaFin, cc.xywh(11, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbFechaFin, cc.xywh(13, 7, 7, 1)); //---- label6 ---- label6.setText("Datos a presentar:"); label6.setHorizontalAlignment(SwingConstants.LEFT); add(label6, cc.xy(23, 7)); //---- lblCliente ---- lblCliente.setText("Cliente:"); add(lblCliente, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(txtCliente, cc.xywh(5, 9, 7, 1)); add(btnCliente, cc.xywh(13, 9, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbClientesTodos ---- cbClientesTodos.setText("Todos"); add(cbClientesTodos, cc.xywh(17, 9, 3, 1)); //---- cbMostrarCliente ---- cbMostrarCliente.setText("Cliente"); add(cbMostrarCliente, cc.xy(23, 9)); //---- rbValorBruto ---- rbValorBruto.setText("Valor Bruto"); add(rbValorBruto, cc.xy(27, 9)); //---- label7 ---- label7.setText("Cliente Oficina:"); label7.setHorizontalAlignment(SwingConstants.RIGHT); add(label7, cc.xy(3, 11)); add(txtClienteOficina, cc.xywh(5, 11, 7, 1)); add(btnClienteOficina, cc.xywh(13, 11, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbClienteOficinaTodos ---- cbClienteOficinaTodos.setText("Todos"); add(cbClienteOficinaTodos, cc.xywh(17, 11, 3, 1)); //---- cbMostrarClienteOficina ---- cbMostrarClienteOficina.setText("Cliente Oficina"); add(cbMostrarClienteOficina, cc.xy(23, 11)); //---- rbValorNeto ---- rbValorNeto.setText("Valor Neto"); add(rbValorNeto, cc.xy(27, 11)); //---- label8 ---- label8.setText("Marca:"); label8.setHorizontalAlignment(SwingConstants.RIGHT); add(label8, cc.xy(3, 13)); add(cmbMarcas, cc.xywh(5, 13, 7, 1)); //---- cbMostrarMarca ---- cbMostrarMarca.setText("Marca"); add(cbMostrarMarca, cc.xy(23, 13)); //---- btnConsultar ---- btnConsultar.setText("Consultar"); add(btnConsultar, cc.xywh(27, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); //---- label4 ---- label4.setText("Producto:"); label4.setHorizontalAlignment(SwingConstants.RIGHT); add(label4, cc.xy(3, 15)); add(txtProducto, cc.xywh(5, 15, 7, 1)); add(btnProducto, cc.xywh(13, 15, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbProductosTodos ---- cbProductosTodos.setText("Todos"); add(cbProductosTodos, cc.xywh(17, 15, 3, 1)); //---- cbMostrarProducto ---- cbMostrarProducto.setText("Producto"); add(cbMostrarProducto, cc.xy(23, 15)); //---- label3 ---- label3.setText("Tipo de Medio:"); label3.setHorizontalAlignment(SwingConstants.RIGHT); add(label3, cc.xy(3, 17)); add(cmbTipoMedio, cc.xywh(5, 17, 7, 1)); //---- cbMostrarCampana ---- cbMostrarCampana.setText("Campa\u00f1a"); add(cbMostrarCampana, cc.xy(23, 17)); //---- lblTipoProducto ---- lblTipoProducto.setText("Tipo de Producto:"); add(lblTipoProducto, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbTipoProducto, cc.xywh(5, 19, 7, 1)); //---- cbMostrarTipoMedio ---- cbMostrarTipoMedio.setText("Tipo de Medio"); add(cbMostrarTipoMedio, cc.xy(23, 19)); //---- label2 ---- label2.setText("Medio:"); label2.setHorizontalAlignment(SwingConstants.RIGHT); add(label2, cc.xy(3, 21)); add(txtMedio, cc.xywh(5, 21, 7, 1)); add(btnMedio, cc.xywh(13, 21, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbMediosTodos ---- cbMediosTodos.setText("Todos"); cbMediosTodos.setHorizontalAlignment(SwingConstants.LEFT); add(cbMediosTodos, cc.xywh(17, 21, 3, 1)); //---- cbMostrarMedio ---- cbMostrarMedio.setText("Medio"); add(cbMostrarMedio, cc.xy(23, 21)); //---- label9 ---- label9.setText("Medio Oficina:"); label9.setHorizontalAlignment(SwingConstants.RIGHT); add(label9, cc.xy(3, 23)); add(txtMedioOficina, cc.xywh(5, 23, 7, 1)); add(btnMedioOficina, cc.xywh(13, 23, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //---- cbMedioOficinaTodos ---- cbMedioOficinaTodos.setText("Todos"); add(cbMedioOficinaTodos, cc.xywh(17, 23, 3, 1)); //---- cbMostrarMedioOficina ---- cbMostrarMedioOficina.setText("Medio Oficina"); add(cbMostrarMedioOficina, cc.xy(23, 23)); //---- label10 ---- label10.setText("Tipo de Pauta:"); label10.setHorizontalAlignment(SwingConstants.RIGHT); add(label10, cc.xy(3, 25)); //---- cbPautaRegular ---- cbPautaRegular.setText("Pauta Regular"); add(cbPautaRegular, cc.xy(5, 25)); //---- cbAuspicio ---- cbAuspicio.setText("Auspicio"); add(cbAuspicio, cc.xywh(9, 25, 3, 1)); //---- cbMostrarTipoPauta ---- cbMostrarTipoPauta.setText("Tipo de Pauta"); add(cbMostrarTipoPauta, cc.xy(23, 25)); //---- lblOficinaEmpresa ---- lblOficinaEmpresa.setText("Oficina:"); add(lblOficinaEmpresa, cc.xywh(3, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbOficinaEmpresa, cc.xywh(5, 27, 7, 1)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(3, 29, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- cmbEstado ---- cmbEstado.setModel(new DefaultComboBoxModel( new String[] { "TODOS", "COTIZADO", "APROBADO", "FACTURADO", "PREPAGADO" })); add(cmbEstado, cc.xy(5, 29)); //---- cbVerAprobadosFacturados ---- cbVerAprobadosFacturados.setText("Ver solo Aprobados y Facturados"); add(cbVerAprobadosFacturados, cc.xywh(7, 29, 7, 1)); //---- cbMostrarDerechoPrograma ---- cbMostrarDerechoPrograma.setText("Derecho Programa"); add(cbMostrarDerechoPrograma, cc.xy(23, 29)); //---- lblDerechoPrograma ---- lblDerechoPrograma.setText("Derecho de Programa:"); lblDerechoPrograma.setHorizontalAlignment(SwingConstants.RIGHT); add(lblDerechoPrograma, cc.xy(3, 31)); add(cmbDerechoPrograma, cc.xywh(5, 31, 7, 1)); //======== spTblInversiones ======== { //---- tblInversionesPlanMedios ---- tblInversionesPlanMedios.setModel(new DefaultTableModel( new Object[][] { { null, null, null, null, null, null, null, null, null, null, null, null, null, null }, }, new String[] { "Informaci\u00f3n", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre", "Total" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false, false, false, false, true, true, false, true, true, true }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblInversiones.setViewportView(tblInversionesPlanMedios); } add(spTblInversiones, cc.xywh(3, 35, 25, 11)); //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(rbAgruparClienteProductoMedios); buttonGroup1.add(rbAgruparClienteMedioProducto); buttonGroup1.add(rbAgruparMedioClienteProducto); //---- buttonGroup2 ---- ButtonGroup buttonGroup2 = new ButtonGroup(); buttonGroup2.add(rbValorBruto); buttonGroup2.add(rbValorNeto); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPPlanMedioTv.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(); jtpPlanMedio = new JideTabbedPane(); spPlanMedio = new JScrollPane(); panelPlanMedio = new JPanel(); lblCodigo = new JLabel(); txtCodigo = new JTextField(); lblRevision = new JLabel(); txtRevision = new JTextField(); lblFechaCreacion = new JLabel(); txtFechaCreacion = new JTextField(); lblCorporacion = new JLabel(); txtCorporacion = new JTextField(); btnCorporacion = new JButton(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); lblCliente = new JLabel(); txtCliente = new JTextField(); btnCliente = new JButton(); lblModificaciones = new JLabel(); txtModificaciones = new JTextField(); lblOficina = new JLabel(); txtOficina = new JTextField(); btnOficina = new JButton(); lblAutorizacionSAP = new JLabel(); txtAutorizacionSAP = new JTextField(); lblOrdenTrabajo = new JLabel(); cmbOrdenTrabajo = new JComboBox(); lblFechaAprobacion = new JLabel(); cmbFechaAprobacion = new DateComboBox(); lblOrdenTrabajoDetalle = new JLabel(); cmbOrdenTrabajoDetalle = new JComboBox(); cbPrepago = new JCheckBox(); lblCampana = new JLabel(); txtCampana = new JTextField(); lblConcepto = new JLabel(); txtConcepto = new JTextField(); cbPlanMedioNuevaVersion = new JCheckBox(); cbPlanMedioNuevoMes = new JCheckBox(); lblPlanMedioRelacion = new JLabel(); textPlanMedioRelacion = new JTextField(); btnPlanMedioRelacion = new JButton(); separatorEstrategia = compFactory.createSeparator("Estrategia"); lblTarget = new JLabel(); cmbTarget = new JComboBox(); lblGuayaquil = new JLabel(); txtGuayaquil = new JTextField(); btnGuayaquil = new JButton(); lblPeriodo = new JLabel(); cmbPeriodoFechaInicio = new DateComboBox(); lblPeriodoAl = new JLabel(); cmbPeriodoFechaFin = new DateComboBox(); lblQuito = new JLabel(); txtQuito = new JTextField(); btnQuito = new JButton(); lblCobertura = new JLabel(); spCobertura = new JScrollPane(); txtCobertura = new JTextArea(); lblTotal = new JLabel(); txtTotalCiudad = new JTextField(); btnTotalCiudad = new JButton(); lblOtrasConsideraciones = new JLabel(); spOtrasConsideraciones = new JScrollPane(); txtOtrasConsideraciones = new JTextArea(); lblConsideraciones = new JLabel(); separatorTotales = compFactory.createSeparator("Totales"); lblSumaPlanMedio = new JLabel(); txtSumaPlanMedio = new JTextField(); lblBonificacionVentaPlanMedio = new JLabel(); txtBonificacionVentaPlanMedio = new JTextField(); lblDescuentoPlanMedio = new JLabel(); txtDescuentoPlanMedio = new JTextField(); lblSubtotalBonificacionVentaPlanMedio = new JLabel(); txtSubtotalBonificacionVentaPlanMedio = new JTextField(); lblComisionAgencia = new JLabel(); txtComisionAgenciaPlanMedio = new JTextField(); lblIvaPlanMedio = new JLabel(); txtIvaPlanMedio = new JTextField(); lblSubtotalPlanMedio = new JLabel(); txtSubtotalPlanMedio = new JTextField(); lblTotalPlanMedio = new JLabel(); txtTotalPlanMedio = new JTextField(); spPlanMedioPeriodo = new JScrollPane(); panelPlanMedioPeriodo = new JPanel(); spTblSubPeriodo = new JScrollPane(); tblSubPeriodo = new JTable(); lblTipo = new JLabel(); cmbTipo = new JComboBox(); lblSubPeriodo = new JLabel(); cmbSubPeriodoFechaInicio = new DateComboBox(); lblSubPeriodoAl = new JLabel(); cmbSubPeriodoFechaFin = new DateComboBox(); panelAUE = new JPanel(); btnAgregarDetalle = new JButton(); btnActualizarDetalle = new JButton(); btnEliminarDetalle = new JButton(); spProveedorPrograma = new JScrollPane(); panelProveedorPrograma = new JPanel(); lblTipoPeriodo = new JLabel(); cmbTipoPeriodo = new JComboBox(); lblMedio = new JLabel(); cmbMedio = new JComboBox(); tpArbolMedios = new JTabbedPane(); spTelevision = new JScrollPane(); panelTelevision = new JPanel(); lblComercial = new JLabel(); spTblComercial = new JScrollPane(); tblComercial = new JTable(); cbPautaTelevision = new JCheckBox(); cbPautaRadio = new JCheckBox(); cbPautaCine = new JCheckBox(); cbPautaBasica = new JCheckBox(); cbAgrupaOrdenes = new JCheckBox(); cbOrdenPorProductoComercial = new JCheckBox(); cbOrdenPorVersion = new JCheckBox(); btnImportarMapaPautaTv = new JButton(); btnImportarMapaPautaTvMultiple = new JButton(); btnTvData = new JButton(); spArbolTelevision = new JScrollPane(); arbolTelevision = new CheckBoxTree(); lblCanalTv = new JLabel(); txtCanalTv = new JTextField(); lblProgramaTv = new JLabel(); txtProgramaTv = new JTextField(); lblHoraInicioPrograma = new JLabel(); txtHoraInicioPrograma = new JTextField(); lblHoraFinPrograma = new JLabel(); txtHoraFinPrograma = new JTextField(); lblDiasPrograma = new JLabel(); lblRatingTv = new JLabel(); txtRatingTv = new JTextField(); txtVCunaTarifa = new JTextField(); lblVCunaNegocio = new JLabel(); txtVCunaNegocio = new JTextField(); txtDiasPrograma = new JTextField(); lblVCunaTarifa = new JLabel(); lblComercialTv = new JLabel(); txtComercialTv = new JTextField(); lblDerechoPrograma = new JLabel(); txtDerechoPrograma = new JTextField(); lblVersionPrograma = new JLabel(); txtVersionPrograma = new JTextField(); btnAgregarProgramaTv = new JButton(); btnCrearMapaPautaTv = new JButton(); btnEliminarProgramaTv = new JButton(); spRadio = new JScrollPane(); panelRadio = new JPanel(); spArbolRadio = new JScrollPane(); arbolRadio = new JTree(); spPrensa = new JScrollPane(); panelPrensa = new JPanel(); spArbolPrensa = new JScrollPane(); arbolPrensa = new CheckBoxTree(); lblDiario = new JLabel(); txtDiario = new JTextField(); lblSeccion = new JLabel(); txtSeccion = new JTextField(); lblUbicacion = new JLabel(); txtUbicacion = new JTextField(); lblFormato = new JLabel(); txtFormato = new JTextField(); lblAnchoColumnas = new JLabel(); txtAnchoColumnas = new JTextField(); lblAltoModulos = new JLabel(); txtAltoModulos = new JTextField(); txtAnchoCm = new JTextField(); lblAnchoCm = new JLabel(); lblAltoCm = new JLabel(); txtAltoCm = new JTextField(); lblColor = new JLabel(); txtColor = new JTextField(); lblDia = new JLabel(); lblTarifa = new JLabel(); txtTarifa = new JTextField(); btnCrearMapaPautaPrensa = new JButton(); txtDia = new JTextField(); panelMapaPauta = new JPanel(); lblTipoPeriodoMapa = new JLabel(); cmbTipoPeriodoMapa = new JComboBox(); tpMapasPauta = new JTabbedPane(); scrollPane1 = new JScrollPane(); panelMapaPautaTv = new JPanel(); lblProductoProveedor = new JLabel(); btnCrearOrdenes = new JButton(); txtProductoProveedor = new JTextField(); scrollPane2 = new JScrollPane(); panelTGRPtv = new JPanel(); spTblTGRPtv = new JScrollPane(); tblTGRPtv = new JTable(); lblSuman = new JLabel(); txtSuman = new JTextField(); lblDescuento3 = new JLabel(); txtSuman2 = new JTextField(); lblDescuento = new JLabel(); txtDescuento = new JTextField(); lblDescuento4 = new JLabel(); txtPorcentajeDescuentoVenta = new JTextField(); lblDescuento6 = new JLabel(); txtDescuentoVenta = new JTextField(); lblSubTotal = new JLabel(); txtSubTotal = new JTextField(); lblDescuento5 = new JLabel(); txtPorcentajeComisionAgencia = new JTextField(); lblDescuento7 = new JLabel(); txtComisionAgencia = new JTextField(); lblBonificacionCompra = new JLabel(); txtBonificacionCompra = new JTextField(); lblSubtotalVenta = new JLabel(); txtSubtotalVenta = new JTextField(); lblSubtotalBonificacionCompra = new JLabel(); txtSubtotalBonificacionCompra = new JTextField(); lblPorcentajeBonifiacionVenta = new JLabel(); txtPorcentajeBonificacionVenta = new JTextField(); lblBonificacionVenta = new JLabel(); txtBonificacionVenta = new JTextField(); lblIVA = new JLabel(); txtIVA = new JTextField(); lblSubtotalBonificacionVenta = new JLabel(); txtSubtotalBonificacionVenta = new JTextField(); lblTotalPauta = new JLabel(); txtTotalPauta = new JTextField(); lblDescuento9 = new JLabel(); txtIVA2 = new JTextField(); lblDescuento10 = new JLabel(); txtTotalPauta2 = new JTextField(); scrollPane3 = new JScrollPane(); panelOrdenesMedios = new JPanel(); panelDescuentoOrdenMedio = new JPanel(); cbIvaProveedor = new JCheckBox(); cbIvaCliente = new JCheckBox(); btnSetPDsctoOrdenMedio = new JButton(); lblPorcentajeDescuentoOrdenMedio = new JLabel(); txtPorcentajeDescuentoOrdenMedio = new JTextField(); btnSetPDsctoOrdenMedioxProv = new JButton(); lblPorcentajeBonificacionCompra = new JLabel(); txtPorcentajeBonificacionCompra = new JTextField(); btnSetPDsctoOrdenMedioTotal = new JButton(); panelTipoPagoOrdenMedio = new JPanel(); rbTipoPagoNormal = new JRadioButton(); btnSetTipoPago = new JButton(); rbTipoPagoCanje = new JRadioButton(); txtPorcentajeCanje = new JTextField(); btnSetTipoPagoxProv = new JButton(); cbTipoPagoComision = new JCheckBox(); btnSetTipoPagoTotal = new JButton(); cbComisionAdicional = new JCheckBox(); txtPorcentajeComisionAdicional = new JTextField(); panelActualizarCodigoOrden = new JPanel(); lblCodigoOrden = new JLabel(); textCodigoOrden = new JTextField(); btnLimpiarCodigoOrden = new JButton(); btnCambiarCodigo = new JButton(); panelTotalesOrdenMedio = new JPanel(); lblSumanOrdenMedio = new JLabel(); txtSumanOrdenMedio = new JTextField(); lblSubTotalOrdenMedio = new JLabel(); txtSubtotalOrdenMedio = new JTextField(); lblDescuentoOrdenMedio = new JLabel(); txtDescuentoOrdenMedio = new JTextField(); lblIVAOrdenMedio = new JLabel(); txtIVAOrdenMedio = new JTextField(); lblBonificacionCompraOrden = new JLabel(); txtBonificacionCompraOrden = new JTextField(); lblTotalOrdenMedio = new JLabel(); txtTotalOrdenMedio = new JTextField(); panelObservacionOrdenMedio = new JPanel(); spTxtObservacionOrdenMedio = new JScrollPane(); txtObservacionOrdenMedio = new JTextArea(); btnSetObservacionOrdenMedio = new JButton(); btnSetObservacionOrdenMedioxProv = new JButton(); btnSetObservacionOrdenMedioTotal = new JButton(); spTblOrdenesMedioCmp = new JScrollPane(); tblOrdenesMediosCmp = new JTable(); spTblOrdenesMedio = new JScrollPane(); tblOrdenesMedios = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout( new ColumnSpec[] { 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, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new 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, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== jtpPlanMedio ======== {/* w w w . j av a 2 s .co m*/ //======== spPlanMedio ======== { //======== panelPlanMedio ======== { panelPlanMedio.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX7), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(75)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), 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(42)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(20)), 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(65)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX7) }, new RowSpec[] { new RowSpec(Sizes.DLUY7), 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(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(13), FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(15), FormSpec.NO_GROW), new RowSpec(RowSpec.TOP, Sizes.DLUY4, FormSpec.NO_GROW), 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.DLUY7) })); //---- lblCodigo ---- lblCodigo.setText("C\u00f3digo:"); panelPlanMedio.add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtCodigo, cc.xy(5, 3)); //---- lblRevision ---- lblRevision.setText("Revisi\u00f3n:"); panelPlanMedio.add(lblRevision, cc.xy(9, 3)); //---- txtRevision ---- txtRevision.setEditable(false); txtRevision.setHorizontalAlignment(SwingConstants.CENTER); panelPlanMedio.add(txtRevision, cc.xy(11, 3)); //---- lblFechaCreacion ---- lblFechaCreacion.setText("F. Creaci\u00f3n:"); panelPlanMedio.add(lblFechaCreacion, cc.xywh(21, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtFechaCreacion, cc.xywh(23, 3, 3, 1)); //---- lblCorporacion ---- lblCorporacion.setText("Corporaci\u00f3n:"); panelPlanMedio.add(lblCorporacion, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtCorporacion, cc.xywh(5, 5, 13, 1)); panelPlanMedio.add(btnCorporacion, cc.xywh(19, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblEstado ---- lblEstado.setText("Estado:"); panelPlanMedio.add(lblEstado, cc.xywh(21, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbEstado, cc.xywh(23, 5, 3, 1)); //---- lblCliente ---- lblCliente.setText("Cliente:"); panelPlanMedio.add(lblCliente, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtCliente, cc.xywh(5, 7, 13, 1)); panelPlanMedio.add(btnCliente, cc.xywh(19, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblModificaciones ---- lblModificaciones.setText("Modificaciones:"); panelPlanMedio.add(lblModificaciones, cc.xywh(23, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtModificaciones ---- txtModificaciones.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtModificaciones, cc.xy(25, 7)); //---- lblOficina ---- lblOficina.setText("Oficina:"); panelPlanMedio.add(lblOficina, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtOficina, cc.xywh(5, 9, 13, 1)); panelPlanMedio.add(btnOficina, cc.xywh(19, 9, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblAutorizacionSAP ---- lblAutorizacionSAP.setText("SAP:"); panelPlanMedio.add(lblAutorizacionSAP, cc.xywh(21, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtAutorizacionSAP ---- txtAutorizacionSAP.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtAutorizacionSAP, cc.xywh(23, 9, 3, 1)); //---- lblOrdenTrabajo ---- lblOrdenTrabajo.setText("OT:"); panelPlanMedio.add(lblOrdenTrabajo, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbOrdenTrabajo, cc.xywh(5, 11, 13, 1)); //---- lblFechaAprobacion ---- lblFechaAprobacion.setText("F. Aprobaci\u00f3n:"); panelPlanMedio.add(lblFechaAprobacion, cc.xy(21, 11)); panelPlanMedio.add(cmbFechaAprobacion, cc.xywh(23, 11, 3, 1)); //---- lblOrdenTrabajoDetalle ---- lblOrdenTrabajoDetalle.setText("Detalle OT:"); panelPlanMedio.add(lblOrdenTrabajoDetalle, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbOrdenTrabajoDetalle, cc.xywh(5, 13, 13, 1)); //---- cbPrepago ---- cbPrepago.setText("Prepago"); panelPlanMedio.add(cbPrepago, cc.xy(23, 13)); //---- lblCampana ---- lblCampana.setText("Campa\u00f1a:"); panelPlanMedio.add(lblCampana, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtCampana ---- txtCampana.setEditable(false); panelPlanMedio.add(txtCampana, cc.xywh(5, 15, 13, 1)); //---- lblConcepto ---- lblConcepto.setText("Concepto:"); panelPlanMedio.add(lblConcepto, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(txtConcepto, cc.xywh(5, 17, 13, 1)); //---- cbPlanMedioNuevaVersion ---- cbPlanMedioNuevaVersion.setText("Nueva Versi\u00f3n"); panelPlanMedio.add(cbPlanMedioNuevaVersion, cc.xy(5, 19)); //---- cbPlanMedioNuevoMes ---- cbPlanMedioNuevoMes.setText("Nuevo Mes"); panelPlanMedio.add(cbPlanMedioNuevoMes, cc.xywh(11, 19, 3, 1)); //---- lblPlanMedioRelacion ---- lblPlanMedioRelacion.setText("Relaci\u00f3n con:"); panelPlanMedio.add(lblPlanMedioRelacion, cc.xywh(17, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(textPlanMedioRelacion, cc.xywh(19, 19, 3, 1)); panelPlanMedio.add(btnPlanMedioRelacion, cc.xywh(23, 19, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); panelPlanMedio.add(separatorEstrategia, cc.xywh(3, 21, 23, 1)); //---- lblTarget ---- lblTarget.setText("Target:"); panelPlanMedio.add(lblTarget, cc.xywh(3, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbTarget, cc.xywh(5, 23, 13, 1)); //---- lblGuayaquil ---- lblGuayaquil.setText("Guayaquil:"); panelPlanMedio.add(lblGuayaquil, cc.xywh(21, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtGuayaquil ---- txtGuayaquil.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtGuayaquil, cc.xy(23, 23)); panelPlanMedio.add(btnGuayaquil, cc.xywh(25, 23, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblPeriodo ---- lblPeriodo.setText("Per\u00edodo del:"); panelPlanMedio.add(lblPeriodo, cc.xywh(3, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbPeriodoFechaInicio, cc.xywh(5, 25, 3, 1)); //---- lblPeriodoAl ---- lblPeriodoAl.setText("al:"); panelPlanMedio.add(lblPeriodoAl, cc.xywh(9, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(cmbPeriodoFechaFin, cc.xywh(11, 25, 5, 1)); //---- lblQuito ---- lblQuito.setText("Quito:"); panelPlanMedio.add(lblQuito, cc.xywh(21, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtQuito ---- txtQuito.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtQuito, cc.xy(23, 25)); panelPlanMedio.add(btnQuito, cc.xywh(25, 25, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblCobertura ---- lblCobertura.setText("Cobertura:"); panelPlanMedio.add(lblCobertura, cc.xywh(3, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== spCobertura ======== { //---- txtCobertura ---- txtCobertura.setLineWrap(false); spCobertura.setViewportView(txtCobertura); } panelPlanMedio.add(spCobertura, cc.xywh(5, 27, 13, 3)); //---- lblTotal ---- lblTotal.setText("Total:"); panelPlanMedio.add(lblTotal, cc.xywh(21, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTotalCiudad ---- txtTotalCiudad.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtTotalCiudad, cc.xy(23, 27)); panelPlanMedio.add(btnTotalCiudad, cc.xywh(25, 27, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblOtrasConsideraciones ---- lblOtrasConsideraciones.setText("Otras"); panelPlanMedio.add(lblOtrasConsideraciones, cc.xywh(3, 31, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== spOtrasConsideraciones ======== { spOtrasConsideraciones.setViewportView(txtOtrasConsideraciones); } panelPlanMedio.add(spOtrasConsideraciones, cc.xywh(5, 31, 13, 3)); //---- lblConsideraciones ---- lblConsideraciones.setText("Consideraciones:"); panelPlanMedio.add(lblConsideraciones, cc.xywh(3, 33, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedio.add(separatorTotales, cc.xywh(3, 35, 23, 1)); //---- lblSumaPlanMedio ---- lblSumaPlanMedio.setText("Suma:"); panelPlanMedio.add(lblSumaPlanMedio, cc.xywh(3, 37, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSumaPlanMedio ---- txtSumaPlanMedio.setEditable(false); txtSumaPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtSumaPlanMedio, cc.xy(5, 37)); //---- lblBonificacionVentaPlanMedio ---- lblBonificacionVentaPlanMedio.setText("Bonificaci\u00f3n:"); panelPlanMedio.add(lblBonificacionVentaPlanMedio, cc.xywh(7, 37, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtBonificacionVentaPlanMedio ---- txtBonificacionVentaPlanMedio.setEditable(false); txtBonificacionVentaPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtBonificacionVentaPlanMedio, cc.xywh(11, 37, 3, 1)); //---- lblDescuentoPlanMedio ---- lblDescuentoPlanMedio.setText("Descuento:"); panelPlanMedio.add(lblDescuentoPlanMedio, cc.xywh(3, 39, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtDescuentoPlanMedio ---- txtDescuentoPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); txtDescuentoPlanMedio.setEditable(false); panelPlanMedio.add(txtDescuentoPlanMedio, cc.xy(5, 39)); //---- lblSubtotalBonificacionVentaPlanMedio ---- lblSubtotalBonificacionVentaPlanMedio.setText("SubTotal:"); panelPlanMedio.add(lblSubtotalBonificacionVentaPlanMedio, cc.xywh(7, 39, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalBonificacionVentaPlanMedio ---- txtSubtotalBonificacionVentaPlanMedio.setEditable(false); txtSubtotalBonificacionVentaPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtSubtotalBonificacionVentaPlanMedio, cc.xywh(11, 39, 3, 1)); //---- lblComisionAgencia ---- lblComisionAgencia.setText("Comisi\u00f3n Agencia:"); panelPlanMedio.add(lblComisionAgencia, cc.xywh(3, 41, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtComisionAgenciaPlanMedio ---- txtComisionAgenciaPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); txtComisionAgenciaPlanMedio.setEditable(false); panelPlanMedio.add(txtComisionAgenciaPlanMedio, cc.xy(5, 41)); //---- lblIvaPlanMedio ---- lblIvaPlanMedio.setText("IVA:"); panelPlanMedio.add(lblIvaPlanMedio, cc.xywh(9, 41, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtIvaPlanMedio ---- txtIvaPlanMedio.setEditable(false); txtIvaPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtIvaPlanMedio, cc.xywh(11, 41, 3, 1)); //---- lblSubtotalPlanMedio ---- lblSubtotalPlanMedio.setText("SubTotal:"); panelPlanMedio.add(lblSubtotalPlanMedio, cc.xywh(3, 43, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalPlanMedio ---- txtSubtotalPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); txtSubtotalPlanMedio.setEditable(false); panelPlanMedio.add(txtSubtotalPlanMedio, cc.xy(5, 43)); //---- lblTotalPlanMedio ---- lblTotalPlanMedio.setText("Total:"); panelPlanMedio.add(lblTotalPlanMedio, cc.xywh(9, 43, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTotalPlanMedio ---- txtTotalPlanMedio.setEditable(false); txtTotalPlanMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelPlanMedio.add(txtTotalPlanMedio, cc.xywh(11, 43, 3, 1)); } spPlanMedio.setViewportView(panelPlanMedio); } jtpPlanMedio.addTab("Estrategia", spPlanMedio); //======== spPlanMedioPeriodo ======== { //======== panelPlanMedioPeriodo ======== { panelPlanMedioPeriodo.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX7), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX7) }, new RowSpec[] { new RowSpec(Sizes.DLUY7), 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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(100)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY7) })); //======== spTblSubPeriodo ======== { //---- tblSubPeriodo ---- tblSubPeriodo.setModel( new DefaultTableModel(new Object[][] {}, new String[] { "Tipo", "Del", "Al" }) { boolean[] columnEditable = new boolean[] { false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tblSubPeriodo.setPreferredScrollableViewportSize(new Dimension(450, 150)); spTblSubPeriodo.setViewportView(tblSubPeriodo); } panelPlanMedioPeriodo.add(spTblSubPeriodo, cc.xywh(3, 11, 9, 5)); //---- lblTipo ---- lblTipo.setText("Tipo:"); panelPlanMedioPeriodo.add(lblTipo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedioPeriodo.add(cmbTipo, cc.xy(5, 3)); //---- lblSubPeriodo ---- lblSubPeriodo.setText("Periodo del:"); panelPlanMedioPeriodo.add(lblSubPeriodo, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedioPeriodo.add(cmbSubPeriodoFechaInicio, cc.xy(5, 5)); //---- lblSubPeriodoAl ---- lblSubPeriodoAl.setText("al:"); panelPlanMedioPeriodo.add(lblSubPeriodoAl, cc.xywh(7, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPlanMedioPeriodo.add(cmbSubPeriodoFechaFin, cc.xy(9, 5)); //======== panelAUE ======== { panelAUE.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"))); //---- btnAgregarDetalle ---- btnAgregarDetalle.setText("A"); panelAUE.add(btnAgregarDetalle, cc.xy(1, 1)); //---- btnActualizarDetalle ---- btnActualizarDetalle.setText("U"); panelAUE.add(btnActualizarDetalle, cc.xy(3, 1)); //---- btnEliminarDetalle ---- btnEliminarDetalle.setText("E"); panelAUE.add(btnEliminarDetalle, cc.xy(5, 1)); } panelPlanMedioPeriodo.add(panelAUE, cc.xywh(3, 9, 3, 1)); } spPlanMedioPeriodo.setViewportView(panelPlanMedioPeriodo); } jtpPlanMedio.addTab("Planificaci\u00f3n", spPlanMedioPeriodo); //======== spProveedorPrograma ======== { spProveedorPrograma.setEnabled(true); //======== panelProveedorPrograma ======== { panelProveedorPrograma.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX7), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(140)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(250), FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX7) }, new RowSpec[] { new RowSpec(Sizes.DLUY7), 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(Sizes.DLUY7) })); //---- lblTipoPeriodo ---- lblTipoPeriodo.setText("Tipo - Periodo:"); panelProveedorPrograma.add(lblTipoPeriodo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedorPrograma.add(cmbTipoPeriodo, cc.xywh(5, 3, 3, 1)); //---- lblMedio ---- lblMedio.setText("Medio:"); panelProveedorPrograma.add(lblMedio, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedorPrograma.add(cmbMedio, cc.xy(5, 5)); //======== tpArbolMedios ======== { //======== spTelevision ======== { spTelevision .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //======== panelTelevision ======== { panelTelevision.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), 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, FormFactory.DEFAULT_COLSPEC, 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, new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(62)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(62)), 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, new RowSpec(Sizes.dluY(77)), 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.DLUY4), 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, 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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblComercial ---- lblComercial.setText("Versiones:"); panelTelevision.add(lblComercial, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //======== spTblComercial ======== { //---- tblComercial ---- tblComercial.setModel(new DefaultTableModel(new Object[][] {}, new String[] { " ", "C\u00f3digo", "Versi\u00f3n", "Der. Programa", "Identificaci\u00f3n", "Duraci\u00f3n" }) { Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class, Object.class, Object.class, Object.class }; boolean[] columnEditable = new boolean[] { true, false, false, false, false, false }; @Override public Class<?> getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblComercial.setViewportView(tblComercial); } panelTelevision.add(spTblComercial, cc.xywh(5, 5, 17, 3)); //---- cbPautaTelevision ---- cbPautaTelevision.setText("Televisi\u00f3n"); panelTelevision.add(cbPautaTelevision, cc.xy(5, 9)); //---- cbPautaRadio ---- cbPautaRadio.setText("Radio"); panelTelevision.add(cbPautaRadio, cc.xywh(9, 9, 3, 1)); //---- cbPautaCine ---- cbPautaCine.setText("Cine"); panelTelevision.add(cbPautaCine, cc.xy(13, 9)); //---- cbPautaBasica ---- cbPautaBasica.setText("Pauta b\u00e1sica"); panelTelevision.add(cbPautaBasica, cc.xy(5, 11)); //---- cbAgrupaOrdenes ---- cbAgrupaOrdenes.setText("Orden por Medio"); panelTelevision.add(cbAgrupaOrdenes, cc.xy(5, 13)); //---- cbOrdenPorProductoComercial ---- cbOrdenPorProductoComercial.setText("Orden por Producto Comercial"); panelTelevision.add(cbOrdenPorProductoComercial, cc.xywh(9, 13, 5, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- cbOrdenPorVersion ---- cbOrdenPorVersion.setText("Orden por Comercial"); panelTelevision.add(cbOrdenPorVersion, cc.xywh(15, 13, 3, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- btnImportarMapaPautaTv ---- btnImportarMapaPautaTv.setText("Excel B\u00e1"); panelTelevision.add(btnImportarMapaPautaTv, cc.xy(11, 17)); //---- btnImportarMapaPautaTvMultiple ---- btnImportarMapaPautaTvMultiple.setText("Cargar Excel"); panelTelevision.add(btnImportarMapaPautaTvMultiple, cc.xy(5, 17)); //---- btnTvData ---- btnTvData.setText("C. Excel"); panelTelevision.add(btnTvData, cc.xywh(5, 19, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //======== spArbolTelevision ======== { //---- arbolTelevision ---- arbolTelevision.setVisibleRowCount(20); spArbolTelevision.setViewportView(arbolTelevision); } panelTelevision.add(spArbolTelevision, cc.xywh(3, 21, 9, 27)); //---- lblCanalTv ---- lblCanalTv.setText("Canal:"); panelTelevision.add(lblCanalTv, cc.xywh(13, 21, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtCanalTv, cc.xywh(15, 21, 5, 1)); //---- lblProgramaTv ---- lblProgramaTv.setText("Programa:"); panelTelevision.add(lblProgramaTv, cc.xywh(13, 23, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtProgramaTv, cc.xywh(15, 23, 5, 1)); //---- lblHoraInicioPrograma ---- lblHoraInicioPrograma.setText("Hora Inicio:"); panelTelevision.add(lblHoraInicioPrograma, cc.xywh(13, 25, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtHoraInicioPrograma, cc.xy(15, 25)); //---- lblHoraFinPrograma ---- lblHoraFinPrograma.setText("Hora Fin:"); panelTelevision.add(lblHoraFinPrograma, cc.xywh(17, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtHoraFinPrograma, cc.xy(19, 25)); //---- lblDiasPrograma ---- lblDiasPrograma.setText("D\u00edas:"); panelTelevision.add(lblDiasPrograma, cc.xywh(13, 27, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblRatingTv ---- lblRatingTv.setText("Rating:"); panelTelevision.add(lblRatingTv, cc.xywh(17, 27, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtRatingTv, cc.xy(19, 27)); panelTelevision.add(txtVCunaTarifa, cc.xy(15, 29)); //---- lblVCunaNegocio ---- lblVCunaNegocio.setText("V. Cu\u00f1a Negocio:"); panelTelevision.add(lblVCunaNegocio, cc.xywh(17, 29, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtVCunaNegocio, cc.xy(19, 29)); panelTelevision.add(txtDiasPrograma, cc.xy(15, 27)); //---- lblVCunaTarifa ---- lblVCunaTarifa.setText("V. Cu\u00f1a Tarifa:"); panelTelevision.add(lblVCunaTarifa, cc.xywh(13, 29, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblComercialTv ---- lblComercialTv.setText("Comercial:"); panelTelevision.add(lblComercialTv, cc.xywh(13, 31, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtComercialTv, cc.xywh(15, 31, 5, 1)); //---- lblDerechoPrograma ---- lblDerechoPrograma.setText("Der. Programa:"); panelTelevision.add(lblDerechoPrograma, cc.xywh(13, 33, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtDerechoPrograma, cc.xywh(15, 33, 3, 1)); //---- lblVersionPrograma ---- lblVersionPrograma.setText("Versi\u00f3n:"); panelTelevision.add(lblVersionPrograma, cc.xywh(13, 35, 2, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelTelevision.add(txtVersionPrograma, cc.xy(15, 35)); //---- btnAgregarProgramaTv ---- btnAgregarProgramaTv.setText("Add Programa"); panelTelevision.add(btnAgregarProgramaTv, cc.xy(15, 37)); //---- btnCrearMapaPautaTv ---- btnCrearMapaPautaTv.setText("Crear Mapa Pauta"); panelTelevision.add(btnCrearMapaPautaTv, cc.xy(19, 37)); //---- btnEliminarProgramaTv ---- btnEliminarProgramaTv.setText("Delete Programa"); panelTelevision.add(btnEliminarProgramaTv, cc.xy(17, 37)); } spTelevision.setViewportView(panelTelevision); } tpArbolMedios.addTab("Medios", spTelevision); //======== spRadio ======== { //======== panelRadio ======== { panelRadio.setLayout(new FormLayout(new ColumnSpec[] { 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, 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, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new 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, FormFactory.DEFAULT_ROWSPEC })); //======== spArbolRadio ======== { spArbolRadio.setViewportView(arbolRadio); } panelRadio.add(spArbolRadio, cc.xywh(3, 3, 5, 9)); } spRadio.setViewportView(panelRadio); } tpArbolMedios.addTab("M1", spRadio); //======== spPrensa ======== { //======== panelPrensa ======== { panelPrensa.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, 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, new ColumnSpec(Sizes.dluX(20)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), 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, 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.DLUY7), 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)) })); //======== spArbolPrensa ======== { //---- arbolPrensa ---- arbolPrensa.setVisibleRowCount(20); spArbolPrensa.setViewportView(arbolPrensa); } panelPrensa.add(spArbolPrensa, cc.xywh(3, 3, 5, 25)); //---- lblDiario ---- lblDiario.setText("Diario:"); panelPrensa.add(lblDiario, cc.xywh(11, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPrensa.add(txtDiario, cc.xywh(13, 3, 9, 1)); //---- lblSeccion ---- lblSeccion.setText("Secci\u00f3n:"); panelPrensa.add(lblSeccion, cc.xywh(11, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPrensa.add(txtSeccion, cc.xywh(13, 5, 9, 1)); //---- lblUbicacion ---- lblUbicacion.setText("Ubicaci\u00f3n:"); panelPrensa.add(lblUbicacion, cc.xywh(11, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPrensa.add(txtUbicacion, cc.xywh(13, 7, 9, 1)); //---- lblFormato ---- lblFormato.setText("Formato:"); panelPrensa.add(lblFormato, cc.xywh(11, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPrensa.add(txtFormato, cc.xywh(13, 9, 9, 1)); //---- lblAnchoColumnas ---- lblAnchoColumnas.setText("Ancho (Columnas):"); panelPrensa.add(lblAnchoColumnas, cc.xywh(11, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtAnchoColumnas ---- txtAnchoColumnas.setHorizontalAlignment(SwingConstants.RIGHT); panelPrensa.add(txtAnchoColumnas, cc.xy(13, 11)); //---- lblAltoModulos ---- lblAltoModulos.setText("Alto (Modulos):"); panelPrensa.add(lblAltoModulos, cc.xywh(17, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtAltoModulos ---- txtAltoModulos.setHorizontalAlignment(SwingConstants.RIGHT); panelPrensa.add(txtAltoModulos, cc.xy(19, 11)); //---- txtAnchoCm ---- txtAnchoCm.setHorizontalAlignment(SwingConstants.RIGHT); panelPrensa.add(txtAnchoCm, cc.xy(13, 13)); //---- lblAnchoCm ---- lblAnchoCm.setText("Ancho (Cm.):"); panelPrensa.add(lblAnchoCm, cc.xywh(11, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblAltoCm ---- lblAltoCm.setText("Alto (Cm.):"); panelPrensa.add(lblAltoCm, cc.xywh(17, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtAltoCm ---- txtAltoCm.setHorizontalAlignment(SwingConstants.RIGHT); panelPrensa.add(txtAltoCm, cc.xy(19, 13)); //---- lblColor ---- lblColor.setText("Color:"); panelPrensa.add(lblColor, cc.xywh(11, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelPrensa.add(txtColor, cc.xy(13, 15)); //---- lblDia ---- lblDia.setText("D\u00eda:"); panelPrensa.add(lblDia, cc.xywh(17, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- lblTarifa ---- lblTarifa.setText("Tarifa($):"); panelPrensa.add(lblTarifa, cc.xywh(11, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTarifa ---- txtTarifa.setHorizontalAlignment(SwingConstants.RIGHT); panelPrensa.add(txtTarifa, cc.xywh(13, 17, 3, 1)); //---- btnCrearMapaPautaPrensa ---- btnCrearMapaPautaPrensa.setText("Crear Mapa Pauta"); panelPrensa.add(btnCrearMapaPautaPrensa, cc.xywh(19, 21, 3, 1)); panelPrensa.add(txtDia, cc.xy(19, 15)); } spPrensa.setViewportView(panelPrensa); } tpArbolMedios.addTab("M2", spPrensa); } panelProveedorPrograma.add(tpArbolMedios, cc.xywh(3, 9, 9, 5)); } spProveedorPrograma.setViewportView(panelProveedorPrograma); } jtpPlanMedio.addTab("Medios", spProveedorPrograma); //======== panelMapaPauta ======== { panelMapaPauta.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(240)), 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(Sizes.dluX(17)) }, new 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(Sizes.dluY(10)) })); //---- lblTipoPeriodoMapa ---- lblTipoPeriodoMapa.setText("Tipo - Periodo:"); panelMapaPauta.add(lblTipoPeriodoMapa, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelMapaPauta.add(cmbTipoPeriodoMapa, cc.xy(5, 3)); //======== tpMapasPauta ======== { //======== scrollPane1 ======== { //======== panelMapaPautaTv ======== { panelMapaPautaTv.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.DLUX5), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;150dlu)"), 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(Sizes.DLUX5) }, new RowSpec[] { new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.dluY(150), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY5), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblProductoProveedor ---- lblProductoProveedor.setText("Producto del Proveedor:"); panelMapaPautaTv.add(lblProductoProveedor, cc.xy(3, 13)); //---- btnCrearOrdenes ---- btnCrearOrdenes.setText("Imprimir Ordenes"); panelMapaPautaTv.add(btnCrearOrdenes, cc.xywh(9, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtProductoProveedor ---- txtProductoProveedor.setEditable(false); panelMapaPautaTv.add(txtProductoProveedor, cc.xywh(5, 13, 3, 1)); } scrollPane1.setViewportView(panelMapaPautaTv); } tpMapasPauta.addTab("Medio", scrollPane1); //======== scrollPane2 ======== { //======== panelTGRPtv ======== { panelTGRPtv.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), 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(90)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(98)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(75), FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(34)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(77)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(180)), 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)) })); //======== spTblTGRPtv ======== { //---- tblTGRPtv ---- tblTGRPtv.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "#", "H.INI", "MEDIO", "PROGRAMA", "COMERCIAL", "CU\u00d1AS", "GYE", "UIO", "PON", "TRPS", "TARIFA", "VALOR TOTAL" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); { TableColumnModel cm = tblTGRPtv.getColumnModel(); cm.getColumn(0).setPreferredWidth(30); } spTblTGRPtv.setViewportView(tblTGRPtv); } panelTGRPtv.add(spTblTGRPtv, cc.xywh(3, 3, 17, 5)); //---- lblSuman ---- lblSuman.setText("Suman:"); panelTGRPtv.add(lblSuman, cc.xywh(7, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSuman ---- txtSuman.setEditable(false); txtSuman.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSuman, cc.xy(9, 11)); //---- lblDescuento3 ---- lblDescuento3.setText("Suman:"); panelTGRPtv.add(lblDescuento3, cc.xywh(17, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSuman2 ---- txtSuman2.setEditable(false); txtSuman2.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSuman2, cc.xy(19, 11)); //---- lblDescuento ---- lblDescuento.setText("Descuento Agencia [$]:"); panelTGRPtv.add(lblDescuento, cc.xywh(7, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtDescuento ---- txtDescuento.setHorizontalAlignment(SwingConstants.RIGHT); txtDescuento.setEditable(false); panelTGRPtv.add(txtDescuento, cc.xy(9, 13)); //---- lblDescuento4 ---- lblDescuento4.setText("Descuento Agencia [%]:"); panelTGRPtv.add(lblDescuento4, cc.xywh(13, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPorcentajeDescuentoVenta ---- txtPorcentajeDescuentoVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtPorcentajeDescuentoVenta, cc.xy(15, 13)); //---- lblDescuento6 ---- lblDescuento6.setText("Descuento Agencia [$]:"); panelTGRPtv.add(lblDescuento6, cc.xywh(17, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtDescuentoVenta ---- txtDescuentoVenta.setEditable(false); txtDescuentoVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtDescuentoVenta, cc.xy(19, 13)); //---- lblSubTotal ---- lblSubTotal.setText("SubTotal:"); panelTGRPtv.add(lblSubTotal, cc.xywh(7, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubTotal ---- txtSubTotal.setEditable(false); txtSubTotal.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSubTotal, cc.xy(9, 15)); //---- lblDescuento5 ---- lblDescuento5.setText("Comisi\u00f3n Agencia [%]:"); panelTGRPtv.add(lblDescuento5, cc.xywh(13, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPorcentajeComisionAgencia ---- txtPorcentajeComisionAgencia.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtPorcentajeComisionAgencia, cc.xy(15, 15)); //---- lblDescuento7 ---- lblDescuento7.setText("Comisi\u00f3n Agencia [$]:"); panelTGRPtv.add(lblDescuento7, cc.xywh(17, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtComisionAgencia ---- txtComisionAgencia.setEditable(false); txtComisionAgencia.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtComisionAgencia, cc.xy(19, 15)); //---- lblBonificacionCompra ---- lblBonificacionCompra.setText("Bonificaci\u00f3n [$]:"); panelTGRPtv.add(lblBonificacionCompra, cc.xywh(7, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtBonificacionCompra ---- txtBonificacionCompra.setEditable(false); txtBonificacionCompra.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtBonificacionCompra, cc.xy(9, 17)); //---- lblSubtotalVenta ---- lblSubtotalVenta.setText("SubTotal:"); panelTGRPtv.add(lblSubtotalVenta, cc.xywh(17, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalVenta ---- txtSubtotalVenta.setEditable(false); txtSubtotalVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSubtotalVenta, cc.xy(19, 17)); //---- lblSubtotalBonificacionCompra ---- lblSubtotalBonificacionCompra.setText("SubTotal:"); panelTGRPtv.add(lblSubtotalBonificacionCompra, cc.xywh(7, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalBonificacionCompra ---- txtSubtotalBonificacionCompra.setEditable(false); txtSubtotalBonificacionCompra.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSubtotalBonificacionCompra, cc.xy(9, 19)); //---- lblPorcentajeBonifiacionVenta ---- lblPorcentajeBonifiacionVenta.setText("Bonificaci\u00f3n [%]:"); panelTGRPtv.add(lblPorcentajeBonifiacionVenta, cc.xywh(13, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPorcentajeBonificacionVenta ---- txtPorcentajeBonificacionVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtPorcentajeBonificacionVenta, cc.xy(15, 19)); //---- lblBonificacionVenta ---- lblBonificacionVenta.setText("Bonificaci\u00f3n [$]:"); panelTGRPtv.add(lblBonificacionVenta, cc.xywh(17, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtBonificacionVenta ---- txtBonificacionVenta.setEditable(false); txtBonificacionVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtBonificacionVenta, cc.xy(19, 19)); //---- lblIVA ---- lblIVA.setText("IVA:"); panelTGRPtv.add(lblIVA, cc.xywh(7, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtIVA ---- txtIVA.setEditable(false); txtIVA.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtIVA, cc.xy(9, 21)); //---- lblSubtotalBonificacionVenta ---- lblSubtotalBonificacionVenta.setText("SubTotal:"); panelTGRPtv.add(lblSubtotalBonificacionVenta, cc.xywh(17, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalBonificacionVenta ---- txtSubtotalBonificacionVenta.setEditable(false); txtSubtotalBonificacionVenta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtSubtotalBonificacionVenta, cc.xy(19, 21)); //---- lblTotalPauta ---- lblTotalPauta.setText("Total:"); panelTGRPtv.add(lblTotalPauta, cc.xywh(7, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTotalPauta ---- txtTotalPauta.setEditable(false); txtTotalPauta.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtTotalPauta, cc.xy(9, 23)); //---- lblDescuento9 ---- lblDescuento9.setText("IVA:"); panelTGRPtv.add(lblDescuento9, cc.xywh(17, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtIVA2 ---- txtIVA2.setEditable(false); txtIVA2.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtIVA2, cc.xy(19, 23)); //---- lblDescuento10 ---- lblDescuento10.setText("Total:"); panelTGRPtv.add(lblDescuento10, cc.xywh(17, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTotalPauta2 ---- txtTotalPauta2.setEditable(false); txtTotalPauta2.setHorizontalAlignment(SwingConstants.RIGHT); panelTGRPtv.add(txtTotalPauta2, cc.xy(19, 25)); } scrollPane2.setViewportView(panelTGRPtv); } tpMapasPauta.addTab("TGRP", scrollPane2); //======== scrollPane3 ======== { //======== panelOrdenesMedios ======== { panelOrdenesMedios.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX8), new ColumnSpec(Sizes.dluX(130)), new ColumnSpec(Sizes.DLUX4), new ColumnSpec(Sizes.dluX(115)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(35)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(87)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(47), FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { new RowSpec(Sizes.DLUY8), 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, FormFactory.DEFAULT_ROWSPEC })); //======== panelDescuentoOrdenMedio ======== { panelDescuentoOrdenMedio.setBorder(new TitledBorder("Descuento y condiciones IVA")); panelDescuentoOrdenMedio.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.DLUX5), new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default, 19dlu, default"))); //---- cbIvaProveedor ---- cbIvaProveedor.setText("IVA Proveedor"); cbIvaProveedor.setSelected(true); panelDescuentoOrdenMedio.add(cbIvaProveedor, cc.xy(1, 1)); //---- cbIvaCliente ---- cbIvaCliente.setText("IVA Cliente"); cbIvaCliente.setSelected(true); panelDescuentoOrdenMedio.add(cbIvaCliente, cc.xy(3, 1)); //---- btnSetPDsctoOrdenMedio ---- btnSetPDsctoOrdenMedio.setText("Actualizar Orden"); panelDescuentoOrdenMedio.add(btnSetPDsctoOrdenMedio, cc.xy(5, 1)); //---- lblPorcentajeDescuentoOrdenMedio ---- lblPorcentajeDescuentoOrdenMedio.setText("Desc. Agencia [%]:"); panelDescuentoOrdenMedio.add(lblPorcentajeDescuentoOrdenMedio, cc.xywh(1, 2, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPorcentajeDescuentoOrdenMedio ---- txtPorcentajeDescuentoOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelDescuentoOrdenMedio.add(txtPorcentajeDescuentoOrdenMedio, cc.xy(3, 2)); //---- btnSetPDsctoOrdenMedioxProv ---- btnSetPDsctoOrdenMedioxProv.setText("Actualizar Medio"); panelDescuentoOrdenMedio.add(btnSetPDsctoOrdenMedioxProv, cc.xy(5, 2)); //---- lblPorcentajeBonificacionCompra ---- lblPorcentajeBonificacionCompra.setText("Bonificaci\u00f3n [%]:"); panelDescuentoOrdenMedio.add(lblPorcentajeBonificacionCompra, cc.xywh(1, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtPorcentajeBonificacionCompra ---- txtPorcentajeBonificacionCompra.setHorizontalAlignment(SwingConstants.RIGHT); panelDescuentoOrdenMedio.add(txtPorcentajeBonificacionCompra, cc.xy(3, 3)); //---- btnSetPDsctoOrdenMedioTotal ---- btnSetPDsctoOrdenMedioTotal.setText("Actualizar Todos"); panelDescuentoOrdenMedio.add(btnSetPDsctoOrdenMedioTotal, cc.xy(5, 3)); } panelOrdenesMedios.add(panelDescuentoOrdenMedio, cc.xywh(2, 3, 3, 1)); //======== panelTipoPagoOrdenMedio ======== { panelTipoPagoOrdenMedio.setBorder(new TitledBorder("Forma de Pago")); panelTipoPagoOrdenMedio.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)), 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(Sizes.dluX(30)) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- rbTipoPagoNormal ---- rbTipoPagoNormal.setText("Normal"); panelTipoPagoOrdenMedio.add(rbTipoPagoNormal, cc.xy(1, 1)); //---- btnSetTipoPago ---- btnSetTipoPago.setText("Actualizar Orden"); panelTipoPagoOrdenMedio.add(btnSetTipoPago, cc.xy(5, 1)); //---- rbTipoPagoCanje ---- rbTipoPagoCanje.setText("Facturaci\u00f3n Directa [%]:"); panelTipoPagoOrdenMedio.add(rbTipoPagoCanje, cc.xy(1, 3)); //---- txtPorcentajeCanje ---- txtPorcentajeCanje.setHorizontalAlignment(SwingConstants.RIGHT); panelTipoPagoOrdenMedio.add(txtPorcentajeCanje, cc.xy(3, 3)); //---- btnSetTipoPagoxProv ---- btnSetTipoPagoxProv.setText("Actualizar Medio"); panelTipoPagoOrdenMedio.add(btnSetTipoPagoxProv, cc.xy(5, 3)); //---- cbTipoPagoComision ---- cbTipoPagoComision.setText("Comisi\u00f3n Directa"); panelTipoPagoOrdenMedio.add(cbTipoPagoComision, cc.xy(1, 5)); //---- btnSetTipoPagoTotal ---- btnSetTipoPagoTotal.setText("Actualizar Todos"); panelTipoPagoOrdenMedio.add(btnSetTipoPagoTotal, cc.xy(5, 5)); //---- cbComisionAdicional ---- cbComisionAdicional.setText("Comisi\u00f3n Adicional [%]:"); panelTipoPagoOrdenMedio.add(cbComisionAdicional, cc.xy(9, 5)); //---- txtPorcentajeComisionAdicional ---- txtPorcentajeComisionAdicional.setHorizontalAlignment(SwingConstants.RIGHT); panelTipoPagoOrdenMedio.add(txtPorcentajeComisionAdicional, cc.xy(11, 5)); } panelOrdenesMedios.add(panelTipoPagoOrdenMedio, cc.xywh(6, 2, 5, 2)); //======== panelActualizarCodigoOrden ======== { panelActualizarCodigoOrden.setBorder(new TitledBorder("Actualizar C\u00f3digo")); panelActualizarCodigoOrden.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(31)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(47)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- lblCodigoOrden ---- lblCodigoOrden.setText("C\u00f3digo:"); panelActualizarCodigoOrden.add(lblCodigoOrden, cc.xywh(1, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelActualizarCodigoOrden.add(textCodigoOrden, cc.xy(3, 1)); //---- btnLimpiarCodigoOrden ---- btnLimpiarCodigoOrden.setText("Limpiar"); panelActualizarCodigoOrden.add(btnLimpiarCodigoOrden, cc.xy(5, 1)); //---- btnCambiarCodigo ---- btnCambiarCodigo.setText("Cambiar"); panelActualizarCodigoOrden.add(btnCambiarCodigo, cc.xy(5, 3)); } panelOrdenesMedios.add(panelActualizarCodigoOrden, cc.xy(12, 3)); //======== panelTotalesOrdenMedio ======== { panelTotalesOrdenMedio.setBorder(new TitledBorder("Totales")); panelTotalesOrdenMedio .setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(70)), new ColumnSpec(ColumnSpec.LEFT, Sizes.DLUX5, FormSpec.NO_GROW), FormFactory.DEFAULT_COLSPEC, new ColumnSpec(Sizes.DLUX3), new ColumnSpec(Sizes.dluX(70)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- lblSumanOrdenMedio ---- lblSumanOrdenMedio.setText("Suman:"); panelTotalesOrdenMedio.add(lblSumanOrdenMedio, cc.xywh(1, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSumanOrdenMedio ---- txtSumanOrdenMedio.setEditable(false); txtSumanOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelTotalesOrdenMedio.add(txtSumanOrdenMedio, cc.xy(3, 1)); //---- lblSubTotalOrdenMedio ---- lblSubTotalOrdenMedio.setText("SubTotal:"); panelTotalesOrdenMedio.add(lblSubTotalOrdenMedio, cc.xywh(5, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtSubtotalOrdenMedio ---- txtSubtotalOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); txtSubtotalOrdenMedio.setEditable(false); panelTotalesOrdenMedio.add(txtSubtotalOrdenMedio, cc.xy(7, 1)); //---- lblDescuentoOrdenMedio ---- lblDescuentoOrdenMedio.setText("Descuento [$]:"); panelTotalesOrdenMedio.add(lblDescuentoOrdenMedio, cc.xywh(1, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtDescuentoOrdenMedio ---- txtDescuentoOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); txtDescuentoOrdenMedio.setEditable(false); panelTotalesOrdenMedio.add(txtDescuentoOrdenMedio, cc.xy(3, 3)); //---- lblIVAOrdenMedio ---- lblIVAOrdenMedio.setText("IVA:"); panelTotalesOrdenMedio.add(lblIVAOrdenMedio, cc.xywh(5, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtIVAOrdenMedio ---- txtIVAOrdenMedio.setEditable(false); txtIVAOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelTotalesOrdenMedio.add(txtIVAOrdenMedio, cc.xy(7, 3)); //---- lblBonificacionCompraOrden ---- lblBonificacionCompraOrden.setText("Bonificaci\u00f3n [$]:"); panelTotalesOrdenMedio.add(lblBonificacionCompraOrden, cc.xy(1, 5)); //---- txtBonificacionCompraOrden ---- txtBonificacionCompraOrden.setEditable(false); txtBonificacionCompraOrden.setHorizontalAlignment(SwingConstants.RIGHT); panelTotalesOrdenMedio.add(txtBonificacionCompraOrden, cc.xy(3, 5)); //---- lblTotalOrdenMedio ---- lblTotalOrdenMedio.setText("Total:"); panelTotalesOrdenMedio.add(lblTotalOrdenMedio, cc.xywh(5, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- txtTotalOrdenMedio ---- txtTotalOrdenMedio.setEditable(false); txtTotalOrdenMedio.setHorizontalAlignment(SwingConstants.RIGHT); panelTotalesOrdenMedio.add(txtTotalOrdenMedio, cc.xy(7, 5)); } panelOrdenesMedios.add(panelTotalesOrdenMedio, cc.xywh(2, 5, 3, 1)); //======== panelObservacionOrdenMedio ======== { panelObservacionOrdenMedio.setBorder(new TitledBorder("Observaci\u00f3n")); panelObservacionOrdenMedio.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(180)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(63)) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //======== spTxtObservacionOrdenMedio ======== { //---- txtObservacionOrdenMedio ---- txtObservacionOrdenMedio.setRows(3); spTxtObservacionOrdenMedio.setViewportView(txtObservacionOrdenMedio); } panelObservacionOrdenMedio.add(spTxtObservacionOrdenMedio, cc.xywh(1, 1, 1, 5)); //---- btnSetObservacionOrdenMedio ---- btnSetObservacionOrdenMedio.setText("Act. Orden"); panelObservacionOrdenMedio.add(btnSetObservacionOrdenMedio, cc.xy(3, 1)); //---- btnSetObservacionOrdenMedioxProv ---- btnSetObservacionOrdenMedioxProv.setText("Act. Medio"); panelObservacionOrdenMedio.add(btnSetObservacionOrdenMedioxProv, cc.xy(3, 3)); //---- btnSetObservacionOrdenMedioTotal ---- btnSetObservacionOrdenMedioTotal.setText("Act. Todos"); panelObservacionOrdenMedio.add(btnSetObservacionOrdenMedioTotal, cc.xy(3, 5)); } panelOrdenesMedios.add(panelObservacionOrdenMedio, cc.xywh(6, 5, 5, 1)); //======== spTblOrdenesMedioCmp ======== { //---- tblOrdenesMediosCmp ---- tblOrdenesMediosCmp.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "#", "Medio", "Producto Comercial", "Versi\u00f3n", "Desc.", "Tipo Pago", "Estado", "Codigo" }) { boolean[] columnEditable = new boolean[] { false, false, true, false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblOrdenesMedioCmp.setViewportView(tblOrdenesMediosCmp); } panelOrdenesMedios.add(spTblOrdenesMedioCmp, cc.xywh(10, 7, 3, 5)); //======== spTblOrdenesMedio ======== { //---- tblOrdenesMedios ---- tblOrdenesMedios.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "#", "Medio", "Producto Comercial", "Versi\u00f3n", "Desc. ", "Tipo Pago", "Codigo" }) { boolean[] columnEditable = new boolean[] { false, false, true, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblOrdenesMedio.setViewportView(tblOrdenesMedios); } panelOrdenesMedios.add(spTblOrdenesMedio, cc.xywh(2, 9, 7, 5)); } scrollPane3.setViewportView(panelOrdenesMedios); } tpMapasPauta.addTab("Ordenes de Medio", scrollPane3); } panelMapaPauta.add(tpMapasPauta, cc.xywh(3, 7, 9, 5)); } jtpPlanMedio.addTab("Mapas de Pauta", panelMapaPauta); } add(jtpPlanMedio, cc.xywh(3, 3, 7, 8)); //---- bgFormaPago ---- ButtonGroup bgFormaPago = new ButtonGroup(); bgFormaPago.add(rbTipoPagoNormal); bgFormaPago.add(rbTipoPagoCanje); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPTimetracker.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(); cbOrdenTrabajo = new JCheckBox(); lblFechaInicio = new JLabel(); cmbFechaInicio = new DateComboBox(); lblFechaFin = new JLabel(); cmbFechaFin = new DateComboBox(); cbResponsable = new JCheckBox(); lblOficina = new JLabel(); cmbOficina = new JComboBox(); lblTipoOrden = new JLabel(); cmbTipoOrden = new JComboBox(); lblEstado = new JLabel(); cmbEstado = new JComboBox(); spTblOrdenes = new JScrollPane(); tblOrdenes = new JTable(); cbCliente = new JCheckBox(); lblEjecutivo = new JLabel(); cmbEjecutivo = new JComboBox(); btnConsultar = new JButton(); lblResponsable = new JLabel(); cmbResponsable = new JComboBox(); 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, FormFactory.DEFAULT_COLSPEC, 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, 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));/*w w w .jav a 2 s. co m*/ //---- cbOrdenTrabajo ---- cbOrdenTrabajo.setText("Reporte por Orden"); add(cbOrdenTrabajo, cc.xy(21, 3)); //---- 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)); //---- cbResponsable ---- cbResponsable.setText("Reporte por Responsable"); add(cbResponsable, 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)); //---- lblEstado ---- lblEstado.setText("Estado:"); add(lblEstado, cc.xywh(13, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbEstado, cc.xy(15, 7)); //======== spTblOrdenes ======== { //---- tblOrdenes ---- tblOrdenes.setModel(new DefaultTableModel( new Object[][] { { null, null, null, null, null, null, null, null, null, null, "" }, }, new String[] { "Cod.", "Cliente", "Trabajo", "Ejecutivo(a)", "SubTipo", "Responsable", "F.Creaci\u00f3n", "F.Limite", "F.Entrega", "T.Parcial", "T.Total" }) { boolean[] columnEditable = new boolean[] { false, 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, 13, 21, 5)); //---- cbCliente ---- cbCliente.setText("Reporte por Cliente"); add(cbCliente, 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, 5, 1)); //---- lblResponsable ---- lblResponsable.setText("Responsable:"); add(lblResponsable, cc.xywh(11, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); add(cmbResponsable, cc.xywh(13, 9, 3, 1)); //---- btnConsultar ---- btnConsultar.setText("Consultar"); add(btnConsultar, cc.xy(21, 9)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:se.streamsource.streamflow.client.ui.administration.surface.AccessPointView.java
License:Apache License
public AccessPointView(@Service ApplicationContext appContext, @Uses final AccessPointModel model, @Structure Module module) {/*from w w w.j av a 2 s . c o m*/ this.model = model; this.labels = module.objectBuilderFactory().newObjectBuilder(CaseLabelsView.class) .use(model.getLabelsModel()).newInstance(); setLayout(new BorderLayout()); setActionMap(appContext.getActionMap(this)); RefreshComponents refreshComponents = new RefreshComponents(); model.addObserver(refreshComponents); actionBinder = module.objectBuilderFactory().newObjectBuilder(ActionBinder.class).use(getActionMap()) .newInstance(); valueBinder = module.objectBuilderFactory().newObject(ValueBinder.class); actionBinder.setResourceMap(appContext.getResourceMap(getClass())); LinkValueConverter linkValueConverter = new LinkValueConverter(); FormLayout layout = new FormLayout("90dlu, 5dlu, 150:grow", "pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, " + "pref, 12dlu, pref, 2dlu, pref, 12dlu, pref, 2dlu, default:grow"); JPanel panel = new JPanel(layout); DefaultFormBuilder builder = new DefaultFormBuilder(layout, panel); builder.setBorder(Borders.createEmptyBorder(Sizes.DLUY8, Sizes.DLUX4, Sizes.DLUY2, Sizes.DLUX8)); CellConstraints cc = new CellConstraints(); MacOsUIWrapper.convertAccelerators(appContext.getActionMap(AccessPointView.class, this)); selectedProject.setFont(selectedProject.getFont().deriveFont(Font.BOLD)); selectedCaseType.setFont(selectedCaseType.getFont().deriveFont(Font.BOLD)); selectedForm.setFont(selectedForm.getFont().deriveFont(Font.BOLD)); selectedTemplate.getLabel().setFont(selectedTemplate.getLabel().getFont().deriveFont(Font.BOLD)); ActionMap am = getActionMap(); // Select project javax.swing.Action projectAction = am.get("project"); projectButton = new StreamflowButton(projectAction); projectButton.registerKeyboardAction(projectAction, (KeyStroke) projectAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); projectButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(projectButton, cc.xy(1, 1)); builder.add(valueBinder.bind("project", selectedProject, linkValueConverter), new CellConstraints(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.CENTER, new Insets(5, 0, 0, 0))); // Select case type javax.swing.Action caseTypeAction = am.get("casetype"); caseTypeButton = new StreamflowButton(caseTypeAction); caseTypeButton.registerKeyboardAction(caseTypeAction, (KeyStroke) caseTypeAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); caseTypeButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(caseTypeButton, cc.xy(1, 3)); builder.add(valueBinder.bind("caseType", selectedCaseType, linkValueConverter), new CellConstraints(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.CENTER, new Insets(5, 0, 0, 0))); // Select labels javax.swing.Action labelAction = labels.getActionMap().get("addLabel"); labelButton = new StreamflowButton(labelAction); labelButton.registerKeyboardAction(labelAction, (KeyStroke) labelAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); labelButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(labelButton, cc.xy(1, 5, CellConstraints.FILL, CellConstraints.TOP)); labels.setPreferredSize(new Dimension(500, 60)); labels.setTextBold(true); labels.setButtonRelation(labelButton); builder.add(labels, new CellConstraints(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.TOP, new Insets(5, 0, 0, 0))); // Select form javax.swing.Action formAction = am.get("form"); formButton = new StreamflowButton(formAction); formButton.registerKeyboardAction(formAction, (KeyStroke) formAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); formButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(formButton, cc.xy(1, 7, CellConstraints.FILL, CellConstraints.TOP)); // Open replace selection field value editor javax.swing.Action replaceSelectionFieldValueAction = am.get("openReplaceSelectionFieldValueEditor"); replaceSelectionFieldValueEditButton = new StreamflowButton(replaceSelectionFieldValueAction); /*replaceSelectionFieldValueEditButton.registerKeyboardAction( replaceSelectionFieldValueAction, (KeyStroke) replaceSelectionFieldValueAction .getValue( javax.swing.Action.ACCELERATOR_KEY ), JComponent.WHEN_IN_FOCUSED_WINDOW ); */ replaceSelectionFieldValueEditButton.setHorizontalAlignment(SwingConstants.RIGHT); PanelBuilder panelBuilder = new PanelBuilder(new FormLayout("150dlu,5dlu,250:grow", "pref")); panelBuilder.add(valueBinder.bind("form", selectedForm, linkValueConverter)); panelBuilder.nextColumn(2); panelBuilder.add(replaceSelectionFieldValueEditButton, new CellConstraints(3, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.CENTER, new Insets(0, 0, 0, 0))); //panelBuilder.setBorder(BorderFactory.createLineBorder(Color.RED)); builder.add(panelBuilder.getPanel()/*valueBinder.bind( "form", selectedForm, linkValueConverter )*/, new CellConstraints(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.CENTER, new Insets(5, 0, 0, 0))); // Select template javax.swing.Action templateAction = am.get("template"); templateButton = new StreamflowButton(templateAction); templateButton.registerKeyboardAction(templateAction, (KeyStroke) templateAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); templateButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(templateButton, cc.xy(1, 9, CellConstraints.FILL, CellConstraints.TOP)); builder.add(valueBinder.bind("template", actionBinder.bind("removeTemplate", selectedTemplate)), new CellConstraints(3, 9, 1, 1, CellConstraints.LEFT, CellConstraints.CENTER, new Insets(3, 0, 0, 0))); builder.add(new JLabel(text(AdministrationResources.cookieExpirationHours)), cc.xy(1, 13, CellConstraints.LEFT, CellConstraints.BOTTOM)); builder.add( valueBinder.bind("cookieExpirationHours", actionBinder.bind("changeCookieExpirationHours", cookieExpiration = new JTextField())), new CellConstraints(3, 13, 1, 1, CellConstraints.FILL, CellConstraints.BOTTOM, new Insets(3, 0, 0, 0))); mailSelectionLabel.setText(text(AdministrationResources.changeMailSelectionMessage)); mailSelectionLabel.setToolTipText(text(AdministrationResources.changeMailSelectionMessageHint)); builder.add(mailSelectionLabel, cc.xy(1, 15, CellConstraints.LEFT, CellConstraints.BOTTOM)); builder.add( valueBinder.bind("mailSelectionMessage", actionBinder.bind("changeMailSelectionMessage", mailSelectionField)), new CellConstraints(3, 15, 1, 1, CellConstraints.FILL, CellConstraints.BOTTOM, new Insets(3, 0, 0, 0))); PanelBuilder signPanel = new PanelBuilder(new FormLayout("180dlu, 15dlu, 180dlu", "default:grow")); CellConstraints signPanelCc = new CellConstraints(); PanelBuilder primarySignPanel = new PanelBuilder(new FormLayout("180dlu", "pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, default:grow")); CellConstraints primaryCc = new CellConstraints(); primarySignPanel.addSeparator(text(AdministrationResources.signature_1), primaryCc.xy(1, 1)); primarySignPanel.add(valueBinder.bind("primarysign", actionBinder.bind("setSignActive1", signActive1 = new JCheckBox(text(AdministrationResources.active))), new ValueBinder.Converter<RequiredSignatureValue, Boolean>() { public Boolean toComponent(RequiredSignatureValue value) { return value != null ? value.active().get() : Boolean.FALSE; } }), primaryCc.xy(1, 3)); primarySignPanel.addLabel(text(AdministrationResources.name_label), primaryCc.xy(1, 5)); primarySignPanel.add( valueBinder.bind("primarysign", actionBinder.bind("setSignName1", signName1 = new JTextField()), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.name().get() : ""; } }), primaryCc.xy(1, 7)); refreshComponents.enabledOn("updateprimarysign", signName1); primarySignPanel.add(new JLabel(text(AdministrationResources.description_label)), primaryCc.xy(1, 9)); primarySignPanel.add(valueBinder.bind("primarysign", actionBinder.bind("setSignDescription1", signDescription1 = new JTextField()), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.description().get() : ""; } }), primaryCc.xy(1, 11)); refreshComponents.enabledOn("updateprimarysign", signDescription1); signPanel.add(primarySignPanel.getPanel(), signPanelCc.xy(1, 1, CellConstraints.LEFT, CellConstraints.TOP)); PanelBuilder secondarySignPanel = new PanelBuilder(new FormLayout("180dlu", "pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 2dlu, pref, 12dlu, pref, 2dlu, pref, 2dlu, default:grow")); CellConstraints secondaryCc = new CellConstraints(); secondarySignPanel.addSeparator(text(AdministrationResources.signature_2), secondaryCc.xy(1, 1)); PanelBuilder secondaryOptionsPanel = new PanelBuilder(new FormLayout("70dlu,5dlu,70dlu,pref:grow", "pref")); secondaryOptionsPanel.add(valueBinder.bind("secondarysign", actionBinder.bind("setSignActive2", signActive2 = new JCheckBox(text(AdministrationResources.active))), new ValueBinder.Converter<RequiredSignatureValue, Boolean>() { public Boolean toComponent(RequiredSignatureValue value) { return value != null ? value.active().get() : Boolean.FALSE; } }), secondaryCc.xy(1, 1)); refreshComponents.enabledOn("updatesecondarysignactive", signActive2); secondaryOptionsPanel.add(valueBinder.bind("secondarysign", actionBinder.bind("setSecondMandatory", mandatory2 = new JCheckBox(text(AdministrationResources.mandatory))), new ValueBinder.Converter<RequiredSignatureValue, Boolean>() { public Boolean toComponent(RequiredSignatureValue value) { return value != null ? value.mandatory().get() : Boolean.FALSE; } }), secondaryCc.xy(3, 1)); refreshComponents.enabledOn("updatesecondarysign", mandatory2); secondarySignPanel.add(secondaryOptionsPanel.getPanel(), secondaryCc.xy(1, 3)); secondarySignPanel.add(new JLabel(text(AdministrationResources.name_label)), secondaryCc.xy(1, 5)); secondarySignPanel.add( valueBinder.bind("secondarysign", actionBinder.bind("setSignName2", signName2 = new JTextField()), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.name().get() : ""; } }), secondaryCc.xy(1, 7)); refreshComponents.enabledOn("updatesecondarysign", signName2); secondarySignPanel.add(new JLabel(text(AdministrationResources.description_label)), secondaryCc.xy(1, 9)); secondarySignPanel.add(valueBinder.bind("secondarysign", actionBinder.bind("setSignDescription2", signDescription2 = new JTextField()), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.description().get() : ""; } }), secondaryCc.xy(1, 11)); refreshComponents.enabledOn("updatesecondarysign", signDescription2); // Select form javax.swing.Action form2Action = am.get("setSecondForm"); form2Button = new StreamflowButton(form2Action); form2Button.registerKeyboardAction(form2Action, (KeyStroke) form2Action.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); form2Button.setHorizontalAlignment(SwingConstants.LEFT); refreshComponents.enabledOn("updatesecondarysign", form2Button); PanelBuilder form2ButtonPanel = new PanelBuilder(new FormLayout("70dlu, 5dlu, 150dlu:grow", "pref")); CellConstraints form2ButtonPanelCc = new CellConstraints(); form2ButtonPanel.add(form2Button, form2ButtonPanelCc.xy(1, 1, CellConstraints.FILL, CellConstraints.TOP)); form2ButtonPanel.add(valueBinder.bind("secondarysign", selectedForm2 = new JLabel(), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.formdescription().get() : ""; } }), form2ButtonPanelCc.xy(3, 1, CellConstraints.LEFT, CellConstraints.CENTER)); secondarySignPanel.add(form2ButtonPanel.getPanel(), secondaryCc.xy(1, 13)); secondarySignPanel.add(new JLabel(text(AdministrationResources.question_label)), secondaryCc.xy(1, 17)); secondarySignPanel.add(valueBinder.bind("secondarysign", actionBinder.bind("setQuestion", formQuestion2 = new JTextField()), new ValueBinder.Converter<RequiredSignatureValue, String>() { public String toComponent(RequiredSignatureValue value) { return value != null ? value.question().get() : ""; } }), secondaryCc.xy(1, 19)); refreshComponents.enabledOn("updatesecondarysign", formQuestion2); signPanel.add(secondarySignPanel.getPanel(), signPanelCc.xy(3, 1, CellConstraints.LEFT, CellConstraints.TOP)); builder.add(signPanel.getPanel(), new CellConstraints(1, 17, 3, 1, CellConstraints.FILL, CellConstraints.FILL, new Insets(0, 0, 0, 0))); JPanel templatePanel = new JPanel(); templatePanel.setVisible(false); FormLayout templateFormLayout = new FormLayout("75dlu, 5dlu, fill:p:grow", "pref, pref, fill:p:grow, pref"); DefaultFormBuilder templateFormBuilder = new DefaultFormBuilder(templateFormLayout, templatePanel); templateFormBuilder.addSeparator(text(AdministrationResources.emailTemplates)); templateFormBuilder.nextLine(); templateFormBuilder.append(text(AdministrationResources.subject), valueBinder.bind("subject", actionBinder.bind("changeSubject", subject = new JTextField()))); templateFormBuilder.nextLine(); templateFormBuilder.append(new JScrollPane(emailTemplateList)); templateFormBuilder.append(new JScrollPane(actionBinder.bind("save", emailTemplateText))); templateFormBuilder.nextLine(); emailTemplateList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { if (emailTemplateList.getSelectedIndex() != -1) { emailTemplateText.setText(model.getAccessPointValue().messages().get() .get(emailTemplateList.getSelectedValue())); } } } }); refreshComponents.visibleOn("updatesecondarysign", templatePanel); builder.add(templatePanel, new CellConstraints(1, 19, 3, 1, CellConstraints.FILL, CellConstraints.FILL, new Insets(0, 0, 0, 0))); add(new JScrollPane(panel), BorderLayout.CENTER); new RefreshWhenShowing(this, this); }
From source file:se.streamsource.streamflow.client.ui.administration.templates.SelectedTemplatesView.java
License:Apache License
public SelectedTemplatesView(@Service ApplicationContext appContext, @Uses SelectedTemplatesModel model, @Structure Module module) {// w ww.ja v a2 s. c om this.model = model; model.addObserver(this); selectedTemplatesBinder = module.objectBuilderFactory().newObject(StateBinder.class); selectedTemplatesBinder.addObserver(this); selectedTemplatesBinder.addConverter(new StateBinder.Converter() { public Object toComponent(Object value) { if (value instanceof LinkValue) { return ((LinkValue) value).text().get(); } else return value; } public Object fromComponent(Object value) { return value; } }); selectedTemplatesBinder.setResourceMap(appContext.getResourceMap(getClass())); SelectedTemplatesDTO template = selectedTemplatesBinder.bindingTemplate(SelectedTemplatesDTO.class); defaultTemplate.getLabel().setFont(defaultTemplate.getLabel().getFont().deriveFont(Font.BOLD)); defaultTemplate.setPreferredSize(new Dimension(150, 25)); formTemplate.getLabel().setFont(formTemplate.getLabel().getFont().deriveFont(Font.BOLD)); formTemplate.setPreferredSize(new Dimension(150, 25)); caseTemplate.getLabel().setFont(caseTemplate.getLabel().getFont().deriveFont(Font.BOLD)); caseTemplate.setPreferredSize(new Dimension(150, 25)); FormLayout layout = new FormLayout("80dlu, 5dlu, 150:grow", "pref, 2dlu, pref, 2dlu, pref, 2dlu, pref:grow"); JPanel panel = new JPanel(layout); DefaultFormBuilder builder = new DefaultFormBuilder(layout, panel); builder.setBorder(Borders.createEmptyBorder(Sizes.DLUY8, Sizes.DLUX4, Sizes.DLUY2, Sizes.DLUX8)); CellConstraints cc = new CellConstraints(); setActionMap(appContext.getActionMap(this)); MacOsUIWrapper.convertAccelerators(appContext.getActionMap(SelectedTemplatesView.class, this)); ActionMap am = getActionMap(); // Select default template javax.swing.Action defaultTemplateAction = am.get("defaultTemplate"); defaultTemplateButton = new StreamflowButton(defaultTemplateAction); defaultTemplateButton.registerKeyboardAction(defaultTemplateAction, (KeyStroke) defaultTemplateAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); defaultTemplateButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(defaultTemplateButton, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.TOP)); builder.add(selectedTemplatesBinder.bind(defaultTemplate, template.defaultPdfTemplate()), new CellConstraints(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.TOP, new Insets(3, 0, 0, 0))); // Select form template javax.swing.Action formTemplateAction = am.get("formTemplate"); formTemplateButton = new StreamflowButton(formTemplateAction); formTemplateButton.registerKeyboardAction(formTemplateAction, (KeyStroke) formTemplateAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); formTemplateButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(formTemplateButton, cc.xy(1, 5, CellConstraints.FILL, CellConstraints.TOP)); builder.add(selectedTemplatesBinder.bind(formTemplate, template.formPdfTemplate()), new CellConstraints(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.TOP, new Insets(3, 0, 0, 0))); // Select case template javax.swing.Action caseTemplateAction = am.get("caseTemplate"); caseTemplateButton = new StreamflowButton(caseTemplateAction); caseTemplateButton.registerKeyboardAction(caseTemplateAction, (KeyStroke) caseTemplateAction.getValue(javax.swing.Action.ACCELERATOR_KEY), JComponent.WHEN_IN_FOCUSED_WINDOW); caseTemplateButton.setHorizontalAlignment(SwingConstants.LEFT); builder.add(caseTemplateButton, cc.xy(1, 7, CellConstraints.FILL, CellConstraints.TOP)); builder.add(selectedTemplatesBinder.bind(caseTemplate, template.casePdfTemplate()), new CellConstraints(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.TOP, new Insets(3, 0, 0, 0))); add(panel, BorderLayout.CENTER); selectedTemplatesBinder.updateWith(model.getSelectedTemplatesValue()); new RefreshWhenShowing(this, model); }
From source file:uk.ac.ebi.mnb.menu.build.MassChargeBalanceDialog.java
License:Open Source License
private void layoutForm() { FormLayout layout = new FormLayout("40dlu, 4dlu, 40dlu, 4dlu, 40dlu", "p, 2dlu, p, 4dlu, p, 2dlu, p, 2dlu, p"); PanelBuilder builder = new PanelBuilder(layout); builder.setBorder(Borders.createEmptyBorder(Sizes.DLUX4, Sizes.DLUX4, Sizes.DLUX4, Sizes.DLUX4)); CellConstraints cc = new CellConstraints(); builder.add(new JLabel("Balancing Molecules"), cc.xyw(1, 1, 5)); builder.add(new JSeparator(), cc.xyw(1, 3, 5)); builder.add(protonCheckBox, cc.xy(1, 5)); builder.add(waterCheckBox, cc.xy(3, 5)); builder.add(oxygenCheckBox, cc.xy(5, 5)); builder.add(new JSeparator(), cc.xyw(1, 7, 5)); builder.add(getClose(), cc.xy(3, 9)); builder.add(getActivate(), cc.xy(5, 9)); add(builder.getPanel());/*from ww w . ja va2 s. c o m*/ }