List of usage examples for com.jgoodies.forms.factories DefaultComponentFactory createTitle
@Override
public JLabel createTitle(String textWithMnemonic)
createTitle("Name"); // No mnemonic createTitle("N&ame"); // Mnemonic is 'a' createTitle("Save &as"); // Mnemonic is the second 'a' createTitle("Look&&Feel"); // No mnemonic, text is Look&Feel From source file:com.spirit.compras.gui.panel.JPNavegadorCompras.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(); spArbolNavegadorCompras = new JScrollPane(); arbolNavegadorCompras = new JTree(); titleCriteriosBusqueda = compFactory.createTitle("Criterios de B\u00fasqueda"); panelCriteriosBusqueda = new JPanel(); cbTodasCompras = new JCheckBox(); cbProveedor = new JCheckBox(); txtProveedor = new JTextField(); btnProveedor = new JButton(); cbRangoFechas = new JCheckBox(); cmbFechaInicio = new DateComboBox(); lblAl = new JLabel(); cmbFechaFin = new DateComboBox(); cbEstado = new JCheckBox(); cmbEstado = new JComboBox(); btnConsultar = new JButton(); jtpNavegadorCompras = new JideTabbedPane(); spProveedor = new JScrollPane(); panelProveedor = new JPanel(); lblTipoIdentificacion = new JLabel(); txtTipoIdentificacion = new JTextField(); lblIdentificacion = new JLabel(); txtIdentificacion = new JTextField(); lblNombreLegal = new JLabel(); txtNombreLegal = new JTextField(); lblRazonSocial = new JLabel(); txtRazonSocial = new JTextField(); lblRepresentante = new JLabel(); txtRepresentante = new JTextField(); lblCorporacion = new JLabel(); txtCorporacion = new JTextField(); lblTipoProveedor = new JLabel(); txtTipoProveedor = new JTextField(); lblTipoNegocio = new JLabel(); txtTipoNegocio = new JTextField(); lblUsuarioFinal = new JLabel(); txtUsuarioFinal = new JTextField(); lblContribuyenteEspecial = new JLabel(); txtContribuyenteEspecial = new JTextField(); lblTipoPersona = new JLabel(); txtTipoPersona = new JTextField(); lblLlevaContabilidad = new JLabel(); txtLlevaContabilidad = new JTextField(); lblObservaciones = new JLabel(); txtObservaciones = new JTextField(); spCompra = new JScrollPane(); panelCompra = new JPanel(); lblCodigoCompra = new JLabel(); txtCodigoCompra = new JTextField(); lblFechaCreacionCompra = new JLabel(); cmbFechaCreacionCompra = new DateComboBox(); lblFechaVencimientoCompra = new JLabel(); cmbFechaVencimientoCompra = new DateComboBox(); lblOficinaCompra = new JLabel(); txtOficinaCompra = new JTextField(); lblProveedorCompra = new JLabel(); txtProveedorCompra = new JTextField(); lblReferencia = new JLabel(); txtReferencia = new JTextField(); lblMonedaCompra = new JLabel(); txtMonedaCompra = new JTextField(); lblTipoDocumentoCompra = new JLabel(); txtTipoDocumentoCompra = new JTextField(); lblTipoCompraCompra = new JLabel(); txtTipoCompraCompra = new JTextField(); lblEstadoCompra = new JLabel(); txtEstadoCompra = new JTextField(); lblTotal = new JLabel(); txtTotal = new JTextField(); lblObservacionCompra = new JLabel(); txtObservacionCompra = new JTextField(); CellConstraints cc = new CellConstraints(); //======== this ======== 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(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(370)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(94)), 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)) })); //======== spArbolNavegadorCompras ======== {/* ww w .ja v a 2 s . c o m*/ spArbolNavegadorCompras.setViewportView(arbolNavegadorCompras); } add(spArbolNavegadorCompras, cc.xywh(3, 3, 5, 13)); add(titleCriteriosBusqueda, cc.xywh(11, 3, 6, 1)); //======== panelCriteriosBusqueda ======== { panelCriteriosBusqueda.setBorder(new EtchedBorder()); panelCriteriosBusqueda.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(40)), 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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); //---- cbTodasCompras ---- cbTodasCompras.setText("Todas las Compras"); panelCriteriosBusqueda.add(cbTodasCompras, cc.xy(3, 3)); //---- cbProveedor ---- cbProveedor.setText("Por Proveedor:"); panelCriteriosBusqueda.add(cbProveedor, cc.xy(3, 5)); panelCriteriosBusqueda.add(txtProveedor, cc.xywh(5, 5, 7, 1)); panelCriteriosBusqueda.add(btnProveedor, cc.xywh(13, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- cbRangoFechas ---- cbRangoFechas.setText("Rango de Fechas:"); panelCriteriosBusqueda.add(cbRangoFechas, cc.xy(3, 7)); panelCriteriosBusqueda.add(cmbFechaInicio, cc.xy(5, 7)); //---- lblAl ---- lblAl.setText("al:"); panelCriteriosBusqueda.add(lblAl, cc.xy(7, 7)); panelCriteriosBusqueda.add(cmbFechaFin, cc.xy(9, 7)); //---- cbEstado ---- cbEstado.setText("Estado:"); panelCriteriosBusqueda.add(cbEstado, cc.xy(3, 9)); panelCriteriosBusqueda.add(cmbEstado, cc.xy(5, 9)); //---- btnConsultar ---- btnConsultar.setText("Consultar"); panelCriteriosBusqueda.add(btnConsultar, cc.xy(3, 11)); } add(panelCriteriosBusqueda, cc.xywh(11, 5, 5, 5)); //======== jtpNavegadorCompras ======== { //======== spProveedor ======== { //======== panelProveedor ======== { panelProveedor.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), 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, 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 })); //---- lblTipoIdentificacion ---- lblTipoIdentificacion.setText("Tipo Identificaci\u00f3n:"); panelProveedor.add(lblTipoIdentificacion, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtTipoIdentificacion, cc.xy(5, 3)); //---- lblIdentificacion ---- lblIdentificacion.setText("Identificaci\u00f3n:"); panelProveedor.add(lblIdentificacion, cc.xywh(9, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtIdentificacion, cc.xy(11, 3)); //---- lblNombreLegal ---- lblNombreLegal.setText("Nombre Legal:"); panelProveedor.add(lblNombreLegal, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtNombreLegal, cc.xywh(5, 5, 7, 1)); //---- lblRazonSocial ---- lblRazonSocial.setText("Raz\u00f3n Social:"); panelProveedor.add(lblRazonSocial, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtRazonSocial, cc.xywh(5, 7, 7, 1)); //---- lblRepresentante ---- lblRepresentante.setText("Representante:"); panelProveedor.add(lblRepresentante, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtRepresentante, cc.xywh(5, 9, 7, 1)); //---- lblCorporacion ---- lblCorporacion.setText("Corporaci\u00f3n:"); panelProveedor.add(lblCorporacion, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtCorporacion, cc.xywh(5, 11, 7, 1)); //---- lblTipoProveedor ---- lblTipoProveedor.setText("Tipo Proveedor:"); panelProveedor.add(lblTipoProveedor, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtTipoProveedor, cc.xy(5, 13)); //---- lblTipoNegocio ---- lblTipoNegocio.setText("Tipo Negocio:"); panelProveedor.add(lblTipoNegocio, cc.xywh(9, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtTipoNegocio, cc.xy(11, 13)); //---- lblUsuarioFinal ---- lblUsuarioFinal.setText("Usuario Final:"); panelProveedor.add(lblUsuarioFinal, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtUsuarioFinal, cc.xy(5, 15)); //---- lblContribuyenteEspecial ---- lblContribuyenteEspecial.setText("Contribuyente Especial:"); panelProveedor.add(lblContribuyenteEspecial, cc.xy(9, 15)); panelProveedor.add(txtContribuyenteEspecial, cc.xy(11, 15)); //---- lblTipoPersona ---- lblTipoPersona.setText("Tipo Persona:"); panelProveedor.add(lblTipoPersona, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtTipoPersona, cc.xy(5, 17)); //---- lblLlevaContabilidad ---- lblLlevaContabilidad.setText("Lleva Contabilidad:"); panelProveedor.add(lblLlevaContabilidad, cc.xywh(9, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtLlevaContabilidad, cc.xy(11, 17)); //---- lblObservaciones ---- lblObservaciones.setText("Observaciones:"); panelProveedor.add(lblObservaciones, cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelProveedor.add(txtObservaciones, cc.xywh(5, 19, 7, 1)); } spProveedor.setViewportView(panelProveedor); } jtpNavegadorCompras.addTab("Proveedor", spProveedor); //======== spCompra ======== { //======== panelCompra ======== { panelCompra.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)), 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, 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 })); //---- lblCodigoCompra ---- lblCodigoCompra.setText("C\u00f3digo:"); panelCompra.add(lblCodigoCompra, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtCodigoCompra, cc.xy(5, 3)); //---- lblFechaCreacionCompra ---- lblFechaCreacionCompra.setText("Fecha Creaci\u00f3n:"); panelCompra.add(lblFechaCreacionCompra, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(cmbFechaCreacionCompra, cc.xy(5, 5)); //---- lblFechaVencimientoCompra ---- lblFechaVencimientoCompra.setText("Fecha Vencimiento:"); panelCompra.add(lblFechaVencimientoCompra, cc.xywh(9, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(cmbFechaVencimientoCompra, cc.xy(11, 5)); //---- lblOficinaCompra ---- lblOficinaCompra.setText("Oficina:"); panelCompra.add(lblOficinaCompra, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtOficinaCompra, cc.xywh(5, 7, 7, 1)); //---- lblProveedorCompra ---- lblProveedorCompra.setText("Proveedor:"); panelCompra.add(lblProveedorCompra, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtProveedorCompra, cc.xywh(5, 9, 7, 1)); //---- lblReferencia ---- lblReferencia.setText("Referencia:"); panelCompra.add(lblReferencia, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtReferencia, cc.xy(5, 11)); //---- lblMonedaCompra ---- lblMonedaCompra.setText("Moneda:"); panelCompra.add(lblMonedaCompra, cc.xywh(9, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtMonedaCompra, cc.xy(11, 11)); //---- lblTipoDocumentoCompra ---- lblTipoDocumentoCompra.setText("Tipo Documento:"); panelCompra.add(lblTipoDocumentoCompra, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtTipoDocumentoCompra, cc.xy(5, 13)); //---- lblTipoCompraCompra ---- lblTipoCompraCompra.setText("Tipo de Compra:"); panelCompra.add(lblTipoCompraCompra, cc.xywh(9, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtTipoCompraCompra, cc.xy(11, 13)); //---- lblEstadoCompra ---- lblEstadoCompra.setText("Estado:"); panelCompra.add(lblEstadoCompra, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtEstadoCompra, cc.xy(5, 15)); //---- lblTotal ---- lblTotal.setText("Total:"); panelCompra.add(lblTotal, cc.xywh(9, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtTotal, cc.xy(11, 15)); //---- lblObservacionCompra ---- lblObservacionCompra.setText("Observaci\u00f3n:"); panelCompra.add(lblObservacionCompra, cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelCompra.add(txtObservacionCompra, cc.xywh(5, 17, 7, 1)); } spCompra.setViewportView(panelCompra); } jtpNavegadorCompras.addTab("Compra", spCompra); } add(jtpNavegadorCompras, cc.xywh(11, 11, 5, 5)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.medios.gui.panel.JPOrdenTrabajo.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(); jtpOrdenTrabajo = new JideTabbedPane(); spGeneral = new JScrollPane(); panelOrdenTrabajo = new JPanel(); lblCodigo = new JLabel(); txtCodigo = new JTextField(); lblEstadoOrden = new JLabel(); cmbEstadoOrden = new JComboBox(); txtDescripcionOrden = new JTextField(); lblDescripcionOrden = new JLabel(); lblCorporacion = new JLabel(); txtCorporacion = new JTextField(); btnBuscarCorporacion = new JButton(); lblFechaCreacion = new JLabel(); txtFechaCreacion = new JTextField(); txtCliente = new JTextField(); lblCliente = new JLabel(); btnBuscarCliente = new JButton(); lblFechaLimiteOrden = new JLabel(); cmbFechaLimiteOrden = new DateComboBox(); lblOficina = new JLabel(); txtOficina = new JTextField(); btnBuscarClienteOficina = new JButton(); lblFechaEntregaOrden = new JLabel(); cmbFechaEntregaOrden = new DateComboBox(); lblCampana = new JLabel(); cmbCampana = new JComboBox(); lblAsignadoAOrden = new JLabel(); cmbAsignadoAOrden = new JComboBox(); lblDirector = new JLabel(); cmbDirector = new JComboBox(); lblUrlPropuestaOrden = new JLabel(); txtUrlPropuestaOrden = new JTextField(); btnAgregarArchivoPropuestaOrden = new JButton(); btnVerArchivoPropuestaOrden = new JButton(); lblObservacion = new JLabel(); scrollPane2 = new JScrollPane(); txtObservacion = new JTextArea(); panelProductoCliente = new JPanel(); btnSeleccionarTodo = new JButton(); btnDeseleccionarTodo = new JButton(); spCbListProductos = new JScrollPane(); cbListProductos = new CheckBoxList(); spDetalle = new JScrollPane(); panelOrdenTrabajoDetalle = new JPanel(); lblTipo = new JLabel(); cmbTipo = new JComboBox(); lblFechaLimiteOrdenDetalle = new JLabel(); cmbFechaLimiteOrdenDetalle = new DateComboBox(); lblEquipo = new JLabel(); cmbEquipo = new JComboBox(); lblFechaEntregaOrdenDetall = new JLabel(); cmbFechaEntregaOrdenDetalle = new DateComboBox(); lblAsignadoAOrdenDetalle = new JLabel(); cmbAsignadoAOrdenDetalle = new JComboBox(); ttJefe = compFactory.createTitle("Jefe"); lblEstadoOrdenDetalle = new JLabel(); cmbEstadoOrdenDetalle = new JComboBox(); lblSubTipo = new JLabel(); cmbSubTipo = new JComboBox(); lblUrlDescripcionOrdenDetalle = new JLabel(); btnAgregarArchivoDescripcion = new JButton(); txtUrlDescripcionOrdenDetalle = new JTextField(); btnLimpiarArchivoDescripcion = new JButton(); lblUrlPropuestaDetalle = new JLabel(); btnAgregarArchivoPropuestaOrdenDetalle = new JButton(); txtUrlPropuestaOrdenDetalle = new JTextField(); btnLimpiarArchivoPropuesta = new JButton(); lblDescripcion = new JLabel(); scrollPane1 = new JScrollPane(); txtDescripcionOrdenDetalle = new JTextArea(); panel2 = new JPanel(); btnAgregarDetalle = new JButton(); btnActualizarDetalle = new JButton(); btnEliminarDetalle = new JButton(); scOrdenTrabajoDetalle = new JScrollPane(); tblOrdenTrabajoDetalle = new JTable(); CellConstraints cc = new CellConstraints(); //======== this ======== setLayout(new FormLayout("default:grow", "fill:default:grow")); //======== jtpOrdenTrabajo ======== {// w w w . j a va 2s. c o m //======== spGeneral ======== { //======== panelOrdenTrabajo ======== { panelOrdenTrabajo.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(110)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(125)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), new RowSpec(RowSpec.TOP, Sizes.DLUY8, FormSpec.NO_GROW), 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(100), FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); //---- lblCodigo ---- lblCodigo.setText("C\u00f3digo:"); panelOrdenTrabajo.add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtCodigo, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblEstadoOrden ---- lblEstadoOrden.setText("Estado:"); panelOrdenTrabajo.add(lblEstadoOrden, cc.xywh(13, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(cmbEstadoOrden, cc.xywh(15, 3, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtDescripcionOrden, cc.xywh(5, 5, 15, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblDescripcionOrden ---- lblDescripcionOrden.setText("Descripci\u00f3n:"); panelOrdenTrabajo.add(lblDescripcionOrden, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); //---- lblCorporacion ---- lblCorporacion.setText("Corporaci\u00f3n:"); panelOrdenTrabajo.add(lblCorporacion, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtCorporacion, cc.xywh(5, 7, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajo.add(btnBuscarCorporacion, cc.xywh(9, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblFechaCreacion ---- lblFechaCreacion.setText("Fecha de creaci\u00f3n:"); panelOrdenTrabajo.add(lblFechaCreacion, cc.xywh(13, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtFechaCreacion, cc.xywh(15, 7, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtCliente, cc.xywh(5, 9, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblCliente ---- lblCliente.setText("Cliente:"); panelOrdenTrabajo.add(lblCliente, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(btnBuscarCliente, cc.xywh(9, 9, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblFechaLimiteOrden ---- lblFechaLimiteOrden.setText("Fecha l\u00edmite:"); panelOrdenTrabajo.add(lblFechaLimiteOrden, cc.xywh(13, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(cmbFechaLimiteOrden, cc.xywh(15, 9, 5, 1)); //---- lblOficina ---- lblOficina.setText("Oficina:"); panelOrdenTrabajo.add(lblOficina, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtOficina, cc.xywh(5, 11, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajo.add(btnBuscarClienteOficina, cc.xywh(9, 11, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblFechaEntregaOrden ---- lblFechaEntregaOrden.setText("Fecha de entrega:"); panelOrdenTrabajo.add(lblFechaEntregaOrden, cc.xywh(13, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(cmbFechaEntregaOrden, cc.xywh(15, 11, 5, 1)); //---- lblCampana ---- lblCampana.setText("Campa\u00f1a:"); panelOrdenTrabajo.add(lblCampana, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(cmbCampana, cc.xywh(5, 13, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblAsignadoAOrden ---- lblAsignadoAOrden.setText("Ejecutivo(a):"); panelOrdenTrabajo.add(lblAsignadoAOrden, cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajo.add(cmbAsignadoAOrden, cc.xywh(5, 15, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblDirector ---- lblDirector.setText("Director(a):"); panelOrdenTrabajo.add(lblDirector, cc.xywh(9, 15, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); panelOrdenTrabajo.add(cmbDirector, cc.xywh(13, 15, 7, 1)); //---- lblUrlPropuestaOrden ---- lblUrlPropuestaOrden.setText("Archivo Propuesta:"); panelOrdenTrabajo.add(lblUrlPropuestaOrden, cc.xywh(3, 17, 3, 1, CellConstraints.LEFT, CellConstraints.FILL)); panelOrdenTrabajo.add(txtUrlPropuestaOrden, cc.xywh(3, 19, 13, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajo.add(btnAgregarArchivoPropuestaOrden, cc.xywh(17, 19, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); panelOrdenTrabajo.add(btnVerArchivoPropuestaOrden, cc.xywh(19, 19, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblObservacion ---- lblObservacion.setText("Observaci\u00f3n:"); panelOrdenTrabajo.add(lblObservacion, cc.xywh(3, 21, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //======== scrollPane2 ======== { //---- txtObservacion ---- txtObservacion.setLineWrap(true); scrollPane2.setViewportView(txtObservacion); } panelOrdenTrabajo.add(scrollPane2, cc.xywh(3, 23, 17, 1, CellConstraints.FILL, CellConstraints.FILL)); } spGeneral.setViewportView(panelOrdenTrabajo); } jtpOrdenTrabajo.addTab("General", spGeneral); //======== panelProductoCliente ======== { panelProductoCliente.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(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)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.dluY(80), FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); //---- btnSeleccionarTodo ---- btnSeleccionarTodo.setText("Seleccionar todo"); panelProductoCliente.add(btnSeleccionarTodo, cc.xy(7, 3)); //---- btnDeseleccionarTodo ---- btnDeseleccionarTodo.setText("Deseleccionar todo"); panelProductoCliente.add(btnDeseleccionarTodo, cc.xy(7, 5)); //======== spCbListProductos ======== { spCbListProductos.setViewportView(cbListProductos); } panelProductoCliente.add(spCbListProductos, cc.xywh(3, 3, 3, 7)); } jtpOrdenTrabajo.addTab("Productos", panelProductoCliente); //======== spDetalle ======== { //======== panelOrdenTrabajoDetalle ======== { panelOrdenTrabajoDetalle.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(170)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.CENTER, Sizes.dluX(12), FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), 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(12)) }, new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY14), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)), new RowSpec(RowSpec.TOP, Sizes.DLUY8, FormSpec.NO_GROW), FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.dluY(40), FormSpec.DEFAULT_GROW), new RowSpec(RowSpec.TOP, Sizes.DLUY3, FormSpec.NO_GROW), new RowSpec(Sizes.DLUY3), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(90)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) })); //---- lblTipo ---- lblTipo.setText("Tipo:"); panelOrdenTrabajoDetalle.add(lblTipo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbTipo, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblFechaLimiteOrdenDetalle ---- lblFechaLimiteOrdenDetalle.setText("Fecha l\u00edmite:"); panelOrdenTrabajoDetalle.add(lblFechaLimiteOrdenDetalle, cc.xywh(11, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbFechaLimiteOrdenDetalle, cc.xy(13, 3)); //---- lblEquipo ---- lblEquipo.setText("Equipo:"); panelOrdenTrabajoDetalle.add(lblEquipo, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbEquipo, cc.xywh(5, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblFechaEntregaOrdenDetall ---- lblFechaEntregaOrdenDetall.setText("Fecha de entrega:"); panelOrdenTrabajoDetalle.add(lblFechaEntregaOrdenDetall, cc.xywh(11, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbFechaEntregaOrdenDetalle, cc.xy(13, 5)); //---- lblAsignadoAOrdenDetalle ---- lblAsignadoAOrdenDetalle.setText("Asignado a:"); panelOrdenTrabajoDetalle.add(lblAsignadoAOrdenDetalle, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbAsignadoAOrdenDetalle, cc.xywh(5, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(ttJefe, cc.xy(7, 7)); //---- lblEstadoOrdenDetalle ---- lblEstadoOrdenDetalle.setText("Estado:"); panelOrdenTrabajoDetalle.add(lblEstadoOrdenDetalle, cc.xywh(11, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbEstadoOrdenDetalle, cc.xywh(13, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblSubTipo ---- lblSubTipo.setText("Subtipo:"); panelOrdenTrabajoDetalle.add(lblSubTipo, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(cmbSubTipo, cc.xywh(5, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); //---- lblUrlDescripcionOrdenDetalle ---- lblUrlDescripcionOrdenDetalle.setText("Archivo Descripci\u00f3n:"); panelOrdenTrabajoDetalle.add(lblUrlDescripcionOrdenDetalle, cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(btnAgregarArchivoDescripcion, cc.xywh(15, 11, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(txtUrlDescripcionOrdenDetalle, cc.xywh(5, 11, 9, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(btnLimpiarArchivoDescripcion, cc.xywh(17, 11, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblUrlPropuestaDetalle ---- lblUrlPropuestaDetalle.setText("Archivo Propuesta:"); panelOrdenTrabajoDetalle.add(lblUrlPropuestaDetalle, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(btnAgregarArchivoPropuestaOrdenDetalle, cc.xywh(15, 13, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(txtUrlPropuestaOrdenDetalle, cc.xywh(5, 13, 9, 1, CellConstraints.FILL, CellConstraints.FILL)); panelOrdenTrabajoDetalle.add(btnLimpiarArchivoPropuesta, cc.xywh(17, 13, 1, 1, CellConstraints.FILL, CellConstraints.FILL)); //---- lblDescripcion ---- lblDescripcion.setText("Descripci\u00f3n:"); panelOrdenTrabajoDetalle.add(lblDescripcion, cc.xywh(3, 15, 1, 1, CellConstraints.LEFT, CellConstraints.FILL)); //======== scrollPane1 ======== { //---- txtDescripcionOrdenDetalle ---- txtDescripcionOrdenDetalle.setLineWrap(true); scrollPane1.setViewportView(txtDescripcionOrdenDetalle); } panelOrdenTrabajoDetalle.add(scrollPane1, cc.xywh(3, 17, 15, 1)); //======== panel2 ======== { panel2.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC }, RowSpec.decodeSpecs("default"))); //---- btnAgregarDetalle ---- btnAgregarDetalle.setText("A"); panel2.add(btnAgregarDetalle, cc.xy(1, 1)); //---- btnActualizarDetalle ---- btnActualizarDetalle.setText("U"); panel2.add(btnActualizarDetalle, cc.xy(3, 1)); //---- btnEliminarDetalle ---- btnEliminarDetalle.setText("E"); panel2.add(btnEliminarDetalle, cc.xy(5, 1)); } panelOrdenTrabajoDetalle.add(panel2, cc.xywh(3, 21, 3, 1)); //======== scOrdenTrabajoDetalle ======== { //---- tblOrdenTrabajoDetalle ---- tblOrdenTrabajoDetalle.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Subtipo", "Equipo", "Asignado a", "Fecha L\u00edmite", "Estado" }) { boolean[] columnEditable = new boolean[] { false, false, false, false, false }; @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); tblOrdenTrabajoDetalle.setPreferredScrollableViewportSize(new Dimension(450, 150)); tblOrdenTrabajoDetalle.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); scOrdenTrabajoDetalle.setViewportView(tblOrdenTrabajoDetalle); } panelOrdenTrabajoDetalle.add(scOrdenTrabajoDetalle, cc.xywh(3, 23, 15, 3, CellConstraints.FILL, CellConstraints.FILL)); } spDetalle.setViewportView(panelOrdenTrabajoDetalle); } jtpOrdenTrabajo.addTab("Detalle", spDetalle); } add(jtpOrdenTrabajo, cc.xy(1, 1)); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:edu.oklahoma.studentregistration.ui.LoginPage.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Aditya Molugu DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); dialogPane = new JPanel(); contentPanel = new JPanel(); textField1 = new JTextField(); cancelButton = new JButton(); passwordField1 = new JPasswordField(); label1 = compFactory.createLabel("User Name"); label2 = compFactory.createLabel("Password"); button1 = new JButton(); title1 = compFactory.createTitle("Log in Page"); buttonBar = new JPanel(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {//from w w w . j av a2s. c o m dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12)); // JFormDesigner evaluation mark dialogPane.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), dialogPane.getBorder())); dialogPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { //---- cancelButton ---- cancelButton.setText("Cancel"); //---- button1 ---- button1.setText("Submit"); GroupLayout contentPanelLayout = new GroupLayout(contentPanel); contentPanel.setLayout(contentPanelLayout); contentPanelLayout.setHorizontalGroup(contentPanelLayout.createParallelGroup().addGroup( GroupLayout.Alignment.TRAILING, contentPanelLayout.createSequentialGroup().addGroup(contentPanelLayout .createParallelGroup(GroupLayout.Alignment.TRAILING) .addGroup(contentPanelLayout.createSequentialGroup().addGap(75, 75, 75) .addGroup(contentPanelLayout.createParallelGroup() .addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE) .addGroup(contentPanelLayout .createParallelGroup(GroupLayout.Alignment.LEADING, false) .addComponent(textField1, GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE) .addComponent(passwordField1, GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE))) .addGroup(contentPanelLayout.createSequentialGroup() .addContainerGap(98, Short.MAX_VALUE) .addComponent(button1, GroupLayout.PREFERRED_SIZE, 74, GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE))) .addGap(90, 90, 90)) .addGroup(contentPanelLayout.createSequentialGroup().addGap(132, 132, 132) .addComponent(title1, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE) .addContainerGap(153, Short.MAX_VALUE))); contentPanelLayout.setVerticalGroup(contentPanelLayout.createParallelGroup() .addGroup(contentPanelLayout.createSequentialGroup().addContainerGap() .addComponent(title1, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(passwordField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE) .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) .addComponent(cancelButton).addComponent(button1)) .addGap(29, 29, 29))); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); buttonBar.setLayout(new GridBagLayout()); ((GridBagLayout) buttonBar.getLayout()).columnWidths = new int[] { 0, 85, 80 }; ((GridBagLayout) buttonBar.getLayout()).columnWeights = new double[] { 1.0, 0.0, 0.0 }; } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:hpssim.grafica.HPSsim.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY // //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Lgc M DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); HPSsimWindow = new JFrame(); hpssimWindow = new JPanel(); hpssimTab = new JTabbedPane(); panelConfiguration = new JPanel(); label10 = new JLabel(); label3 = new JLabel(); ncpu = new JTextField(); label4 = new JLabel(); ngpu = new JTextField(); vSpacer1 = new JPanel(null); label11 = new JLabel(); label2 = new JLabel(); sliderSimulationTime = new JSlider(); textFieldSimTime = new JLabel(); label1 = new JLabel(); sliderJob = new JSlider(); textFieldNjob = new JLabel(); label9 = new JLabel(); textFieldQVGA = new JTextField(); label43 = new JLabel(); tex_mediaexe = new JTextField(); checkBoxEndJob = new JCheckBox(); label6 = new JLabel(); comboBoxScheduler = new JComboBox<>(); label8 = new JLabel(); textFieldTimeSlice = new JTextField(); label7 = new JLabel(); comboBoxQueue = new JComboBox<>(); vSpacer2 = new JPanel(null); label21 = new JLabel(); sliderclassRate = new JSlider(); labelclassRate = new JLabel(); label12 = new JLabel(); sliderRTJob = new JSlider(); labelRT = new JLabel(); label14 = new JLabel(); sliderOpenCl = new JSlider(); labelOPENCL = new JLabel(); checkBox_enableLog = new JCheckBox(); panelPerformance = new JPanel(); separator1 = new JSeparator(); tabbedPane1 = new JTabbedPane(); panelCPU = new JPanel(); labelCPUUsage = new JLabel(); panelCPUQueue = new JPanel(); tabbedPane2 = new JTabbedPane(); panelGPU = new JPanel(); labelGPUUsage = new JLabel(); panelGPUQueue = new JPanel(); panel2 = new JPanel(); label18 = new JLabel(); virtualTime = new JTextField(); label5 = new JLabel(); processiNelSistema = new JTextField(); label17 = new JLabel(); processiElaborazione = new JTextField(); label16 = new JLabel(); processiInCoda = new JTextField(); label15 = new JLabel(); ldavg_1 = new JTextField(); label19 = new JLabel(); ldavg_5 = new JTextField(); label20 = new JLabel(); ldavg_15 = new JTextField(); panel3 = new JPanel(); progressBar = new JProgressBar(); panelGraph = new JPanel(); graphPanel = new JPanel(); label23 = new JLabel(); label38 = new JLabel(); text_ClassRate = new JTextField(); label24 = new JLabel(); button_CostanteCodaSuMedia = new JButton(); label39 = new JLabel(); button_ClassRateCodaSuMedia = new JButton(); label25 = new JLabel(); button_CostanteTempoMedioArrivo = new JButton(); hSpacer1 = new JPanel(null); label40 = new JLabel(); button_ClassRateTempoMedioArrivo = new JButton(); label26 = new JLabel(); label41 = new JLabel(); label27 = new JLabel(); label42 = new JLabel(); label28 = new JLabel(); label33 = new JLabel(); label29 = new JLabel(); label30 = new JLabel(); label31 = new JLabel(); label32 = new JLabel(); button_CrescenteCodaSuMedia = new JButton(); label34 = new JLabel(); button_BurstCodaSuMedia = new JButton(); button_CrescenteCarico = new JButton(); label35 = new JLabel(); button_BurstTempoMedioArrivo = new JButton(); label36 = new JLabel(); label37 = new JLabel(); label22 = new JLabel(); title1 = compFactory.createTitle("HPSsim 2.0 "); button1 = new JButton(); okButton = new JButton(); button3 = new JButton(); dialog1 = new JDialog(); button2 = new JButton(); label13 = new JLabel(); erroreLabel = new JLabel(); Grafici = new JFrame(); panelGraficoFinestra = new JPanel(); //======== HPSsimWindow ======== {/*from w w w. j a v a 2 s .c om*/ HPSsimWindow.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); HPSsimWindow.setResizable(false); Container HPSsimWindowContentPane = HPSsimWindow.getContentPane(); //======== hpssimWindow ======== { hpssimWindow.setForeground(Color.blue); // JFormDesigner evaluation mark hpssimWindow.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), hpssimWindow.getBorder())); hpssimWindow.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); hpssimWindow.setLayout(null); //======== hpssimTab ======== { //======== panelConfiguration ======== { panelConfiguration.setLayout(new TableLayout( new double[][] { { 1, 70, 70, 70, 68, 70, 70, 74 }, { 0.01, 27, 21, 26, 27, 25, 25, 25, 21, 21, TableLayout.PREFERRED, 12, TableLayout.PREFERRED, 22, 23 } })); ((TableLayout) panelConfiguration.getLayout()).setHGap(5); ((TableLayout) panelConfiguration.getLayout()).setVGap(5); //---- label10 ---- label10.setText("Hardware"); label10.setFont(new Font("Segoe UI", Font.ITALIC, 16)); panelConfiguration.add(label10, new TableLayoutConstraints(1, 1, 7, 1, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); //---- label3 ---- label3.setText("CPU"); label3.setFont(new Font("Segoe UI", Font.PLAIN, 12)); label3.setLabelFor(ncpu); panelConfiguration.add(label3, new TableLayoutConstraints(1, 2, 1, 2, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- ncpu ---- ncpu.setText("4"); panelConfiguration.add(ncpu, new TableLayoutConstraints(2, 2, 3, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label4 ---- label4.setText("GPU"); label4.setFont(new Font("Segoe UI", Font.PLAIN, 12)); label4.setLabelFor(ngpu); panelConfiguration.add(label4, new TableLayoutConstraints(4, 2, 4, 2, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- ngpu ---- ngpu.setText("0"); panelConfiguration.add(ngpu, new TableLayoutConstraints(5, 2, 6, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); panelConfiguration.add(vSpacer1, new TableLayoutConstraints(1, 3, 7, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label11 ---- label11.setText("Simulation"); label11.setFont(new Font("Segoe UI", Font.ITALIC, 16)); panelConfiguration.add(label11, new TableLayoutConstraints(1, 4, 7, 4, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); //---- label2 ---- label2.setText("Sim Time"); panelConfiguration.add(label2, new TableLayoutConstraints(1, 5, 1, 5, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- sliderSimulationTime ---- sliderSimulationTime.setValue(100000); sliderSimulationTime.setMaximum(1200000); sliderSimulationTime.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { sliderSimulationTimeStateChanged(e); } }); panelConfiguration.add(sliderSimulationTime, new TableLayoutConstraints(2, 5, 6, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- textFieldSimTime ---- textFieldSimTime.setText("100000 ms"); panelConfiguration.add(textFieldSimTime, new TableLayoutConstraints(7, 5, 7, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label1 ---- label1.setText("Numero di job"); panelConfiguration.add(label1, new TableLayoutConstraints(1, 6, 1, 6, TableLayoutConstraints.RIGHT, TableLayoutConstraints.CENTER)); //---- sliderJob ---- sliderJob.setMaximum(20000); sliderJob.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { sliderJobStateChanged(e); } }); panelConfiguration.add(sliderJob, new TableLayoutConstraints(2, 6, 6, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- textFieldNjob ---- textFieldNjob.setText("50"); panelConfiguration.add(textFieldNjob, new TableLayoutConstraints(7, 6, 7, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label9 ---- label9.setText("Media arrivo"); panelConfiguration.add(label9, new TableLayoutConstraints(1, 7, 1, 7, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- textFieldQVGA ---- textFieldQVGA.setText("230"); panelConfiguration.add(textFieldQVGA, new TableLayoutConstraints(2, 7, 2, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label43 ---- label43.setText("Media exe"); panelConfiguration.add(label43, new TableLayoutConstraints(3, 7, 3, 7, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- tex_mediaexe ---- tex_mediaexe.setText("1000"); panelConfiguration.add(tex_mediaexe, new TableLayoutConstraints(4, 7, 4, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- checkBoxEndJob ---- checkBoxEndJob.setText("End Job"); panelConfiguration.add(checkBoxEndJob, new TableLayoutConstraints(6, 7, 6, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label6 ---- label6.setText("Scheduler"); panelConfiguration.add(label6, new TableLayoutConstraints(1, 9, 1, 9, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- comboBoxScheduler ---- comboBoxScheduler.setModel(new DefaultComboBoxModel<>( new String[] { "Priority Round Robin", "Completely Fair Scheduler" })); comboBoxScheduler.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { comboBoxSchedulerActionPerformed(e); } }); panelConfiguration.add(comboBoxScheduler, new TableLayoutConstraints(2, 9, 5, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label8 ---- label8.setText("Time Slice"); panelConfiguration.add(label8, new TableLayoutConstraints(6, 9, 6, 9, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- textFieldTimeSlice ---- textFieldTimeSlice.setText("210"); panelConfiguration.add(textFieldTimeSlice, new TableLayoutConstraints(7, 9, 7, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label7 ---- label7.setText("Queue"); panelConfiguration.add(label7, new TableLayoutConstraints(1, 10, 1, 10, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- comboBoxQueue ---- comboBoxQueue.setModel(new DefaultComboBoxModel<>(new String[] { "FIFO", "Highest Priority First", "Shortest Job First", "Round Robin", "Random Queue" })); panelConfiguration.add(comboBoxQueue, new TableLayoutConstraints(2, 10, 5, 10, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); panelConfiguration.add(vSpacer2, new TableLayoutConstraints(1, 11, 7, 11, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label21 ---- label21.setText("Class Rate"); panelConfiguration.add(label21, new TableLayoutConstraints(1, 12, 1, 12, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- sliderclassRate ---- sliderclassRate.setValue(99); sliderclassRate.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { sliderclassRateStateChanged(e); } }); panelConfiguration.add(sliderclassRate, new TableLayoutConstraints(2, 12, 4, 12, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- labelclassRate ---- labelclassRate.setText("99%"); panelConfiguration.add(labelclassRate, new TableLayoutConstraints(5, 12, 5, 12, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label12 ---- label12.setText("RT Job Prob"); panelConfiguration.add(label12, new TableLayoutConstraints(1, 13, 1, 13, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- sliderRTJob ---- sliderRTJob.setValue(45); sliderRTJob.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { sliderRTJobStateChanged(e); } }); panelConfiguration.add(sliderRTJob, new TableLayoutConstraints(2, 13, 4, 13, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- labelRT ---- labelRT.setText("45%"); panelConfiguration.add(labelRT, new TableLayoutConstraints(5, 13, 5, 13, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label14 ---- label14.setText("OpenCL Job "); panelConfiguration.add(label14, new TableLayoutConstraints(1, 14, 1, 14, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- sliderOpenCl ---- sliderOpenCl.setValue(20); sliderOpenCl.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { sliderOpenClStateChanged(e); } }); panelConfiguration.add(sliderOpenCl, new TableLayoutConstraints(2, 14, 4, 14, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- labelOPENCL ---- labelOPENCL.setText("20%"); panelConfiguration.add(labelOPENCL, new TableLayoutConstraints(5, 14, 5, 14, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- checkBox_enableLog ---- checkBox_enableLog.setText("log"); panelConfiguration.add(checkBox_enableLog, new TableLayoutConstraints(7, 14, 7, 14, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); } hpssimTab.addTab("Configuration", panelConfiguration); //======== panelPerformance ======== { //======== tabbedPane1 ======== { //======== panelCPU ======== { panelCPU.setLayout(new BorderLayout()); //---- labelCPUUsage ---- labelCPUUsage.setText("0\\0"); labelCPUUsage.setHorizontalAlignment(SwingConstants.CENTER); panelCPU.add(labelCPUUsage, BorderLayout.SOUTH); } tabbedPane1.addTab("Usage", panelCPU); //======== panelCPUQueue ======== { panelCPUQueue.setLayout(new BorderLayout()); } tabbedPane1.addTab("Queue", panelCPUQueue); } //======== tabbedPane2 ======== { //======== panelGPU ======== { panelGPU.setLayout(new BorderLayout()); //---- labelGPUUsage ---- labelGPUUsage.setText("0\\0"); labelGPUUsage.setHorizontalAlignment(SwingConstants.CENTER); panelGPU.add(labelGPUUsage, BorderLayout.SOUTH); } tabbedPane2.addTab("Usage", panelGPU); //======== panelGPUQueue ======== { panelGPUQueue.setLayout(new BorderLayout()); } tabbedPane2.addTab("Queue", panelGPUQueue); } //======== panel2 ======== { panel2.setLayout(new TableLayout(new double[][] { { TableLayout.PREFERRED, TableLayout.FILL }, { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } })); //---- label18 ---- label18.setText("Virtual Time"); panel2.add(label18, new TableLayoutConstraints(0, 0, 0, 0, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); panel2.add(virtualTime, new TableLayoutConstraints(1, 0, 1, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label5 ---- label5.setText("Processi nel sistema"); panel2.add(label5, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- processiNelSistema ---- processiNelSistema.setText("0"); panel2.add(processiNelSistema, new TableLayoutConstraints(1, 2, 1, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label17 ---- label17.setText("Processi in elaborazione"); panel2.add(label17, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- processiElaborazione ---- processiElaborazione.setText("0"); panel2.add(processiElaborazione, new TableLayoutConstraints(1, 3, 1, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label16 ---- label16.setText("Processi in coda"); panel2.add(label16, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); //---- processiInCoda ---- processiInCoda.setText("0"); panel2.add(processiInCoda, new TableLayoutConstraints(1, 4, 1, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label15 ---- label15.setText("ldavg_1"); panel2.add(label15, new TableLayoutConstraints(0, 5, 0, 5, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); panel2.add(ldavg_1, new TableLayoutConstraints(1, 5, 1, 5, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label19 ---- label19.setText("ldavg_5"); panel2.add(label19, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); panel2.add(ldavg_5, new TableLayoutConstraints(1, 6, 1, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label20 ---- label20.setText("ldavg_15"); panel2.add(label20, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.RIGHT, TableLayoutConstraints.FULL)); panel2.add(ldavg_15, new TableLayoutConstraints(1, 7, 1, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); } //======== panel3 ======== { panel3.setLayout(new TableLayout(new double[][] { { TableLayout.PREFERRED, TableLayout.PREFERRED }, { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } })); } GroupLayout panelPerformanceLayout = new GroupLayout(panelPerformance); panelPerformance.setLayout(panelPerformanceLayout); panelPerformanceLayout.setHorizontalGroup(panelPerformanceLayout.createParallelGroup() .addGroup(panelPerformanceLayout.createSequentialGroup().addContainerGap() .addGroup(panelPerformanceLayout.createParallelGroup() .addComponent(separator1) .addGroup(panelPerformanceLayout.createSequentialGroup() .addGroup(panelPerformanceLayout.createParallelGroup() .addGroup(panelPerformanceLayout .createSequentialGroup() .addComponent(panel2, GroupLayout.PREFERRED_SIZE, 256, GroupLayout.PREFERRED_SIZE) .addPreferredGap( LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(panelPerformanceLayout .createParallelGroup() .addComponent(progressBar, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(panelPerformanceLayout .createSequentialGroup() .addComponent(panel3, GroupLayout.PREFERRED_SIZE, 256, GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(panelPerformanceLayout .createSequentialGroup() .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 261, GroupLayout.PREFERRED_SIZE) .addPreferredGap( LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(tabbedPane2, GroupLayout.PREFERRED_SIZE, 261, GroupLayout.PREFERRED_SIZE))) .addContainerGap(8, Short.MAX_VALUE))))); panelPerformanceLayout.setVerticalGroup(panelPerformanceLayout.createParallelGroup() .addGroup(panelPerformanceLayout.createSequentialGroup() .addContainerGap(15, Short.MAX_VALUE) .addGroup(panelPerformanceLayout.createParallelGroup() .addComponent(tabbedPane2, GroupLayout.DEFAULT_SIZE, 218, GroupLayout.PREFERRED_SIZE) .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 218, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(separator1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE) .addGroup(panelPerformanceLayout .createParallelGroup(GroupLayout.Alignment.TRAILING, false) .addComponent(panel2, GroupLayout.PREFERRED_SIZE, 155, GroupLayout.PREFERRED_SIZE) .addGroup(panelPerformanceLayout.createSequentialGroup() .addComponent(progressBar, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18).addComponent(panel3, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE))) .addContainerGap())); } hpssimTab.addTab("Performance", panelPerformance); //======== panelGraph ======== { //======== graphPanel ======== { graphPanel.setLayout(new TableLayout(new double[][] { { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED }, { 27, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, 25, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } })); //---- label23 ---- label23.setText("Carico costante"); label23.setFont(label23.getFont().deriveFont(Font.BOLD | Font.ITALIC)); graphPanel.add(label23, new TableLayoutConstraints(0, 0, 1, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); //---- label38 ---- label38.setText("Classification Rate"); label38.setFont(label38.getFont().deriveFont(Font.BOLD | Font.ITALIC)); graphPanel.add(label38, new TableLayoutConstraints(5, 0, 6, 0, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); graphPanel.add(text_ClassRate, new TableLayoutConstraints(7, 0, 7, 0, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label24 ---- label24.setText("Coda\\Media"); graphPanel.add(label24, new TableLayoutConstraints(0, 1, 0, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_CostanteCodaSuMedia ---- button_CostanteCodaSuMedia.setText("Esegui"); button_CostanteCodaSuMedia.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_CostanteCodaSuMediaActionPerformed(e); } }); graphPanel.add(button_CostanteCodaSuMedia, new TableLayoutConstraints(2, 1, 2, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label39 ---- label39.setText("Coda\\Media"); graphPanel.add(label39, new TableLayoutConstraints(5, 1, 5, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_ClassRateCodaSuMedia ---- button_ClassRateCodaSuMedia.setText("Esegui"); button_ClassRateCodaSuMedia.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_ClassRateCodaSuMediaActionPerformed(e); } }); graphPanel.add(button_ClassRateCodaSuMedia, new TableLayoutConstraints(7, 1, 7, 1, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label25 ---- label25.setText("Tempo Medio Arrivo"); graphPanel.add(label25, new TableLayoutConstraints(0, 2, 0, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_CostanteTempoMedioArrivo ---- button_CostanteTempoMedioArrivo.setText("Esegui"); button_CostanteTempoMedioArrivo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_CostanteTempoMedioArrivoActionPerformed(e); } }); graphPanel.add(button_CostanteTempoMedioArrivo, new TableLayoutConstraints(2, 2, 2, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); graphPanel.add(hSpacer1, new TableLayoutConstraints(3, 0, 3, 15, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label40 ---- label40.setText("Tempo Medio Arrivo"); graphPanel.add(label40, new TableLayoutConstraints(5, 2, 5, 2, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_ClassRateTempoMedioArrivo ---- button_ClassRateTempoMedioArrivo.setText("Esegui"); button_ClassRateTempoMedioArrivo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_ClassRateTempoMedioArrivoActionPerformed(e); } }); graphPanel.add(button_ClassRateTempoMedioArrivo, new TableLayoutConstraints(7, 2, 7, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label26 ---- label26.setText("Troughput"); graphPanel.add(label26, new TableLayoutConstraints(0, 3, 0, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label41 ---- label41.setText("Troughput"); graphPanel.add(label41, new TableLayoutConstraints(5, 3, 5, 3, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label27 ---- label27.setText("Carico"); graphPanel.add(label27, new TableLayoutConstraints(0, 4, 0, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label42 ---- label42.setText("Carico"); graphPanel.add(label42, new TableLayoutConstraints(5, 4, 5, 4, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label28 ---- label28.setText("Carico Crescente"); label28.setFont(label28.getFont().deriveFont(Font.BOLD | Font.ITALIC)); graphPanel.add(label28, new TableLayoutConstraints(0, 5, 1, 5, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); //---- label33 ---- label33.setText("Carico Burst"); label33.setFont(label33.getFont().deriveFont(Font.BOLD | Font.ITALIC)); graphPanel.add(label33, new TableLayoutConstraints(5, 5, 6, 5, TableLayoutConstraints.CENTER, TableLayoutConstraints.FULL)); //---- label29 ---- label29.setText("Coda\\Media"); graphPanel.add(label29, new TableLayoutConstraints(0, 6, 0, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label30 ---- label30.setText("Tempo Medio Arrivo"); graphPanel.add(label30, new TableLayoutConstraints(0, 7, 0, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label31 ---- label31.setText("Troughput"); graphPanel.add(label31, new TableLayoutConstraints(0, 8, 0, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label32 ---- label32.setText("Carico"); graphPanel.add(label32, new TableLayoutConstraints(0, 9, 0, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_CrescenteCodaSuMedia ---- button_CrescenteCodaSuMedia.setText("Esegui"); button_CrescenteCodaSuMedia.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_CrescenteCodaSuMediaActionPerformed(e); } }); graphPanel.add(button_CrescenteCodaSuMedia, new TableLayoutConstraints(2, 6, 2, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label34 ---- label34.setText("Coda\\Media"); graphPanel.add(label34, new TableLayoutConstraints(5, 6, 5, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_BurstCodaSuMedia ---- button_BurstCodaSuMedia.setText("Esegui"); button_BurstCodaSuMedia.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_BurstCodaSuMediaActionPerformed(e); } }); graphPanel.add(button_BurstCodaSuMedia, new TableLayoutConstraints(7, 6, 7, 6, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_CrescenteCarico ---- button_CrescenteCarico.setText("Esegui"); button_CrescenteCarico.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_CrescenteCaricoActionPerformed(e); } }); graphPanel.add(button_CrescenteCarico, new TableLayoutConstraints(2, 7, 2, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label35 ---- label35.setText("Tempo Medio Arrivo"); graphPanel.add(label35, new TableLayoutConstraints(5, 7, 5, 7, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- button_BurstTempoMedioArrivo ---- button_BurstTempoMedioArrivo.setText("Esegui"); button_BurstTempoMedioArrivo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button_BurstTempoMedioArrivoActionPerformed(e); } }); graphPanel.add(button_BurstTempoMedioArrivo, new TableLayoutConstraints(7, 7, 7, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label36 ---- label36.setText("Troughput"); graphPanel.add(label36, new TableLayoutConstraints(5, 8, 5, 8, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); //---- label37 ---- label37.setText("Carico"); graphPanel.add(label37, new TableLayoutConstraints(5, 9, 5, 9, TableLayoutConstraints.FULL, TableLayoutConstraints.FULL)); } //---- label22 ---- label22.setText("Grafici"); label22.setFont(label22.getFont().deriveFont(label22.getFont().getStyle() | Font.BOLD, label22.getFont().getSize() + 4f)); GroupLayout panelGraphLayout = new GroupLayout(panelGraph); panelGraph.setLayout(panelGraphLayout); panelGraphLayout.setHorizontalGroup(panelGraphLayout.createParallelGroup() .addGroup(panelGraphLayout.createSequentialGroup().addGroup(panelGraphLayout .createParallelGroup() .addGroup(panelGraphLayout.createSequentialGroup().addGap(243, 243, 243) .addComponent(label22).addGap(0, 246, Short.MAX_VALUE)) .addGroup(GroupLayout.Alignment.TRAILING, panelGraphLayout.createSequentialGroup().addContainerGap() .addComponent(graphPanel, GroupLayout.DEFAULT_SIZE, 530, Short.MAX_VALUE))) .addContainerGap())); panelGraphLayout.setVerticalGroup(panelGraphLayout.createParallelGroup().addGroup( GroupLayout.Alignment.TRAILING, panelGraphLayout.createSequentialGroup().addContainerGap().addComponent(label22) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(graphPanel, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE) .addContainerGap())); } hpssimTab.addTab("Graph", panelGraph); } hpssimWindow.add(hpssimTab); hpssimTab.setBounds(10, 40, 555, 450); //---- title1 ---- title1.setFont(title1.getFont().deriveFont(title1.getFont().getSize() + 8f)); hpssimWindow.add(title1); title1.setBounds(10, 11, 132, title1.getPreferredSize().height); //---- button1 ---- button1.setText("Stop"); button1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button1ActionPerformed(e); } }); hpssimWindow.add(button1); button1.setBounds(385, 495, 74, button1.getPreferredSize().height); //---- okButton ---- okButton.setText("Start"); okButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { okButtonActionPerformed(e); } }); hpssimWindow.add(okButton); okButton.setBounds(470, 495, 74, okButton.getPreferredSize().height); //---- button3 ---- button3.setText("Resume"); button3.setVisible(false); button3.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { pauseActionPerformed(e); } }); hpssimWindow.add(button3); button3.setBounds(300, 495, 74, button3.getPreferredSize().height); { // compute preferred size Dimension preferredSize = new Dimension(); for (int i = 0; i < hpssimWindow.getComponentCount(); i++) { Rectangle bounds = hpssimWindow.getComponent(i).getBounds(); preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width); preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height); } Insets insets = hpssimWindow.getInsets(); preferredSize.width += insets.right; preferredSize.height += insets.bottom; hpssimWindow.setMinimumSize(preferredSize); hpssimWindow.setPreferredSize(preferredSize); } } GroupLayout HPSsimWindowContentPaneLayout = new GroupLayout(HPSsimWindowContentPane); HPSsimWindowContentPane.setLayout(HPSsimWindowContentPaneLayout); HPSsimWindowContentPaneLayout.setHorizontalGroup(HPSsimWindowContentPaneLayout.createParallelGroup() .addGroup(HPSsimWindowContentPaneLayout.createSequentialGroup() .addComponent(hpssimWindow, GroupLayout.PREFERRED_SIZE, 565, GroupLayout.PREFERRED_SIZE) .addGap(0, 4, Short.MAX_VALUE))); HPSsimWindowContentPaneLayout.setVerticalGroup(HPSsimWindowContentPaneLayout.createParallelGroup() .addGroup(HPSsimWindowContentPaneLayout.createSequentialGroup() .addComponent(hpssimWindow, GroupLayout.PREFERRED_SIZE, 528, GroupLayout.PREFERRED_SIZE) .addGap(0, 1, Short.MAX_VALUE))); HPSsimWindow.pack(); HPSsimWindow.setLocationRelativeTo(HPSsimWindow.getOwner()); } //======== dialog1 ======== { dialog1.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); Container dialog1ContentPane = dialog1.getContentPane(); //---- button2 ---- button2.setText("ok"); button2.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { button2ActionPerformed(e); } }); //---- label13 ---- label13.setText("Attenzione!"); GroupLayout dialog1ContentPaneLayout = new GroupLayout(dialog1ContentPane); dialog1ContentPane.setLayout(dialog1ContentPaneLayout); dialog1ContentPaneLayout.setHorizontalGroup(dialog1ContentPaneLayout.createParallelGroup() .addGroup(dialog1ContentPaneLayout.createSequentialGroup().addContainerGap() .addGroup(dialog1ContentPaneLayout.createParallelGroup() .addComponent(label13, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE) .addGroup(GroupLayout.Alignment.TRAILING, dialog1ContentPaneLayout.createSequentialGroup() .addGap(0, 281, Short.MAX_VALUE).addComponent(button2)) .addComponent(erroreLabel, GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE)) .addContainerGap())); dialog1ContentPaneLayout.setVerticalGroup(dialog1ContentPaneLayout.createParallelGroup().addGroup( GroupLayout.Alignment.TRAILING, dialog1ContentPaneLayout.createSequentialGroup().addContainerGap() .addComponent(label13, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE) .addComponent(erroreLabel, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(button2) .addContainerGap())); dialog1.pack(); dialog1.setLocationRelativeTo(dialog1.getOwner()); } //======== Grafici ======== { Container GraficiContentPane = Grafici.getContentPane(); //======== panelGraficoFinestra ======== { // JFormDesigner evaluation mark panelGraficoFinestra.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), panelGraficoFinestra.getBorder())); panelGraficoFinestra.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); panelGraficoFinestra.setLayout(new BorderLayout()); } GroupLayout GraficiContentPaneLayout = new GroupLayout(GraficiContentPane); GraficiContentPane.setLayout(GraficiContentPaneLayout); GraficiContentPaneLayout.setHorizontalGroup(GraficiContentPaneLayout.createParallelGroup() .addGroup(GraficiContentPaneLayout.createSequentialGroup().addContainerGap() .addComponent(panelGraficoFinestra, GroupLayout.DEFAULT_SIZE, 519, Short.MAX_VALUE) .addContainerGap())); GraficiContentPaneLayout.setVerticalGroup(GraficiContentPaneLayout.createParallelGroup() .addGroup(GraficiContentPaneLayout.createSequentialGroup().addContainerGap() .addComponent(panelGraficoFinestra, GroupLayout.DEFAULT_SIZE, 457, Short.MAX_VALUE) .addContainerGap())); Grafici.pack(); Grafici.setLocationRelativeTo(Grafici.getOwner()); } // //GEN-END:initComponents }
From source file:org.sikuli.ide.PreferencesWin.java
License:MIT License
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); _tabPane = new JTabbedPane(); JPanel paneCapture = new JPanel(); _txtHotkey = new JTextField(); _lblHotkey = new JLabel(); _lblDelay = new JLabel(); spnDelay = new JSpinner(); _lblDelaySecs = new JLabel(); _lblNaming = new JLabel(); _radTimestamp = new JRadioButton(); _radOCR = new JRadioButton(); _radOff = new JRadioButton(); _paneTextEditing = new JPanel(); chkExpandTab = new JCheckBox(); _lblTabWidth = new JLabel(); _cmbFontName = new JComboBox(); _lblFont = new JLabel(); _titleAppearance = compFactory.createTitle(""); _titleIndentation = compFactory.createTitle(""); spnTabWidth = new JSpinner(); _lblFontSize = new JLabel(); _spnFontSize = new JSpinner(); JPanel paneGeneral = new JPanel(); chkAutoUpdate = new JCheckBox(); _cmbLang = new JComboBox(); _lblUpdates = new JLabel(); _lblLanguage = new JLabel(); JPanel paneOkCancel = new JPanel(); JPanel hSpacer1 = new JPanel(null); _btnOk = new JButton(); _btnApply = new JButton(); _btnCancel = new JButton(); _btnMore = new JButton(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== _tabPane ======== {/* w w w . j a va 2 s . co m*/ _tabPane.setBorder(new EmptyBorder(10, 10, 0, 10)); //======== paneCapture ======== { //---- _txtHotkey ---- _txtHotkey.setHorizontalAlignment(SwingConstants.RIGHT); _txtHotkey.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtHotkeyFocusGained(e); } }); _txtHotkey.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { txtHotkeyKeyPressed(e); } }); //---- _lblHotkey ---- _lblHotkey.setLabelFor(_txtHotkey); //---- _lblDelay ---- _lblDelay.setLabelFor(spnDelay); //---- _spnDelay ---- spnDelay.setModel(new SpinnerNumberModel(1.0, 0.0, null, 0.1)); //---- _radTimestamp ---- _radTimestamp.setSelected(true); GroupLayout paneCaptureLayout = new GroupLayout(paneCapture); paneCapture.setLayout(paneCaptureLayout); paneCaptureLayout.setHorizontalGroup(paneCaptureLayout.createParallelGroup().add(paneCaptureLayout .createSequentialGroup().add(26, 26, 26) .add(paneCaptureLayout.createParallelGroup().add(GroupLayout.TRAILING, _lblDelay) .add(GroupLayout.TRAILING, _lblHotkey).add(GroupLayout.TRAILING, _lblNaming)) .addPreferredGap(LayoutStyle.RELATED) .add(paneCaptureLayout.createParallelGroup().add(_radTimestamp).add(_radOCR).add(_radOff) .add(paneCaptureLayout.createSequentialGroup() .add(spnDelay, GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE) .addPreferredGap(LayoutStyle.RELATED) .add(_lblDelaySecs, GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)) .add(_txtHotkey, GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)) .add(69, 69, 69))); paneCaptureLayout.setVerticalGroup(paneCaptureLayout.createParallelGroup() .add(paneCaptureLayout.createSequentialGroup().add(34, 34, 34) .add(paneCaptureLayout.createParallelGroup(GroupLayout.BASELINE) .add(_lblHotkey, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE) .add(_txtHotkey, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.RELATED) .add(paneCaptureLayout.createParallelGroup() .add(_lblDelay, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE) .add(spnDelay, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .add(_lblDelaySecs, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.RELATED) .add(paneCaptureLayout.createParallelGroup(GroupLayout.LEADING, false) .add(paneCaptureLayout.createSequentialGroup() .add(paneCaptureLayout.createParallelGroup(GroupLayout.BASELINE) .add(_lblNaming, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE) .add(_radTimestamp)) .add(18, 18, 18).add(_radOff).addPreferredGap(LayoutStyle.RELATED)) .add(GroupLayout.TRAILING, paneCaptureLayout.createSequentialGroup() .add(_radOCR).add(21, 21, 21))) .add(80, 80, 80))); } _tabPane.addTab(SikuliIDEI18N._I("prefTabScreenCapturing"), paneCapture); //======== _paneTextEditing ======== { //---- _lblTabWidth ---- _lblTabWidth.setLabelFor(spnTabWidth); //---- _cmbFontName ---- _cmbFontName.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { fontNameItemStateChanged(e); } }); //---- _lblFont ---- _lblFont.setLabelFor(_cmbFontName); //---- _lblFontSize ---- _lblFontSize.setLabelFor(_spnFontSize); //---- _spnFontSize ---- _spnFontSize.addChangeListener(new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { fontSizeStateChanged(e); } }); GroupLayout _paneTextEditingLayout = new GroupLayout(_paneTextEditing); _paneTextEditing.setLayout(_paneTextEditingLayout); _paneTextEditingLayout.setHorizontalGroup(_paneTextEditingLayout.createParallelGroup().add( GroupLayout.TRAILING, _paneTextEditingLayout.createSequentialGroup().add(95, 95, 95).add(_paneTextEditingLayout .createParallelGroup() .add(_titleIndentation, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .add(_paneTextEditingLayout.createSequentialGroup() .add(_titleAppearance, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addPreferredGap(LayoutStyle.RELATED) .add(_paneTextEditingLayout.createParallelGroup() .add(_paneTextEditingLayout.createSequentialGroup().add(29, 29, 29) .add(_paneTextEditingLayout.createParallelGroup() .add(GroupLayout.TRAILING, _lblTabWidth) .add(GroupLayout.TRAILING, _lblFont) .add(GroupLayout.TRAILING, _lblFontSize)) .addPreferredGap(LayoutStyle.RELATED) .add(_paneTextEditingLayout.createParallelGroup() .add(_cmbFontName, 0, 218, Short.MAX_VALUE) .add(_spnFontSize, GroupLayout.PREFERRED_SIZE, 67, GroupLayout.PREFERRED_SIZE) .add(spnTabWidth, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.RELATED, 97, Short.MAX_VALUE)) .add(chkExpandTab, GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)))) .addContainerGap())); _paneTextEditingLayout.setVerticalGroup(_paneTextEditingLayout.createParallelGroup() .add(_paneTextEditingLayout.createSequentialGroup().add(21, 21, 21) .add(_titleIndentation, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .add(_paneTextEditingLayout.createParallelGroup() .add(_paneTextEditingLayout.createSequentialGroup().add(81, 81, 81).add( _titleAppearance, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .add(_paneTextEditingLayout.createSequentialGroup() .addPreferredGap(LayoutStyle.RELATED).add(chkExpandTab) .addPreferredGap(LayoutStyle.RELATED) .add(_paneTextEditingLayout.createParallelGroup() .add(_lblTabWidth, GroupLayout.PREFERRED_SIZE, 16, GroupLayout.PREFERRED_SIZE) .add(spnTabWidth, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .add(40, 40, 40) .add(_paneTextEditingLayout .createParallelGroup(GroupLayout.BASELINE).add(_lblFont) .add(_cmbFontName, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.RELATED) .add(_paneTextEditingLayout .createParallelGroup(GroupLayout.TRAILING) .add(_lblFontSize, GroupLayout.PREFERRED_SIZE, 27, GroupLayout.PREFERRED_SIZE) .add(_spnFontSize, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))) .addContainerGap(154, Short.MAX_VALUE))); _paneTextEditingLayout.linkSize(new Component[] { _lblTabWidth, spnTabWidth }, GroupLayout.VERTICAL); _paneTextEditingLayout.linkSize(new Component[] { _cmbFontName, _lblFont }, GroupLayout.VERTICAL); } _tabPane.addTab(SikuliIDEI18N._I("PreferencesWin.paneTextEditing.tab.title"), _paneTextEditing); //======== paneGeneral ======== { //---- _lblUpdates ---- _lblUpdates.setFont(_lblUpdates.getFont().deriveFont(_lblUpdates.getFont().getStyle() | Font.BOLD)); //---- _lblLanguage ---- _lblLanguage .setFont(_lblLanguage.getFont().deriveFont(_lblLanguage.getFont().getStyle() | Font.BOLD)); GroupLayout paneGeneralLayout = new GroupLayout(paneGeneral); paneGeneral.setLayout(paneGeneralLayout); paneGeneralLayout.setHorizontalGroup(paneGeneralLayout.createParallelGroup().add(paneGeneralLayout .createSequentialGroup().add(137, 137, 137) .add(paneGeneralLayout.createParallelGroup() .add(paneGeneralLayout.createSequentialGroup().add(_lblLanguage).add(185, 185, 185)) .add(paneGeneralLayout.createSequentialGroup().add(38, 38, 38).add(_cmbLang, GroupLayout.PREFERRED_SIZE, 215, GroupLayout.PREFERRED_SIZE)) .add(paneGeneralLayout.createSequentialGroup().add(_lblUpdates).add(318, 318, 318)) .add(GroupLayout.TRAILING, paneGeneralLayout.createSequentialGroup().add(38, 38, 38).add(chkAutoUpdate, GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))) .addContainerGap())); paneGeneralLayout.setVerticalGroup(paneGeneralLayout.createParallelGroup().add(paneGeneralLayout .createSequentialGroup().add(26, 26, 26).add(_lblUpdates) .addPreferredGap(LayoutStyle.RELATED).add(chkAutoUpdate).add(40, 40, 40).add(_lblLanguage) .addPreferredGap(LayoutStyle.RELATED).add(_cmbLang, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) .addContainerGap(196, Short.MAX_VALUE))); } _tabPane.addTab(SikuliIDEI18N._I("prefTabGeneralSettings"), paneGeneral); } contentPane.add(_tabPane, BorderLayout.CENTER); //======== paneOkCancel ======== { paneOkCancel.setBorder(new EmptyBorder(5, 5, 5, 5)); paneOkCancel.setLayout(new BoxLayout(paneOkCancel, BoxLayout.X_AXIS)); paneOkCancel.add(hSpacer1); //---- _btnMore ---- _btnMore.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btnMoreActionPerformed(e); } }); paneOkCancel.add(_btnMore); //---- _btnOk ---- _btnOk.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btnOkActionPerformed(e); } }); paneOkCancel.add(_btnOk); //---- _btnApply ---- _btnApply.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btnApplyActionPerformed(e); } }); paneOkCancel.add(_btnApply); //---- _btnCancel ---- _btnCancel.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { btnCancelActionPerformed(e); } }); this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { _btnCancel.doClick(); } }); paneOkCancel.add(_btnCancel); } contentPane.add(paneOkCancel, BorderLayout.SOUTH); setSize(600, 475); setLocationRelativeTo(getOwner()); //---- btngrpNaming ---- ButtonGroup btngrpNaming = new ButtonGroup(); btngrpNaming.add(_radTimestamp); btngrpNaming.add(_radOCR); btngrpNaming.add(_radOff); initComponentsI18n(); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:Recipe.RecipeForm.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Evaluation license - Najim Yaqubie DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); RecipeParserPanel = new JPanel(); title1 = compFactory.createTitle("Recipe Parser"); RecipeNameLabel = new JLabel(); RecipeNameText = new JTextField(); radioButton1 = new JRadioButton(); ButtonParse = new JButton(); RecipeMetaLabel = new JLabel(); scrollPane2 = new JScrollPane(); RecipeMetaInput = new JTextArea(); RecipeIngLabel = new JLabel(); scrollPane3 = new JScrollPane(); RecipeIngInput = new JTextArea(); OutputIngLabel = new JLabel(); scrollPane1 = new JScrollPane(); OutputIngredients = new JTextArea(); RecipeDirectionsLabel = new JLabel(); scrollPane4 = new JScrollPane(); RecipeDirInput = new JTextArea(); OuputDirLabel = new JLabel(); scrollPane5 = new JScrollPane(); OutputDirections = new JTextArea(); //======== RecipeParserPanel ======== {//from ww w. ja va 2 s . c o m // JFormDesigner evaluation mark RecipeParserPanel.setBorder(new javax.swing.border.CompoundBorder( new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0), "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red), RecipeParserPanel.getBorder())); RecipeParserPanel.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if ("border".equals(e.getPropertyName())) throw new RuntimeException(); } }); RecipeParserPanel.setLayout(new FormLayout( "[20dlu,default], $lcgap, 55dlu, $lcgap, 130dlu, $lcgap, [24dlu,default], $lcgap, 80dlu, $lcgap, 100dlu, $lcgap, [20dlu,default]", "[20dlu,default], 4*($lgap, default), $lgap, [35dlu,default], 2*($lgap, default), $lgap, [125dlu,default], 8*($lgap, default), $lgap, [80dlu,default], 7*($lgap, default), $lgap, [20dlu,default]")); //---- title1 ---- title1.setFont(title1.getFont().deriveFont(title1.getFont().getStyle() | Font.BOLD, title1.getFont().getSize() + 12f)); RecipeParserPanel.add(title1, CC.xywh(3, 3, 3, 1, CC.CENTER, CC.DEFAULT)); //---- RecipeNameLabel ---- RecipeNameLabel.setText("Name Of Recipe:"); RecipeNameLabel.setLabelFor(RecipeNameText); RecipeParserPanel.add(RecipeNameLabel, CC.xy(3, 7)); RecipeParserPanel.add(RecipeNameText, CC.xy(5, 7)); //---- radioButton1 ---- radioButton1.setText("Regular Parse"); RecipeParserPanel.add(radioButton1, CC.xy(9, 7)); //---- ButtonParse ---- ButtonParse.setText("Parse!"); ButtonParse.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ButtonParseActionPerformed(e); } }); RecipeParserPanel.add(ButtonParse, CC.xy(11, 7)); //---- RecipeMetaLabel ---- RecipeMetaLabel.setText("Meta-Data:"); RecipeMetaLabel.setLabelFor(RecipeMetaInput); RecipeParserPanel.add(RecipeMetaLabel, CC.xy(3, 9)); //======== scrollPane2 ======== { //---- RecipeMetaInput ---- RecipeMetaInput.setLineWrap(true); scrollPane2.setViewportView(RecipeMetaInput); } RecipeParserPanel.add(scrollPane2, CC.xywh(5, 9, 1, 3)); //---- RecipeIngLabel ---- RecipeIngLabel.setText("Ingredients:"); RecipeIngLabel.setLabelFor(RecipeIngInput); RecipeParserPanel.add(RecipeIngLabel, CC.xy(3, 15)); //======== scrollPane3 ======== { //---- RecipeIngInput ---- RecipeIngInput.setLineWrap(true); scrollPane3.setViewportView(RecipeIngInput); } RecipeParserPanel.add(scrollPane3, CC.xywh(5, 15, 1, 17)); //---- OutputIngLabel ---- OutputIngLabel.setText("Structured Ingredients:"); OutputIngLabel.setLabelFor(OutputIngredients); RecipeParserPanel.add(OutputIngLabel, CC.xy(9, 15)); //======== scrollPane1 ======== { //---- OutputIngredients ---- OutputIngredients.setEditable(false); OutputIngredients.setLineWrap(true); OutputIngredients.setBackground(new Color(204, 204, 255)); scrollPane1.setViewportView(OutputIngredients); } RecipeParserPanel.add(scrollPane1, CC.xywh(9, 17, 3, 15)); //---- RecipeDirectionsLabel ---- RecipeDirectionsLabel.setText("Directions:"); RecipeDirectionsLabel.setLabelFor(RecipeDirInput); RecipeParserPanel.add(RecipeDirectionsLabel, CC.xy(3, 33)); //======== scrollPane4 ======== { //---- RecipeDirInput ---- RecipeDirInput.setLineWrap(true); scrollPane4.setViewportView(RecipeDirInput); } RecipeParserPanel.add(scrollPane4, CC.xywh(5, 33, 1, 17)); //---- OuputDirLabel ---- OuputDirLabel.setText("Structured Directions:"); OuputDirLabel.setLabelFor(OutputDirections); RecipeParserPanel.add(OuputDirLabel, CC.xy(9, 33)); //======== scrollPane5 ======== { //---- OutputDirections ---- OutputDirections.setEditable(false); OutputDirections.setLineWrap(true); OutputDirections.setBackground(new Color(204, 204, 255)); scrollPane5.setViewportView(OutputDirections); } RecipeParserPanel.add(scrollPane5, CC.xywh(9, 35, 3, 15)); } //---- buttonGroup1 ---- ButtonGroup buttonGroup1 = new ButtonGroup(); buttonGroup1.add(radioButton1); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:repast.simphony.gis.ui.GeographyExportDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); dialogPane = new JPanel(); contentPanel = new JPanel(); panel1 = new JPanel(); title1 = compFactory.createTitle( "<html>Select the layer to export to a shapefile and<br>\nclick Save to export. Click finished when done.</html>"); scrollPane1 = new JScrollPane(); layerTree = new JTree(); buttonBar = new JPanel(); saveBtn = new JButton(); finishedBtn = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== {// www .jav a 2 s.c o m dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //======== panel1 ======== { panel1.setBackground(Color.white); panel1.setBorder( new CompoundBorder(LineBorder.createBlackLineBorder(), new EmptyBorder(5, 5, 5, 5))); panel1.setLayout(new BorderLayout()); //---- title1 ---- title1.setBackground(Color.white); title1.setFont(new Font("Lucida Grande", Font.PLAIN, 13)); panel1.add(title1, BorderLayout.CENTER); } contentPanel.add(panel1, cc.xy(1, 1)); //======== scrollPane1 ======== { //---- layerTree ---- layerTree.setVisibleRowCount(10); scrollPane1.setViewportView(layerTree); } contentPanel.add(scrollPane1, cc.xy(1, 3)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- saveBtn ---- saveBtn.setText("Save"); saveBtn.setToolTipText("Click to save layer"); buttonBar.add(saveBtn, cc.xy(2, 1)); //---- finishedBtn ---- finishedBtn.setText("Finished"); buttonBar.add(finishedBtn, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:repast.simphony.ui.ParameterSelectionDialog.java
private void initComponents(String titleText) { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); dialogPane = new JPanel(); contentPanel = new JPanel(); panel1 = new JPanel(); title1 = compFactory.createTitle(titleText); scrollPane1 = new JScrollPane(); paramsBox = new CheckBoxList(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setModal(true);/*from w w w . j av a 2s.c o m*/ setTitle("Reset Parameter Defaults"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12)); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) })); //======== panel1 ======== { panel1.setBackground(Color.white); panel1.setBorder(new LineBorder(Color.black)); panel1.setLayout(new FlowLayout()); //---- title1 ---- title1.setBackground(Color.white); title1.setFont(new Font("Lucida Grande", Font.PLAIN, 13)); panel1.add(title1); } contentPanel.add(panel1, cc.xy(1, 1)); //======== scrollPane1 ======== { scrollPane1.setViewportView(paramsBox); } contentPanel.add(scrollPane1, cc.xy(1, 3)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0)); buttonBar.setLayout(new GridBagLayout()); ((GridBagLayout) buttonBar.getLayout()).columnWidths = new int[] { 0, 85, 80 }; ((GridBagLayout) buttonBar.getLayout()).columnWeights = new double[] { 1.0, 0.0, 0.0 }; //---- okButton ---- okButton.setText("OK"); buttonBar.add(okButton, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0)); //---- cancelButton ---- cancelButton.setText("Cancel"); buttonBar.add(cancelButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:repast.simphony.ui.widget.MovieMakerDialog.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner non-commercial license DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance(); dialogPane = new JPanel(); contentPanel = new JPanel(); panel1 = new JPanel(); title1 = compFactory .createTitle("<html><b>Export Movie</b><br>\nPlease specify a file and the frame capture rate.\n"); label1 = new JLabel(); fileFld = new JTextField(); browseBtn = new JButton(); label2 = new JLabel(); intervalFld = new JTextField(); panel2 = new JPanel(); label3 = new JLabel(); startingFld = new JTextField(); buttonBar = new JPanel(); okButton = new JButton(); cancelButton = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setModal(true);/*from w ww . ja v a2 s . co m*/ setTitle("Movie Export"); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== dialogPane ======== { dialogPane.setBorder(Borders.DIALOG); dialogPane.setLayout(new BorderLayout()); //======== contentPanel ======== { contentPanel.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(default;50dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC })); //======== panel1 ======== { panel1.setBackground(Color.white); panel1.setBorder(LineBorder.createBlackLineBorder()); panel1.setLayout(new FlowLayout(FlowLayout.LEFT)); //---- title1 ---- title1.setHorizontalAlignment(SwingConstants.LEFT); title1.setFont(new Font("Lucida Grande", Font.PLAIN, 13)); panel1.add(title1); } contentPanel.add(panel1, cc.xywh(1, 1, 7, 1)); //---- label1 ---- label1.setText("File Name:"); contentPanel.add(label1, cc.xywh(1, 3, 5, 1)); //---- fileFld ---- fileFld.setEditable(false); contentPanel.add(fileFld, cc.xywh(2, 5, 4, 1)); //---- browseBtn ---- browseBtn.setText("Browse"); browseBtn.setToolTipText("Click to choose file"); contentPanel.add(browseBtn, cc.xy(7, 5)); //---- label2 ---- label2.setText("Capture Frame Every:"); contentPanel.add(label2, cc.xywh(1, 7, 7, 1)); contentPanel.add(intervalFld, cc.xy(3, 9)); //======== panel2 ======== { panel2.setLayout(new FormLayout("default, default:grow", "default")); //---- label3 ---- label3.setText("ticks, starting at "); panel2.add(label3, cc.xy(1, 1)); panel2.add(startingFld, cc.xy(2, 1)); } contentPanel.add(panel2, cc.xywh(5, 9, 3, 1)); } dialogPane.add(contentPanel, BorderLayout.CENTER); //======== buttonBar ======== { buttonBar.setBorder(Borders.BUTTON_BAR_PAD); buttonBar.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, FormSpecs.BUTTON_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- okButton ---- okButton.setText("OK"); okButton.setEnabled(false); buttonBar.add(okButton, cc.xy(2, 1)); //---- cancelButton ---- cancelButton.setText("Cancel"); buttonBar.add(cancelButton, cc.xy(4, 1)); } dialogPane.add(buttonBar, BorderLayout.SOUTH); } contentPane.add(dialogPane, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }