List of usage examples for com.jgoodies.forms.layout CellConstraints xywh
public CellConstraints xywh(int col, int row, int colSpan, int rowSpan)
Examples:
cc.xywh(1, 3, 2, 1); cc.xywh(1, 3, 7, 3);
From source file:com.isencia.passerelle.hmi.specific.HMITest.java
License:Open Source License
private JPanel getTemperaturePanel() { final String[] columnNames = { "Step", "Temperature" }; myTableModelTemperature = new MyTableModel(columnNames, 0); temperatureTable = new JTable(myTableModelTemperature); temperatureTable.setPreferredScrollableViewportSize(new Dimension(200, 200)); temperatureTableScrollPane = new JScrollPane(temperatureTable); // Create buttons addTemperatureButton = new JButton("Add temperature"); final AddRowCommand addRowCommand = new AddRowCommand(myTableModelTemperature); addTemperatureButton.addActionListener(addRowCommand); deleteTemperatureButton = new JButton("Delete temperature"); final DeleteRowCommand deleteRowCommand = new DeleteRowCommand(temperatureTable, myTableModelTemperature); deleteTemperatureButton.addActionListener(deleteRowCommand); // Create panel final FormLayout layout = new FormLayout("p, 3dlu, p", // cols "pref, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, 30dlu"); // rows // Specify that columns 1 & 5 as well as 3 & 7 have equal widths. // layout.setColumnGroups(new int[][]{{1, 3}}); // Create a builder that assists in adding components to the container. // Wrap the panel with a standardized border. final PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder();//from www. j a v a 2 s. co m // Obtain a reusable constraints object to place components in the grid. final CellConstraints cc = new CellConstraints(); builder.addSeparator("Temperature settings", cc.xyw(1, 1, 3)); builder.add(temperatureTableScrollPane, cc.xywh(1, 3, 1, 7)); builder.add(addTemperatureButton, cc.xyw(3, 3, 1)); builder.add(deleteTemperatureButton, cc.xyw(3, 5, 1)); return builder.getPanel(); }
From source file:com.mebigfatguy.mongobrowser.dialogs.ManageIndicesDialog.java
License:Apache License
private JPanel createIndicesListPanel(List<IndexDescription> indices) { JPanel p = new JPanel(); p.setLayout(new FormLayout("6dlu, pref:grow, 5dlu, pref, 6dlu", "6dlu, 12dlu:grow, pref, 3dlu, pref, 12dlu:grow, 6dlu, pref, 6dlu")); CellConstraints cc = new CellConstraints(); ManageIndicesModel model = new ManageIndicesModel(indices); indicesTable = new JTable(model); indicesTable.setDefaultEditor(String.class, new DefaultCellEditor(new JTextField())); indicesTable.setDefaultEditor(IndexFieldList.class, new IndexFieldListCellEditor()); indicesTable.setDefaultRenderer(IndexFieldList.class, new IndexFieldListCellRenderer()); p.add(new JScrollPane(indicesTable), cc.xywh(2, 2, 1, 5)); addIndexButton = new JButton(MongoBundle.getString(MongoBundle.Key.AddIndex)); p.add(addIndexButton, cc.xy(4, 3));// ww w .java 2 s. c o m removeIndexButton = new JButton(MongoBundle.getString(MongoBundle.Key.RemoveIndex)); p.add(removeIndexButton, cc.xy(4, 5)); return p; }
From source file:com.mrfeinberg.babelizer.app.BabelizerMain.java
License:Apache License
public BabelizerMain() { phrase.addKeyListener(new TextAreaActionProvider(new ActionListener() { public void actionPerformed(final ActionEvent e) { goButton.doClick();//from ww w . j a v a2 s . c om } })); goButton.addActionListener(this); phrase.setLineWrap(true); phrase.setRows(4); cycleCheckbox.setSelected(true); final JFrame f = getFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setJMenuBar(createMenuBar(f)); final Container cp = f.getContentPane(); cp.setLayout(new BorderLayout()); final FormLayout layout = new FormLayout(// "right:p, 4dlu, p:g, p", // "p, 3dlu, p, 8dlu, p, 2dlu, t:p, 8dlu, f:d:g"); final PanelBuilder builder = new PanelBuilder(layout); final CellConstraints cc = new CellConstraints(); builder.setDefaultDialogBorder(); builder.addLabel("From", cc.xy(1, 1)); builder.add(fromMenu, cc.xywh(3, 1, 2, 1)); builder.addLabel("To", cc.xy(1, 3)); builder.add(toMenu, cc.xywh(3, 3, 2, 1)); { final JScrollPane scrollPane = new JScrollPane(phrase); scrollPane.getVerticalScrollBar().setFocusable(false); builder.add(scrollPane, cc.xywh(1, 5, 4, 1)); } builder.add(cycleCheckbox, cc.xywh(1, 7, 3, 1)); builder.add(goButton, cc.xy(4, 7)); { final JScrollPane scrollPane = new JScrollPane(textPane); scrollPane.getVerticalScrollBar().setFocusable(false); builder.add(scrollPane, cc.xywh(1, 9, 4, 1)); } cp.add(builder.getContainer()); cp.add(status, BorderLayout.SOUTH); factoryChosen(new com.mrfeinberg.translation.plugin.altavista.AltavistaTranslationServiceFactory()); f.setVisible(true); phrase.grabFocus(); phrase.selectAll(); }
From source file:com.mrfeinberg.proxyprefs.ProxyPrefsEditorBuilder.java
License:Apache License
public JComponent build() { initComponents();//from w w w . j a v a2 s . c o m final FormLayout layout = new FormLayout( // "right:pref, 3dlu, 200dlu:grow", // "p, 3dlu, p, 3dlu, p"); final PanelBuilder builder = new PanelBuilder(layout); final CellConstraints cc = new CellConstraints(); builder.add(useProxyCheckbox, cc.xywh(1, 1, 3, 1)); builder.addLabel("Host", cc.xy(1, 3)); builder.add(hostField, cc.xy(3, 3)); builder.addLabel("Port", cc.xy(1, 5)); builder.add(portField, cc.xy(3, 5)); return builder.getPanel(); }
From source file:com.projity.pm.graphic.chart.ChartLegend.java
License:Common Public License
public JComponent createContentPanel() { // Separating the component initialization and configuration // from the layout code makes both parts easier to read. initControls();//from w w w. ja v a 2 s.co m FormLayout layout = new FormLayout("p:grow, 3dlu,100dlu:grow,5dlu, default, 5dlu", // cols //$NON-NLS-1$ "p, 3dlu, p, 3dlu, p, 3dlu, " + (simple ? "" : "fill:") + "p:grow, 5dlu"); // rows //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ // Create a builder that assists in adding components to the container. // Wrap the panel with a standardized border. DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); CellConstraints cc = new CellConstraints(); builder.addLabel(Messages.getString("ChartLegend.ResourceFilter"), cc.xy(1, 1)); //$NON-NLS-1$ builder.add(filterComboBox, cc.xy(3, 1)); builder.add(treeScrollPane, cc.xywh(1, 3, 3, 5)); builder.add(tracesScrollPane, cc.xy(5, 7)); if (simple) { builder.add(selectedOnTop, cc.xy(5, 1)); } else { builder.add(cumulative, cc.xy(5, 1)); builder.add(histogram, cc.xy(5, 3)); builder.add(workCostRadioPanel(), cc.xy(5, 5)); } return builder.getPanel(); }
From source file:com.projity.pm.graphic.network.rendering.FormComponent.java
License:Common Public License
public void init(BarFormat format) { if (format == null) return;/* w w w . j a v a2s . c o m*/ FormFormat form = format.getForm(); if (form == null) return; List boxes = form.getBoxes(); if (boxes == null || boxes.size() == 0) { return; } FormBoxLayout formBoxLayout = form.getLayout(zoom); FormLayout layout = new FormLayout(formBoxLayout.getColumnGrid(), formBoxLayout.getRowGrid()); DefaultFormBuilder builder = new DefaultFormBuilder(this, layout); if (formBoxLayout.getBorder() == null) builder.setDefaultDialogBorder(); else builder.setBorder(Borders.createEmptyBorder(formBoxLayout.getBorder())); CellConstraints cc = new CellConstraints(); for (Iterator i = boxes.iterator(); i.hasNext();) { FormBox box = (FormBox) i.next(); if (zoom < box.getMinZoom()) return; JComponent component; if (box.getFieldId() == null) component = new JLabel(Messages.getString(box.getTextId())); else { if (editor && !box.getField().isReadOnly()) { component = new ChangeAwareTextField(); component.setBorder(null); //component.setOpaque(false); } else component = new JLabel(); //if (box.getRow()==1&&!editor) ((JLabel)component).setHorizontalAlignment(SwingConstants.CENTER); //bug workaround, not possible to center with classic method when rowSpan>1 fieldComponents.put(box.getFieldId(), component); } Font font = formBoxLayout.getFont(box.getFont()); if (font != null) component.setFont(font); builder.add(component, (box.getAlignment() == null) ? cc.xywh(box.getColumn(), box.getRow(), box.getColumnSpan(), box.getRowSpan()) : cc.xywh(box.getColumn(), box.getRow(), box.getColumnSpan(), box.getRowSpan(), box.getAlignment())); } }
From source file:com.projity.print.PageSetup.java
License:Common Public License
private JComponent createDialogPanel() { FormLayout layout = new FormLayout("p, 3dlu, p, 3dlu", "p, 3dlu,p, 3dlu, p, 3dlu,p,3dlu"); DefaultFormBuilder builder = new DefaultFormBuilder(layout); CellConstraints cc = new CellConstraints(); builder.setDefaultDialogBorder();//from ww w.ja v a 2 s. c om builder.add(createPrinterPanel(), cc.xyw(1, 1, 3)); builder.add(createPaperPanel(), cc.xywh(1, 3, 1, 3)); builder.add(createOrientationPanel(), cc.xy(3, 3)); builder.add(createMarginsPanel(), cc.xy(3, 5)); builder.add(createScalingPanel(), cc.xyw(1, 7, 3)); return builder.getPanel(); }
From source file:com.salas.bb.utils.uif.HeaderPanelExt.java
License:Open Source License
/** * Builds and answers the panel's center component. *///from w ww . jav a 2 s . co m protected JComponent buildCenterComponent() { FormLayout fl = new FormLayout("7dlu, 9dlu, pref:grow, 14dlu, pref, 4dlu", "7dlu, pref, 2dlu, pref, 7dlu:grow"); JPanel panel = new JPanel(fl); // if (height != HEIGHT_AUTO) // { Dimension size = new Dimension(300, height); panel.setMinimumSize(size); panel.setPreferredSize(size); // } panel.setOpaque(false); CellConstraints cc = new CellConstraints(); panel.add(titleLabel, cc.xyw(2, 2, 2)); panel.add(descriptionArea, cc.xy(3, 4)); panel.add(iconLabel, cc.xywh(5, 1, 1, 5)); return panel; }
From source file:com.spirit.cartera.gui.panel.JDAddingAccountBank.java
private void initComponents() { // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // Generated using JFormDesigner Open Source Project license - unknown jdAddingAccountBank = new JPanel(); jpConfirmation = new JPanel(); lblMessage = new JLabel(); lblBank = new JLabel(); cmbBank = new JComboBox(); lblAccountBank = new JLabel(); txtAccountBank = new JTextField(); lblAccountType = new JLabel(); rbCheckingAccount = new JRadioButton(); rbSavingsAccount = new JRadioButton(); jpButtons = new JPanel(); btnAccept = new JButton(); btnCancel = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Nueva cuenta bancaria"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== jdAddingAccountBank ======== {// w ww . jav a 2 s . c o m jdAddingAccountBank.setBorder(Borders.DIALOG_BORDER); jdAddingAccountBank.setLayout(new BorderLayout()); //======== jpConfirmation ======== { jpConfirmation.setBorder(new EtchedBorder()); jpConfirmation.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;150dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) }, new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //---- lblMessage ---- lblMessage.setText("Ingrese los datos de la nueva cuenta bancaria:"); lblMessage.setFont(new Font("Tahoma", Font.BOLD, 11)); jpConfirmation.add(lblMessage, cc.xywh(3, 3, 5, 1)); //---- lblBank ---- lblBank.setText("Banco:"); lblBank.setFont(new Font("Tahoma", Font.BOLD, 11)); jpConfirmation.add(lblBank, cc.xy(3, 7)); jpConfirmation.add(cmbBank, cc.xywh(5, 7, 3, 1)); //---- lblAccountBank ---- lblAccountBank.setText("Cuenta bancaria:"); lblAccountBank.setFont(new Font("Tahoma", Font.BOLD, 11)); jpConfirmation.add(lblAccountBank, cc.xy(3, 9)); jpConfirmation.add(txtAccountBank, cc.xywh(5, 9, 3, 1)); //---- lblAccountType ---- lblAccountType.setText("Tipo de cuenta:"); lblAccountType.setFont(new Font("Tahoma", Font.BOLD, 11)); jpConfirmation.add(lblAccountType, cc.xy(3, 11)); //---- rbCheckingAccount ---- rbCheckingAccount.setText("Corriente"); rbCheckingAccount.setSelected(true); jpConfirmation.add(rbCheckingAccount, cc.xy(5, 11)); //---- rbSavingsAccount ---- rbSavingsAccount.setText("Ahorros"); jpConfirmation.add(rbSavingsAccount, cc.xy(7, 11)); } jdAddingAccountBank.add(jpConfirmation, BorderLayout.CENTER); //======== jpButtons ======== { jpButtons.setBorder(Borders.BUTTON_BAR_GAP_BORDER); jpButtons.setLayout(new FormLayout( new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC }, RowSpec.decodeSpecs("pref"))); //---- btnAccept ---- btnAccept.setText("Aceptar"); jpButtons.add(btnAccept, cc.xy(2, 1)); //---- btnCancel ---- btnCancel.setText("Cancelar"); jpButtons.add(btnCancel, cc.xy(4, 1)); } jdAddingAccountBank.add(jpButtons, BorderLayout.SOUTH); } contentPane.add(jdAddingAccountBank, BorderLayout.CENTER); pack(); setLocationRelativeTo(getOwner()); //---- bgAccountTypes ---- ButtonGroup bgAccountTypes = new ButtonGroup(); bgAccountTypes.add(rbCheckingAccount); bgAccountTypes.add(rbSavingsAccount); // JFormDesigner - End of component initialization //GEN-END:initComponents }
From source file:com.spirit.cartera.gui.panel.JDApplyWalletTransaction.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(); JDApplyWalletTransaction = new JPanel(); JPApplyWalletTransaction = new JPanel(); jfsPendingAccounts = compFactory.createSeparator("Cuentas pendientes"); jpFilteredBy = new JPanel(); lblToFilter = new JLabel(); btnRemoveFilters = new JButton(); btnFilterList = new JButton(); lblTransaction = new JLabel(); cmbTransaction = new JComboBox(); lblInitialDate = new JLabel(); txtInitialDate = new JFormattedTextField(); lblFinalDate = new JLabel(); txtFinalDate = new JFormattedTextField(); lblOverdueDays = new JLabel(); cmbOverdueDays = new JComboBox(); lblValueGreaterThan = new JLabel(); txtValueGreaterThan = new JFormattedTextField(); lblBalanceGreaterThan = new JLabel(); txtBalanceGreaterThan = new JFormattedTextField(); spTblPendingAccounts = new JScrollPane(); tblPendingAccounts = new JTable(); jfsApplyingDocuments = compFactory.createSeparator("Documentos a aplicar"); jpApplyingDocuments = new JPanel(); spApplyingDocuments = new JScrollPane(); tblApplyingDocuments = new JTable(); btnAccept = new JButton(); btnCancel = new JButton(); btnUndo = new JButton(); btnApply = new JButton(); CellConstraints cc = new CellConstraints(); //======== this ======== setTitle("Cruce de cuentas"); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); //======== JDApplyWalletTransaction ======== {/*ww w . j a v a2 s . co m*/ JDApplyWalletTransaction.setBorder(Borders.DIALOG_BORDER); JDApplyWalletTransaction.setLayout(new BorderLayout()); //======== JPApplyWalletTransaction ======== { JPApplyWalletTransaction.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, 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(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(75)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec("max(default;75dlu)"), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC })); JPApplyWalletTransaction.add(jfsPendingAccounts, cc.xywh(3, 1, 11, 1)); //======== jpFilteredBy ======== { jpFilteredBy.setBorder(new EtchedBorder()); jpFilteredBy.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(Sizes.DLUX3), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;100dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;75dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;75dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX3) }, new RowSpec[] { new RowSpec(Sizes.DLUY3), FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY3) })); //---- lblToFilter ---- lblToFilter.setText("Filtrar:"); lblToFilter.setFont(new Font("Tahoma", Font.BOLD, 11)); lblToFilter.setForeground(UIManager.getColor("TitledBorder.titleColor")); jpFilteredBy.add(lblToFilter, cc.xy(3, 3)); //---- btnRemoveFilters ---- btnRemoveFilters.setText("Remover filtros"); jpFilteredBy.add(btnRemoveFilters, cc.xywh(9, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); //---- btnFilterList ---- btnFilterList.setText("Filtrar listado"); jpFilteredBy.add(btnFilterList, cc.xy(13, 3)); //---- lblTransaction ---- lblTransaction.setText("Transacci\u00f3n:"); lblTransaction.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblTransaction, cc.xy(3, 5)); jpFilteredBy.add(cmbTransaction, cc.xy(5, 5)); //---- lblInitialDate ---- lblInitialDate.setText("Fecha inicial:"); lblInitialDate.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblInitialDate, cc.xy(7, 5)); //---- txtInitialDate ---- txtInitialDate.setHorizontalAlignment(SwingConstants.CENTER); jpFilteredBy.add(txtInitialDate, cc.xy(9, 5)); //---- lblFinalDate ---- lblFinalDate.setText("Fecha final:"); lblFinalDate.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblFinalDate, cc.xy(11, 5)); //---- txtFinalDate ---- txtFinalDate.setHorizontalAlignment(SwingConstants.CENTER); jpFilteredBy.add(txtFinalDate, cc.xy(13, 5)); //---- lblOverdueDays ---- lblOverdueDays.setText("D\u00edas vencidos:"); lblOverdueDays.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblOverdueDays, cc.xy(3, 7)); //---- cmbOverdueDays ---- cmbOverdueDays .setModel(new DefaultComboBoxModel(new String[] { "-", ">30", ">60", ">90", ">120" })); jpFilteredBy.add(cmbOverdueDays, cc.xy(5, 7)); //---- lblValueGreaterThan ---- lblValueGreaterThan.setText("Valor mayor a:"); lblValueGreaterThan.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblValueGreaterThan, cc.xy(7, 7)); //---- txtValueGreaterThan ---- txtValueGreaterThan.setHorizontalAlignment(SwingConstants.RIGHT); jpFilteredBy.add(txtValueGreaterThan, cc.xy(9, 7)); //---- lblBalanceGreaterThan ---- lblBalanceGreaterThan.setText("Saldo mayor a:"); lblBalanceGreaterThan.setFont(new Font("Tahoma", Font.BOLD, 11)); jpFilteredBy.add(lblBalanceGreaterThan, cc.xy(11, 7)); //---- txtBalanceGreaterThan ---- txtBalanceGreaterThan.setHorizontalAlignment(SwingConstants.RIGHT); jpFilteredBy.add(txtBalanceGreaterThan, cc.xy(13, 7)); } JPApplyWalletTransaction.add(jpFilteredBy, cc.xywh(3, 3, 11, 1)); //======== spTblPendingAccounts ======== { //---- tblPendingAccounts ---- tblPendingAccounts.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Selec.", "Transacci\u00f3n", "Fecha", "Dias vencidos", "Valor", "Saldo" }) { Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class, Object.class, Object.class, Object.class }; boolean[] columnEditable = new boolean[] { true, false, false, false, false, false }; @Override public Class<?> getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spTblPendingAccounts.setViewportView(tblPendingAccounts); } JPApplyWalletTransaction.add(spTblPendingAccounts, cc.xywh(3, 5, 11, 1)); JPApplyWalletTransaction.add(jfsApplyingDocuments, cc.xywh(3, 7, 11, 1)); //======== jpApplyingDocuments ======== { jpApplyingDocuments.setLayout(new FormLayout( new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)) }, new RowSpec[] { new RowSpec("max(default;75dlu)"), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) })); //======== spApplyingDocuments ======== { //---- tblApplyingDocuments ---- tblApplyingDocuments.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Transacci\u00f3n", "Saldo", "Valor a aplicar", "Fecha de aplicaci\u00f3n" }) { Class[] columnTypes = new Class[] { Object.class, Double.class, Double.class, Object.class }; boolean[] columnEditable = new boolean[] { false, false, true, true }; @Override public Class<?> getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } @Override public boolean isCellEditable(int rowIndex, int columnIndex) { return columnEditable[columnIndex]; } }); spApplyingDocuments.setViewportView(tblApplyingDocuments); } jpApplyingDocuments.add(spApplyingDocuments, cc.xywh(1, 1, 5, 1)); } JPApplyWalletTransaction.add(jpApplyingDocuments, cc.xywh(3, 9, 11, 3)); //---- btnAccept ---- btnAccept.setText("Aceptar"); JPApplyWalletTransaction.add(btnAccept, cc.xy(7, 13)); //---- btnCancel ---- btnCancel.setText("Cancelar"); JPApplyWalletTransaction.add(btnCancel, cc.xy(9, 13)); //---- btnUndo ---- btnUndo.setText("Deshacer"); JPApplyWalletTransaction.add(btnUndo, cc.xy(11, 13)); //---- btnApply ---- btnApply.setText("Aplicar"); JPApplyWalletTransaction.add(btnApply, cc.xy(13, 13)); } JDApplyWalletTransaction.add(JPApplyWalletTransaction, BorderLayout.CENTER); } contentPane.add(JDApplyWalletTransaction, BorderLayout.NORTH); pack(); setLocationRelativeTo(getOwner()); // JFormDesigner - End of component initialization //GEN-END:initComponents }