/** * Builds reading lists tab. * * @return component. */ protected JComponent buildReadingListsTab() { // Wording JComponent wording = msg(Strings.message("guide.dialog.readinglists.wording")); // Buttons Dimension btnSize = new Dimension(20, 20); btnAddReadingList.setPreferredSize(btnSize); btnRemoveList.setPreferredSize(btnSize); FlowLayout layout = new FlowLayout(FlowLayout.LEFT); JPanel bbar = new JPanel(layout); bbar.add(btnAddReadingList); bbar.add(btnRemoveList); layout.setHgap(0); layout.setVgap(0); // Panel BBFormBuilder builder = new BBFormBuilder("0:grow"); builder.setDefaultDialogBorder(); builder.append(wording); builder.appendUnrelatedComponentsGapRow(2); builder.appendRow("min:grow"); builder.append(new JScrollPane(tblReadingLists), 1, CellConstraints.FILL, CellConstraints.FILL); builder.append(bbar); return builder.getPanel(); }
protected void addCmdButton() { FlowLayout fl = new FlowLayout(); fl.setAlignment(FlowLayout.RIGHT); buttonPanel.setLayout(fl); buttonPanel.add(bOk); buttonPanel.add(bExit); }
public LicenseDialog(Component parent) { setTitle("Licensing information"); pnlButtons.add(bttnOk); cbLang.addItem("English"); cbLang.addItem("Eesti"); FlowLayout fl = new FlowLayout(); fl.setAlignment(FlowLayout.LEFT); pnlHeader.setLayout(fl); pnlHeader.add(lblLang); pnlHeader.add(cbLang); pnlMain.setLayout(new BorderLayout()); pnlMain.add(pnlHeader, BorderLayout.NORTH); pnlMain.add(scrollPane, BorderLayout.CENTER); pnlMain.add(pnlButtons, BorderLayout.SOUTH); taLicenseText.setText(getLicenseText()); taLicenseText.setCaretPosition(0); taLicenseText.setLineWrap(true); taLicenseText.setEditable(false); taLicenseText.setWrapStyleWord(true); getContentPane().add(pnlMain); setPreferredSize(new Dimension(500, 600)); setLocationRelativeTo(parent); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); bttnOk.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent evt) { if (evt.getSource() == bttnOk) { dispose(); } } // end actionPerformed }); // end bttnOk Action Listener cbLang.addItemListener( new ItemListener() { public void itemStateChanged(final ItemEvent event) { if (event.getSource() == cbLang && event.getStateChange() == ItemEvent.SELECTED && cbLang.getItemCount() > 0) { taLicenseText.setText(getLicenseText()); taLicenseText.setCaretPosition(0); } } }); // end cbLang item listener pack(); setVisible(true); } // PortPropertiesDialog
private void jbInit() throws Exception { border1 = BorderFactory.createEmptyBorder(20, 20, 20, 20); contentPane.setBorder(border1); contentPane.setLayout(borderLayout1); controlsPane.setLayout(gridLayout1); gridLayout1.setColumns(1); gridLayout1.setHgap(10); gridLayout1.setRows(0); gridLayout1.setVgap(10); okButton.setVerifyInputWhenFocusTarget(true); okButton.setMnemonic('O'); okButton.setText("OK"); buttonsPane.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.CENTER); messagePane.setEditable(false); messagePane.setText(""); borderLayout1.setHgap(10); borderLayout1.setVgap(10); this.setTitle("Subscription Authorization"); this.getContentPane().add(contentPane, BorderLayout.CENTER); contentPane.add(controlsPane, BorderLayout.SOUTH); controlsPane.add(responsesComboBox, null); controlsPane.add(buttonsPane, null); buttonsPane.add(okButton, null); contentPane.add(messageScrollPane, BorderLayout.CENTER); messageScrollPane.getViewport().add(messagePane, null); }
/** * Displays a modal dialog with one button for each entry in the {@link GraphicGenerator} clipart * library. Clicking on a button sets that entry into the {@link ATTR_CLIPART_NAME} parameter. */ private void displayClipartDialog() { Window window = SwingUtilities.getWindowAncestor(myPanel); final JDialog dialog = new JDialog(window, Dialog.ModalityType.DOCUMENT_MODAL); FlowLayout layout = new FlowLayout(); dialog.getRootPane().setLayout(layout); int count = 0; for (Iterator<String> iter = GraphicGenerator.getClipartNames(); iter.hasNext(); ) { final String name = iter.next(); try { JButton btn = new JButton(); btn.setIcon(new ImageIcon(GraphicGenerator.getClipartIcon(name))); Dimension d = new Dimension(CLIPART_ICON_SIZE, CLIPART_ICON_SIZE); btn.setMaximumSize(d); btn.setPreferredSize(d); btn.addActionListener( new ActionListener() { @Override public void actionPerformed(ActionEvent e) { myTemplateState.put(ATTR_CLIPART_NAME, name); dialog.setVisible(false); update(); } }); dialog.getRootPane().add(btn); count++; } catch (IOException e) { LOG.error(e); } } int size = (int) (Math.sqrt(count) + 1) * (CLIPART_ICON_SIZE + layout.getHgap()) + CLIPART_DIALOG_BORDER * 2; dialog.setSize(size, size + DIALOG_HEADER); dialog.setLocationRelativeTo(window); dialog.setVisible(true); }
/** * Iterates all child components and calculates the space enough to keep all of them assuming that * the width is fixed. */ private Dimension calculateSize(int maxRowWidth) { FlowLayout layout = (FlowLayout) getLayout(); int height = 0; int currentRowWidth = 0; int currentRowHeight = 0; for (int i = 0, count = getComponentCount(); i < count; ++i) { Component comp = getComponent(i); Dimension bounds = comp.getPreferredSize(); if (!comp.isVisible()) { continue; } currentRowHeight = Math.max(currentRowHeight, bounds.height); if (currentRowWidth + layout.getHgap() + bounds.width <= maxRowWidth) { if (bounds.width != 0) { currentRowWidth += bounds.width + layout.getHgap(); } continue; } height += currentRowHeight + layout.getVgap(); currentRowWidth = bounds.width; currentRowHeight = bounds.height; } return new Dimension(maxRowWidth, height + currentRowHeight + 2 * layout.getVgap()); }
private void jbInit() throws Exception { setTitle("users"); buttonsPanel.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); this.setSize(new Dimension(500, 300)); grid.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); grid.setDeleteButton(deleteButton); grid.setExportButton(exportButton1); grid.setFunctionId("USERS"); grid.setInsertButton(null); grid.setNavBar(navigatorBar1); grid.setReloadButton(reloadButton); grid.setInsertButton(insertButton); grid.setValueObjectClassName("demo38.UserVO"); colUsername.setColumnFilterable(true); colUsername.setColumnName("username"); colUsername.setUpperCase(true); colUsername.setTrimText(true); colUsername.setColumnSortable(true); colPassword.setColumnName("password"); colPassword.setEncryptText(true); colDescription.setColumnName("description"); colDescription.setPreferredWidth(350); colDescription.setEditableOnEdit(true); colDescription.setEditableOnInsert(true); colUsername.setEditableOnEdit(false); colUsername.setEditableOnInsert(true); colPassword.setEditableOnEdit(true); colPassword.setEditableOnInsert(true); insertButton.setText("insertButton1"); grid.setSaveButton(saveButton); grid.setEditButton(editButton); exportButton1.setText("exportButton1"); this.getContentPane().add(grid, BorderLayout.CENTER); this.getContentPane().add(buttonsPanel, BorderLayout.NORTH); buttonsPanel.add(insertButton, null); buttonsPanel.add(editButton, null); buttonsPanel.add(saveButton, null); buttonsPanel.add(reloadButton, null); buttonsPanel.add(deleteButton, null); buttonsPanel.add(exportButton1, null); buttonsPanel.add(navigatorBar1, null); grid.getColumnContainer().add(colUsername, null); grid.getColumnContainer().add(colPassword, null); grid.getColumnContainer().add(colDescription, null); }
private void jbInit() throws Exception { grid.setAnchorLastColumn(true); buttonsPanel.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); grid.setDeleteButton(deleteButton); grid.setExportButton(exportButton1); grid.setFilterButton(filterButton1); grid.setFunctionId("getEmployees"); grid.setInsertButton(null); grid.setNavBar(navigatorBar1); grid.setReloadButton(reloadButton); grid.setValueObjectClassName("demo36.EmpVO"); colEmpCode.setColumnFilterable(true); colEmpCode.setColumnName("empCode"); colEmpCode.setColumnSortable(false); colFName.setColumnFilterable(true); colFName.setColumnName("firstName"); colFName.setColumnSortable(true); colFName.setPreferredWidth(150); insertButton.setText("insertButton1"); insertButton.addActionListener(new EmpGridFrame_insertButton_actionAdapter(this)); exportButton1.setText("exportButton1"); colLName.setColumnFilterable(true); colLName.setColumnName("lastName"); colLName.setPreferredWidth(150); filterButton1.setText("filterButton1"); this.getContentPane().add(grid, BorderLayout.CENTER); this.getContentPane().add(buttonsPanel, BorderLayout.NORTH); buttonsPanel.add(insertButton, null); buttonsPanel.add(reloadButton, null); buttonsPanel.add(deleteButton, null); buttonsPanel.add(exportButton1, null); buttonsPanel.add(filterButton1, null); buttonsPanel.add(navigatorBar1, null); grid.getColumnContainer().add(colEmpCode, null); grid.getColumnContainer().add(colFName, null); grid.getColumnContainer().add(colLName, null); }
private void jbInit() throws Exception { this.setWidth(700); this.setHeight(450); this.setDeviceType("ST133"); this.setDeviceProvider("150.178.3.33"); this.setDeviceTitle("ST133 CCD Controller"); this.getContentPane().setLayout(borderLayout1); jPanel1.setLayout(gridLayout1); gridLayout1.setColumns(1); gridLayout1.setRows(4); jPanel2.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); flowLayout1.setHgap(5); flowLayout1.setVgap(0); flowLayout2.setVgap(0); flowLayout2.setHgap(5); flowLayout2.setAlignment(FlowLayout.LEFT); jPanel3.setLayout(flowLayout2); flowLayout3.setVgap(0); flowLayout3.setHgap(5); flowLayout3.setAlignment(FlowLayout.LEFT); jPanel4.setLayout(flowLayout3); flowLayout4.setVgap(0); flowLayout4.setHgap(5); flowLayout4.setAlignment(FlowLayout.LEFT); jPanel5.setLayout(flowLayout4); deviceField1.setOffsetNid(1); deviceField1.setLabelString("Comment: "); deviceField1.setNumCols(30); deviceField1.setIdentifier(""); deviceField2.setOffsetNid(2); deviceField2.setTextOnly(true); deviceField2.setLabelString("Ip Address: "); deviceField2.setIdentifier(""); deviceChoice1.setChoiceIntValues(null); deviceChoice1.setChoiceFloatValues(null); deviceChoice1.setOffsetNid(3); deviceChoice1.setLabelString("Clock Mode: "); deviceChoice1.setChoiceItems(new String[] {"INTERNAL", "EXTERNAL"}); deviceChoice1.setUpdateIdentifier(""); deviceChoice1.setIdentifier(""); deviceField3.setOffsetNid(4); deviceField3.setLabelString("Clock. Source: "); deviceField3.setNumCols(30); deviceField3.setIdentifier(""); deviceField4.setOffsetNid(14); deviceField4.setLabelString("Exp. Time: "); deviceField4.setNumCols(15); deviceField4.setIdentifier(""); deviceField5.setOffsetNid(18); deviceField5.setLabelString("Num. Frames:"); deviceField5.setIdentifier(""); deviceButtons1.setMethods(new String[] {"init", "store"}); deviceField6.setOffsetNid(16); deviceField6.setLabelString("Cleans: "); deviceField6.setIdentifier(""); deviceField7.setOffsetNid(17); deviceField7.setLabelString("Skip Cleans: "); deviceField7.setIdentifier(""); deviceField8.setOffsetNid(19); deviceField8.setLabelString("Num. ROI"); deviceField8.setIdentifier(""); deviceTable1.setOffsetNid(20); deviceTable1.setNumCols(6); deviceTable1.setNumRows(10); deviceTable1.setIdentifier(""); deviceTable1.setColumnNames( new String[] {"StartX", "EndX", "GroupX", "StartY", "EndY", "GroupY"}); deviceTable1.setRowNames(null); deviceTable1.setDisplayRowNumber(true); this.getContentPane().add(deviceButtons1, BorderLayout.SOUTH); this.getContentPane().add(jPanel1, BorderLayout.NORTH); jPanel1.add(jPanel2, null); jPanel2.add(deviceField1, null); jPanel2.add(deviceField2, null); jPanel1.add(jPanel3, null); jPanel3.add(deviceChoice1, null); jPanel3.add(deviceField3, null); jPanel1.add(jPanel4, null); jPanel4.add(deviceField5, null); jPanel4.add(deviceField4, null); jPanel4.add(deviceDispatch1, null); jPanel1.add(jPanel5, null); jPanel5.add(deviceField6, null); jPanel5.add(deviceField7, null); jPanel5.add(deviceField8, null); this.getContentPane().add(deviceTable1, BorderLayout.CENTER); }
private void jbInit() throws Exception { printButton.setToolTipText( ClientSettings.getInstance().getResources().getResource("print document")); printButton.addActionListener(new SaleCreditDocFrame_printButton_actionAdapter(this)); addPanel.setLayout(borderLayout5); confirmButton.addActionListener(new SaleCreditDocFrame_confirmButton_actionAdapter(this)); headerFormPanel.setFunctionId("DOC01_CREDITNOTES"); headerFormPanel.setFormController(controller); headerFormPanel.setVOClassName("org.jallinone.sales.documents.java.DetailSaleDocVO"); headerPanel.setLayout(borderLayout3); headerButtonsPanel.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); mainPanel.setLayout(borderLayout2); this.getContentPane().setLayout(borderLayout1); linesPanel.setLayout(borderLayout4); insertButton1.setText("insertButton1"); reloadButton1.setText("reloadButton1"); deleteButton1.setText("deleteButton1"); headerFormPanel.setLayout(gridBagLayout1); headerFormPanel.setInsertButton(insertButton1); headerFormPanel.setEditButton(editButton1); headerFormPanel.setReloadButton(reloadButton1); headerFormPanel.setDeleteButton(deleteButton1); headerFormPanel.setSaveButton(saveButton1); this.getContentPane().add(mainPanel, BorderLayout.CENTER); mainPanel.add(tabbedPane, BorderLayout.CENTER); tabbedPane.add(headerPanel, "header"); headerPanel.add(headerButtonsPanel, BorderLayout.NORTH); headerButtonsPanel.add(insertButton1, null); headerButtonsPanel.add(editButton1, null); headerButtonsPanel.add(saveButton1, null); headerButtonsPanel.add(reloadButton1, null); headerButtonsPanel.add(deleteButton1, null); headerButtonsPanel.add(confirmButton, null); printButton.setEnabled(false); headerButtonsPanel.add(printButton, null); linesPanel.add(rowsPanel, BorderLayout.CENTER); headerPanel.add(headerFormPanel, BorderLayout.CENTER); headerFormPanel.add( saleIdHeadPanel1, new GridBagConstraints( 0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); headerFormPanel.add( saleCustomerHeadPanel1, new GridBagConstraints( 0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); headerFormPanel.add( warePanel, new GridBagConstraints( 0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); headerFormPanel.add( saleTotalsPanel1, new GridBagConstraints( 0, 3, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); confirmButton.setToolTipText( ClientSettings.getInstance().getResources().getResource("credit note closing")); confirmButton.setEnabled(false); addPanel.add(saleAgentPanel, BorderLayout.NORTH); addPanel.add(saleNotesPanel, BorderLayout.CENTER); tabbedPane.add(addPanel, "notes"); tabbedPane.add(linesPanel, "items"); tabbedPane.add(discPanel, "customer discounts"); tabbedPane.add(chargePanel, "charges"); tabbedPane.add(actPanel, "activities"); headerFormPanel.addLinkedPanel(addPanel); tabbedPane.setTitleAt(0, ClientSettings.getInstance().getResources().getResource("header")); tabbedPane.setTitleAt(1, ClientSettings.getInstance().getResources().getResource("notes")); tabbedPane.setTitleAt(2, ClientSettings.getInstance().getResources().getResource("items")); tabbedPane.setTitleAt( 3, ClientSettings.getInstance().getResources().getResource("customer discounts")); tabbedPane.setTitleAt(4, ClientSettings.getInstance().getResources().getResource("charges")); tabbedPane.setTitleAt( 5, ClientSettings.getInstance().getResources().getResource("sale activities")); }
@Override protected JPanel createFormPanel(JPanel formPanel, GridBagConstraints constraints) { formPanel.setBackground(ColorAndFontConstants.VERY_LIGHT_BACKGROUND_COLOR); JPanel buttonPanel = new JPanel(); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEADING); buttonPanel.setLayout(flowLayout); formPanel.setLayout(new GridBagLayout()); // create stents and forcers createFormPanelStentsAndForcers(formPanel, constraints); MultiBitLabel addressLabel = new MultiBitLabel(controller.getLocaliser().getString("sendBitcoinPanel.addressLabel")); addressLabel.setToolTipText( HelpContentsPanel.createTooltipText( controller.getLocaliser().getString("sendBitcoinPanel.addressLabel.tooltip"))); addressLabel.setHorizontalAlignment(JLabel.TRAILING); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridx = 0; constraints.gridy = 1; constraints.weightx = 4.0; constraints.weighty = 0.2; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.anchor = GridBagConstraints.LINE_END; formPanel.add(addressLabel, constraints); String receiveAddressText = controller.getLocaliser().getString("receiveBitcoinPanel.addressLabel"); MultiBitLabel notUsedReceiveAddressLabel = new MultiBitLabel(receiveAddressText); formPanel.add( MultiBitTitledPanel.createStent( (int) notUsedReceiveAddressLabel.getPreferredSize().getWidth()), constraints); int longFieldWidth = fontMetrics.stringWidth(MultiBitFrame.EXAMPLE_LONG_FIELD_TEXT); addressTextField = new MultiBitTextField("", 24, controller); addressTextField.setHorizontalAlignment(JTextField.LEADING); addressTextField.setMinimumSize( new Dimension( longFieldWidth, getFontMetrics(FontSizer.INSTANCE.getAdjustedDefaultFont()).getHeight() + TEXTFIELD_VERTICAL_DELTA)); addressTextField.setPreferredSize( new Dimension( longFieldWidth, getFontMetrics(FontSizer.INSTANCE.getAdjustedDefaultFont()).getHeight() + TEXTFIELD_VERTICAL_DELTA)); addressTextField.setMaximumSize( new Dimension( longFieldWidth, getFontMetrics(FontSizer.INSTANCE.getAdjustedDefaultFont()).getHeight() + TEXTFIELD_VERTICAL_DELTA)); addressTextField.addKeyListener(new QRCodeKeyListener()); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridx = 2; constraints.gridy = 1; constraints.weightx = 1.0; constraints.weighty = 0.2; constraints.gridwidth = 3; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(addressTextField, constraints); ImageIcon copyIcon = ImageLoader.createImageIcon(ImageLoader.COPY_ICON_FILE); CopySendAddressAction copyAddressAction = new CopySendAddressAction(controller, this, copyIcon); MultiBitButton copyAddressButton = new MultiBitButton(copyAddressAction, controller); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 6; constraints.gridy = 1; constraints.weightx = 1; constraints.gridwidth = 1; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(copyAddressButton, constraints); ImageIcon pasteIcon = ImageLoader.createImageIcon(ImageLoader.PASTE_ICON_FILE); PasteAddressAction pasteAddressAction = new PasteAddressAction(super.bitcoinController, this, pasteIcon); pasteAddressButton = new MultiBitButton(pasteAddressAction, controller); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 8; constraints.gridy = 1; constraints.weightx = 10.0; constraints.weighty = 0.2; constraints.gridwidth = 1; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(pasteAddressButton, constraints); MultiBitLabel labelLabel = new MultiBitLabel(controller.getLocaliser().getString("sendBitcoinPanel.labelLabel")); labelLabel.setToolTipText( HelpContentsPanel.createTooltipText( controller.getLocaliser().getString("sendBitcoinPanel.labelLabel.tooltip"))); labelLabel.setHorizontalAlignment(JLabel.TRAILING); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 0; constraints.gridy = 3; constraints.weightx = 0.1; constraints.weighty = 1.0; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.anchor = GridBagConstraints.LINE_END; formPanel.add(labelLabel, constraints); JTextField aTextField = new JTextField(); labelTextArea = new MultiBitTextArea("", AbstractTradePanel.PREFERRED_NUMBER_OF_LABEL_ROWS, 20, controller); labelTextArea.setBorder(aTextField.getBorder()); labelTextArea.addKeyListener(new QRCodeKeyListener()); final JScrollPane labelScrollPane = new JScrollPane( labelTextArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); labelScrollPane.setOpaque(true); labelScrollPane.setBackground(ColorAndFontConstants.VERY_LIGHT_BACKGROUND_COLOR); labelScrollPane.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); labelScrollPane .getViewport() .addChangeListener( new ChangeListener() { @Override public void stateChanged(ChangeEvent e) { if (labelScrollPane.getVerticalScrollBar().isVisible()) { labelScrollPane.setBorder( BorderFactory.createMatteBorder(1, 1, 1, 1, Color.LIGHT_GRAY)); } else { labelScrollPane.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); } } }); labelScrollPane.setMinimumSize( new Dimension( longFieldWidth, getFontMetrics(FontSizer.INSTANCE.getAdjustedDefaultFont()).getHeight() * AbstractTradePanel.PREFERRED_NUMBER_OF_LABEL_ROWS + TEXTFIELD_VERTICAL_DELTA + 6)); labelScrollPane.setPreferredSize( new Dimension( longFieldWidth, getFontMetrics(FontSizer.INSTANCE.getAdjustedDefaultFont()).getHeight() * AbstractTradePanel.PREFERRED_NUMBER_OF_LABEL_ROWS + TEXTFIELD_VERTICAL_DELTA + 6)); labelScrollPane.getHorizontalScrollBar().setUnitIncrement(CoreModel.SCROLL_INCREMENT); labelScrollPane.getVerticalScrollBar().setUnitIncrement(CoreModel.SCROLL_INCREMENT); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridx = 2; constraints.gridy = 3; constraints.weightx = 0.6; constraints.weighty = 1.0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(labelScrollPane, constraints); MultiBitLabel amountLabel = new MultiBitLabel(controller.getLocaliser().getString("sendBitcoinPanel.amountLabel")); amountLabel.setToolTipText( HelpContentsPanel.createTooltipText( controller.getLocaliser().getString("sendBitcoinPanel.amountLabel.tooltip"))); amountLabel.setHorizontalAlignment(JLabel.TRAILING); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 0; constraints.gridy = 5; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weightx = 0.1; constraints.weighty = 0.20; constraints.anchor = GridBagConstraints.LINE_END; formPanel.add(amountLabel, constraints); JPanel amountPanel = createAmountPanel(); constraints.fill = GridBagConstraints.BOTH; constraints.gridx = 2; constraints.gridy = 5; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weightx = 0.1; constraints.weighty = 0.20; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(amountPanel, constraints); notificationLabel = new MultiBitLabel(""); notificationLabel.setForeground(Color.RED); // notificationLabel.setBorder(BorderFactory.createLineBorder(Color.GREEN)); constraints.fill = GridBagConstraints.BOTH; constraints.gridx = 2; constraints.gridy = 6; constraints.gridwidth = 8; constraints.gridheight = 3; constraints.weightx = 0.1; constraints.weighty = 0.1; constraints.anchor = GridBagConstraints.ABOVE_BASELINE_LEADING; formPanel.add(notificationLabel, constraints); Action helpAction; if (ComponentOrientation.LEFT_TO_RIGHT == ComponentOrientation.getOrientation(controller.getLocaliser().getLocale())) { helpAction = new HelpContextAction( controller, ImageLoader.HELP_CONTENTS_BIG_ICON_FILE, "multiBitFrame.helpMenuText", "multiBitFrame.helpMenuTooltip", "multiBitFrame.helpMenuText", HelpContentsPanel.HELP_SENDING_URL); } else { helpAction = new HelpContextAction( controller, ImageLoader.HELP_CONTENTS_BIG_RTL_ICON_FILE, "multiBitFrame.helpMenuText", "multiBitFrame.helpMenuTooltip", "multiBitFrame.helpMenuText", HelpContentsPanel.HELP_SENDING_URL); } HelpButton helpButton = new HelpButton(helpAction, controller); helpButton.setText(""); String tooltipText = HelpContentsPanel.createMultilineTooltipText( new String[] { controller.getLocaliser().getString("sendBitcoinPanel.helpLabel1.message"), controller.getLocaliser().getString("sendBitcoinPanel.helpLabel2.message"), controller.getLocaliser().getString("sendBitcoinPanel.helpLabel3.message"), "\n", controller.getLocaliser().getString("multiBitFrame.helpMenuTooltip") }); helpButton.setToolTipText(tooltipText); helpButton.setHorizontalAlignment(SwingConstants.LEADING); helpButton.setBorder( BorderFactory.createEmptyBorder( 0, HELP_BUTTON_INDENT, HELP_BUTTON_INDENT, HELP_BUTTON_INDENT)); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridx = 0; constraints.gridy = 8; constraints.weightx = 1; constraints.weighty = 0.3; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.anchor = GridBagConstraints.BELOW_BASELINE_LEADING; formPanel.add(helpButton, constraints); sendBitcoinConfirmAction = new SendBitcoinConfirmAction(super.bitcoinController, mainFrame, this); sendBitcoinConfirmAction.setEnabled(enableSendButton); sendButton = new MultiBitButton(sendBitcoinConfirmAction, controller); if (enableSendButton) { sendButton.setEnabled(true); sendButton.setToolTipText( HelpContentsPanel.createTooltipText( controller.getLocaliser().getString("sendBitcoinAction.tooltip"))); } else { sendButton.setEnabled(false); sendButton.setToolTipText( HelpContentsPanel.createTooltipText( controller.getLocaliser().getString("sendBitcoinAction.pleaseWait.tooltip"))); } constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridx = 6; constraints.gridy = 5; constraints.weightx = 0.1; constraints.weighty = 0.1; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.anchor = GridBagConstraints.LINE_START; formPanel.add(sendButton, constraints); Action sidePanelAction = new MoreOrLessAction(controller, this); sidePanelButton = new MultiBitButton(sidePanelAction, controller); sidePanelButton.setBorder(BorderFactory.createEmptyBorder()); sidePanelButton.setBorderPainted(false); sidePanelButton.setFocusPainted(false); sidePanelButton.setContentAreaFilled(false); displaySidePanel(); constraints.fill = GridBagConstraints.NONE; constraints.gridx = 4; constraints.gridy = 3; constraints.weightx = 0.1; constraints.weighty = 0.3; constraints.gridwidth = 7; constraints.gridheight = 3; constraints.anchor = GridBagConstraints.BASELINE_TRAILING; formPanel.add(sidePanelButton, constraints); return formPanel; }
private void jbInit() throws Exception { hierarTreePanel.setEnabled(false); warehousePanel.setLayout(borderLayout1); warehouseForm.setVOClassName("org.jallinone.warehouse.java.WarehouseVO"); this.setTitle(ClientSettings.getInstance().getResources().getResource("warehouse detail")); buttonsPanel.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); insertButton.setText("insertButton1"); reloadButton.setText("reloadButton1"); deleteButton.setText("deleteButton1"); warehouseForm.setInsertButton(insertButton); warehouseForm.setCopyButton(copyButton); warehouseForm.setEditButton(editButton); warehouseForm.setReloadButton(reloadButton); warehouseForm.setDeleteButton(deleteButton); warehouseForm.setSaveButton(saveButton); warehouseForm.setFunctionId("WAR01"); warehouseForm.setLayout(gridBagLayout1); controlZip.setAttributeName("zipWAR01"); controlZip.setCanCopy(true); controlZip.setLinkLabel(labelZip); controlZip.setMaxCharacters(20); controlProv.setAttributeName("provinceWAR01"); controlProv.setCanCopy(true); controlProv.setLinkLabel(labelProv); controlProv.setMaxCharacters(20); controlProv.setTrimText(true); controlProv.setUpperCase(true); controlCity.setAttributeName("cityWAR01"); controlCity.setCanCopy(true); controlCity.setLinkLabel(labelCity); controlAddress.setAttributeName("addressWAR01"); controlAddress.setCanCopy(true); controlAddress.setLinkLabel(labelAddress); labelAddress.setText("address"); controlCountry.setAttributeName("countryWAR01"); controlCountry.setCanCopy(true); controlCountry.setLinkLabel(labelCountry); controlCountry.setMaxCharacters(20); controlCountry.setTrimText(true); controlCountry.setUpperCase(true); labelZip.setText("zip"); labelCity.setText("city"); labelCountry.setText("country"); labelProv.setText("prov"); controlWarCode.setAttributeName("warehouseCodeWAR01"); controlWarCode.setLinkLabel(labelWarCode); controlWarCode.setMaxCharacters(20); controlWarCode.setRequired(true); controlWarCode.setRpadding(false); controlWarCode.setTrimText(true); controlWarCode.setUpperCase(true); controlWarCode.setEnabledOnEdit(false); labelWarCode.setText("warehouseCodeWAR01"); labelDescr.setText("descriptionWAR01"); controlDescr.setAttributeName("descriptionWAR01"); controlDescr.setLinkLabel(labelDescr); controlDescr.setRequired(true); labelCompanyCode.setText("companyCodeSys01WAR01"); controlCompaniesCombo.setAttributeName("companyCodeSys01WAR01"); controlCompaniesCombo.setCanCopy(true); controlCompaniesCombo.setLinkLabel(labelCompanyCode); controlCompaniesCombo.setRequired(true); controlCompaniesCombo.setEnabledOnEdit(false); labelRoles.setText("edit/delete warehouse role"); controlRoles.setAttributeName("progressiveSys04WAR01"); controlRoles.setDomainId("USERROLES"); controlRoles.setLinkLabel(labelRoles); locationsPanel.setLayout(borderLayout2); tabbedPane.add(warehousePanel, "warehousePanel"); this.getContentPane().add(buttonsPanel, BorderLayout.NORTH); this.getContentPane().add(tabbedPane, BorderLayout.CENTER); warehouseForm.add( labelZip, new GridBagConstraints( 3, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelCity, new GridBagConstraints( 0, 4, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelAddress, new GridBagConstraints( 0, 3, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlAddress, new GridBagConstraints( 2, 3, 3, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlCity, new GridBagConstraints( 2, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 100, 0)); warehouseForm.add( controlZip, new GridBagConstraints( 4, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlWarCode, new GridBagConstraints( 2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 100, 0)); warehousePanel.add(warehouseForm, BorderLayout.CENTER); buttonsPanel.add(insertButton, null); buttonsPanel.add(copyButton, null); buttonsPanel.add(editButton, null); buttonsPanel.add(saveButton, null); buttonsPanel.add(reloadButton, null); buttonsPanel.add(deleteButton, null); buttonsPanel.add(navigatorBar, null); warehouseForm.add( labelWarCode, new GridBagConstraints( 0, 1, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); warehouseForm.add( labelDescr, new GridBagConstraints( 0, 2, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlDescr, new GridBagConstraints( 2, 2, 3, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlCountry, new GridBagConstraints( 4, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelCountry, new GridBagConstraints( 3, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelProv, new GridBagConstraints( 0, 5, 1, 2, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 0), 0, 0)); warehouseForm.add( controlProv, new GridBagConstraints( 2, 5, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelCompanyCode, new GridBagConstraints( 0, 0, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); tabbedPane.add(locationsPanel, "locationsPanel"); locationsPanel.add(split, BorderLayout.CENTER); split.setDividerLocation(150); split.add(hierarTreePanel, JSplitPane.LEFT); split.add(availPanel, JSplitPane.RIGHT); tabbedPane.add(bookedItemsPanel, "bookedItemsPanel"); tabbedPane.add(orderedItemsPanel, "orderedItemsPanel"); hierarTreePanel.setFunctionId("WAR01"); tabbedPane.setTitleAt( 0, ClientSettings.getInstance().getResources().getResource("warehouse detail")); tabbedPane.setTitleAt(1, ClientSettings.getInstance().getResources().getResource("positions")); tabbedPane.setTitleAt( 2, ClientSettings.getInstance().getResources().getResource("bookedItemsPanel")); tabbedPane.setTitleAt( 3, ClientSettings.getInstance().getResources().getResource("orderedItemsPanel")); warehouseForm.add( controlCompaniesCombo, new GridBagConstraints( 2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( controlRoles, new GridBagConstraints( 2, 6, 1, 2, 0.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); warehouseForm.add( labelRoles, new GridBagConstraints( 0, 7, 2, 1, 0.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); }
private void jbInit() throws Exception { operationsGridControl.setValueObjectClassName( "org.jallinone.production.manufactures.java.OperationVO"); this.setTitle(ClientSettings.getInstance().getResources().getResource("operations")); opPanel.setLayout(borderLayout1); opButtonsPanel.setLayout(flowLayout2); flowLayout2.setAlignment(FlowLayout.LEFT); operationsGridControl.setDeleteButton(deleteButton1); operationsGridControl.setEditButton(editButton1); operationsGridControl.setExportButton(exportButton1); operationsGridControl.setFunctionId("PRO04"); operationsGridControl.setMaxNumberOfRowsOnInsert(50); operationsGridControl.setInsertButton(insertButton1); operationsGridControl.setReloadButton(reloadButton1); operationsGridControl.setSaveButton(saveButton1); colNote.setColumnName("notePRO04"); colNote.setColumnRequired(false); colNote.setEditableOnEdit(true); colNote.setEditableOnInsert(true); colNote.setPreferredWidth(300); colDescr.setColumnDuplicable(true); colDescr.setColumnFilterable(true); colDescr.setColumnName("descriptionSYS10"); colDescr.setColumnRequired(true); colDescr.setColumnSortable(false); colDescr.setEditableOnEdit(true); colDescr.setEditableOnInsert(true); colDescr.setPreferredWidth(200); colQty.setColumnDuplicable(true); colQty.setColumnFilterable(true); colQty.setColumnRequired(false); colQty.setEditableOnEdit(true); colQty.setEditableOnInsert(true); colQty.setPreferredWidth(60); colQty.setDecimals(5); colDuration.setColumnDuplicable(true); colDuration.setColumnFilterable(true); colDuration.setEditableOnEdit(true); colDuration.setEditableOnInsert(true); colDuration.setPreferredWidth(60); colValue.setColumnDuplicable(true); colValue.setColumnFilterable(true); colValue.setColumnSortable(true); colValue.setEditableOnEdit(true); colValue.setEditableOnInsert(true); colValue.setPreferredWidth(80); colTaskCode.setColumnDuplicable(true); colTaskCode.setColumnFilterable(true); colTaskCode.setColumnRequired(false); colTaskCode.setEditableOnEdit(true); colTaskCode.setEditableOnInsert(true); colTaskCode.setMaxCharacters(20); colTaskDescr.setColumnDuplicable(true); colTaskDescr.setColumnRequired(false); colTaskDescr.setPreferredWidth(150); colMachCode.setColumnDuplicable(true); colMachCode.setColumnFilterable(true); colMachCode.setColumnRequired(false); colMachCode.setEditableOnEdit(true); colMachCode.setEditableOnInsert(true); colMachCode.setMaxCharacters(20); colMachDescr.setColumnDuplicable(true); colMachDescr.setColumnRequired(false); colMachDescr.setPreferredWidth(150); colOpCod.setColumnFilterable(true); colOpCod.setColumnRequired(true); colOpCod.setEditableOnEdit(false); colOpCod.setEditableOnInsert(true); colOpCod.setMaxCharacters(20); colOpCod.setTrimText(true); colOpCod.setUpperCase(true); colOpCod.setColumnName("operationCodePRO04"); this.getContentPane().add(opPanel, BorderLayout.CENTER); opPanel.add(opButtonsPanel, BorderLayout.NORTH); opButtonsPanel.add(insertButton1, null); opButtonsPanel.add(editButton1, null); opButtonsPanel.add(saveButton1, null); opButtonsPanel.add(reloadButton1, null); opButtonsPanel.add(deleteButton1, null); opButtonsPanel.add(exportButton1, null); opPanel.add(operationsGridControl, BorderLayout.CENTER); colCompanyCode.setColumnName("companyCodeSys01PRO04"); colCompanyCode.setFunctionCode("PRO04"); operationsGridControl.getColumnContainer().add(colCompanyCode, null); operationsGridControl.getColumnContainer().add(colOpCod, null); operationsGridControl.getColumnContainer().add(colDescr, null); operationsGridControl.getColumnContainer().add(colDuration, null); operationsGridControl.getColumnContainer().add(colValue, null); operationsGridControl.getColumnContainer().add(colTaskCode, null); operationsGridControl.getColumnContainer().add(colTaskDescr, null); operationsGridControl.getColumnContainer().add(colQty, null); operationsGridControl.getColumnContainer().add(colMachCode, null); operationsGridControl.getColumnContainer().add(colMachDescr, null); operationsGridControl.getColumnContainer().add(colNote, null); colQty.setColumnName("qtyPRO04"); colDuration.setColumnName("durationPRO04"); colValue.setColumnName("valuePRO04"); colValue.setDynamicSettings(this); colTaskCode.setColumnName("taskCodeReg07PRO04"); colTaskDescr.setColumnName("taskDescriptionSYS10"); colMachCode.setColumnName("machineryCodePro03PRO04"); colMachDescr.setColumnName("machineryDescriptionSYS10"); }
private void makeGUI() { // Set Frames properties this.setTitle("Search And Edit Student"); this.setSize(700, 500); this.setLocationRelativeTo(null); this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // Add components to panel_1 FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); panel_1.setLayout(layout); panel_1.add(searchcombobox); panel_1.add(searchtextfield); panel_1.add(searchbutton); panel_1.add(allfieldcheckbox); panel_1.setBackground(Color.WHITE); // Add panel_1 to frame this.add(panel_1, BorderLayout.PAGE_START); // Add components to panel_2 panel_2.add(totalstudentlabel); panel_2.setBackground(Color.WHITE); // Add panel_2 to frame this.add(panel_2, BorderLayout.PAGE_END); // Add components to panel_3 panel_3.setLayout(new GridLayout(1, 0)); // Design panel_5 GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); c.weightx = 1; c.weighty = 1; c.fill = GridBagConstraints.BOTH; panel_5.setLayout(gbl); c.gridx = 0; c.gridy = 0; c.gridheight = 4; c.gridwidth = GridBagConstraints.REMAINDER; panel_5.add(panel_3, c); c.gridx = 0; c.gridy = 5; c.gridheight = 2; c.gridwidth = GridBagConstraints.REMAINDER; panel_5.add(panel_4, c); // Add components to panel_4 panel_4.setLayout(new GridLayout(1, 2)); panel_4.add(panel_6); // Lower Left panel_4.add(panel_7); // Lower Right // Design panel 6 SpringLayout sl = new SpringLayout(); panel_6.setLayout(sl); sl.putConstraint(SpringLayout.WEST, feespayedlabel, 2, SpringLayout.WEST, panel_6); sl.putConstraint(SpringLayout.NORTH, feespayedlabel, 2, SpringLayout.NORTH, panel_6); sl.putConstraint(SpringLayout.WEST, addfeestextfield, 2, SpringLayout.EAST, feespayedlabel); sl.putConstraint(SpringLayout.NORTH, addfeestextfield, 2, SpringLayout.NORTH, panel_6); sl.putConstraint(SpringLayout.WEST, addfeesbutton, 2, SpringLayout.EAST, addfeestextfield); sl.putConstraint(SpringLayout.NORTH, addfeesbutton, 2, SpringLayout.NORTH, panel_6); sl.putConstraint(SpringLayout.WEST, feesduelabel, 2, SpringLayout.WEST, panel_6); sl.putConstraint(SpringLayout.NORTH, feesduelabel, 2, SpringLayout.SOUTH, addfeesbutton); sl.putConstraint(SpringLayout.WEST, totalfeeslabel, 2, SpringLayout.WEST, panel_6); sl.putConstraint(SpringLayout.NORTH, totalfeeslabel, 2, SpringLayout.SOUTH, feesduelabel); sl.putConstraint(SpringLayout.WEST, coursecombobox, 2, SpringLayout.WEST, panel_6); sl.putConstraint(SpringLayout.NORTH, coursecombobox, 3, SpringLayout.SOUTH, totalfeeslabel); sl.putConstraint(SpringLayout.WEST, spinner, 2, SpringLayout.EAST, coursecombobox); sl.putConstraint(SpringLayout.NORTH, spinner, 3, SpringLayout.SOUTH, totalfeeslabel); sl.putConstraint(SpringLayout.WEST, addcoursebutton, 2, SpringLayout.WEST, panel_6); sl.putConstraint(SpringLayout.NORTH, addcoursebutton, 3, SpringLayout.SOUTH, coursecombobox); panel_6.add(feespayedlabel); panel_6.add(addfeestextfield); panel_6.add(addfeesbutton); panel_6.add(feesduelabel); panel_6.add(totalfeeslabel); panel_6.add(coursecombobox); panel_6.add(spinner); panel_6.add(addcoursebutton); // Set panel 7 layout panel_7.setLayout(new GridLayout(1, 0)); panel_7.setBackground(Color.WHITE); // Add panel_5 to frame this.add(panel_5); update(); // Show frame this.validate(); this.setVisible(true); }
private void jbInit() throws Exception { itemsGrid.setMaxNumberOfRowsOnInsert(50); impAllItemsButton.setToolTipText( ClientSettings.getInstance().getResources().getResource("import all items")); impAllItemsButton.addActionListener( new SupplierDetailFrame_impAllItemsButton_actionAdapter(this)); detailPanel.setLayout(gridBagLayout4); itemsGrid.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); supplierPanel.setVOClassName("org.jallinone.purchases.suppliers.java.DetailSupplierVO"); supplierPanel.addLinkedPanel(organizationPanel); titledBorder1 = new TitledBorder(""); titledBorder2 = new TitledBorder(""); subjectPanel.setLayout(gridBagLayout1); supplierPanel.setBorder(titledBorder1); supplierPanel.setLayout(gridBagLayout2); titledBorder1.setTitle(ClientSettings.getInstance().getResources().getResource("supplier")); titledBorder1.setTitleColor(Color.blue); labelSupplierCode.setText("supplierCodePUR01"); labelPay.setText("payment terms"); labelBank.setText("bank"); controlSupplierCode.setAttributeName("supplierCodePUR01"); controlSupplierCode.setCanCopy(false); controlSupplierCode.setLinkLabel(labelSupplierCode); controlSupplierCode.setMaxCharacters(20); // controlSupplierCode.setRequired(true); controlSupplierCode.setTrimText(true); controlSupplierCode.setUpperCase(true); controlSupplierCode.setEnabledOnEdit(false); controlPayment.setAttributeName("paymentCodeReg10PUR01"); controlPayment.setCanCopy(true); controlPayment.setLinkLabel(labelPay); controlPayment.setMaxCharacters(20); controlPayment.setRequired(true); controlPayDescr.setAttributeName("paymentDescriptionSYS10"); controlPayDescr.setCanCopy(true); controlPayDescr.setEnabledOnInsert(false); controlPayDescr.setEnabledOnEdit(false); controlBank.setAttributeName("bankCodeReg12PUR01"); controlBank.setCanCopy(true); controlBank.setLinkLabel(labelBank); controlBank.setMaxCharacters(20); controlBankDescr.setAttributeName("descriptionREG12"); controlBankDescr.setCanCopy(true); controlBankDescr.setEnabledOnInsert(false); controlBankDescr.setEnabledOnEdit(false); refPanel.setLayout(borderLayout1); hierarPanel.setLayout(borderLayout4); treeGridItemsPanel.setLayout(borderLayout3); itemsSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT); itemsSplitPane.setDividerSize(5); itemsPanel.setLayout(borderLayout5); itemButtonsPanel.setLayout(flowLayout2); flowLayout2.setAlignment(FlowLayout.LEFT); itemsGrid.setAutoLoadData(false); itemsGrid.setDeleteButton(deleteButton1); itemsGrid.setEditButton(editButton1); itemsGrid.setExportButton(exportButton1); itemsGrid.setFunctionId("PUR01"); itemsGrid.setMaxSortedColumns(3); itemsGrid.setInsertButton(insertButton1); itemsGrid.setNavBar(navigatorBar1); itemsGrid.setReloadButton(reloadButton1); itemsGrid.setSaveButton(saveButton1); itemsGrid.setValueObjectClassName("org.jallinone.purchases.items.java.SupplierItemVO"); insertButton1.setText("insertButton1"); editButton1.setText("editButton1"); saveButton1.setText("saveButton1"); reloadButton1.setText("reloadButton1"); deleteButton1.setText("deleteButton1"); itemHierarsPanel.setLayout(gridBagLayout3); labelHierar.setText("item hierarchies"); colItemCode.setColumnFilterable(true); colItemCode.setColumnName("itemCodeItm01PUR02"); colItemCode.setColumnSortable(true); colItemCode.setEditableOnInsert(true); colItemCode.setHeaderColumnName("itemCodeITM01"); colItemCode.setPreferredWidth(90); colItemCode.setSortVersus(org.openswing.swing.util.java.Consts.ASC_SORTED); colItemCode.setMaxCharacters(20); colItemDescr.setColumnFilterable(true); colItemDescr.setColumnName("descriptionSYS10"); colItemDescr.setColumnSortable(true); colItemDescr.setHeaderColumnName("itemDescriptionSYS10"); colItemDescr.setPreferredWidth(200); colSupplierItemCode.setMaxCharacters(20); colSupplierItemCode.setTrimText(true); colSupplierItemCode.setUpperCase(true); colSupplierItemCode.setColumnFilterable(true); colSupplierItemCode.setColumnName("supplierItemCodePUR02"); colSupplierItemCode.setColumnSortable(true); colSupplierItemCode.setEditableOnEdit(true); colSupplierItemCode.setEditableOnInsert(true); colSupplierItemCode.setHeaderColumnName("supplierItemCodePUR02"); colSupplierItemCode.setPreferredWidth(120); colUmCode.setColumnDuplicable(true); colUmCode.setColumnFilterable(true); colUmCode.setColumnName("umCodeReg02PUR02"); colUmCode.setEditableOnEdit(true); colUmCode.setEditableOnInsert(true); colUmCode.setHeaderColumnName("umCodeReg02PUR02"); colUmCode.setMaxCharacters(20); colMinQty.setDecimals(2); colMinQty.setGrouping(false); colMinQty.setColumnDuplicable(true); colMinQty.setColumnFilterable(true); colMinQty.setColumnSortable(true); colMinQty.setEditableOnEdit(true); colMinQty.setEditableOnInsert(true); colMinQty.setPreferredWidth(80); colMinQty.setColumnName("minPurchaseQtyPUR02"); colMultipleQty.setGrouping(false); colMultipleQty.setColumnDuplicable(true); colMultipleQty.setColumnFilterable(true); colMultipleQty.setColumnSortable(true); colMultipleQty.setEditableOnEdit(true); colMultipleQty.setEditableOnInsert(true); colMultipleQty.setPreferredWidth(80); colMultipleQty.setColumnName("multipleQtyPUR02"); subjectPanel.add( organizationPanel, new GridBagConstraints( 0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); this.setTitle(ClientSettings.getInstance().getResources().getResource("supplier detail")); buttonsPanel.setLayout(flowLayout1); flowLayout1.setAlignment(FlowLayout.LEFT); insertButton.setText("insertButton1"); editButton.setText("editButton1"); saveButton.setEnabled(false); saveButton.setText("saveButton1"); reloadButton.setText("reloadButton1"); deleteButton.setText("deleteButton1"); labelCompanyCode.setText("companyCodeSys01REG04"); controlCompanyCode.setAttributeName("companyCodeSys01REG04"); controlCompanyCode.setLinkLabel(labelCompanyCode); controlCompanyCode.setRequired(true); controlCompanyCode.setEnabledOnEdit(false); this.getContentPane().add(buttonsPanel, BorderLayout.NORTH); buttonsPanel.add(insertButton, null); buttonsPanel.add(editButton, null); buttonsPanel.add(saveButton, null); buttonsPanel.add(reloadButton, null); buttonsPanel.add(deleteButton, null); buttonsPanel.add(navigatorBar, null); // tabbedPane.add(subjectPanel, "generic data"); this.getContentPane().add(tabbedPane, BorderLayout.CENTER); supplierPanel.add( labelCompanyCode, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( controlCompanyCode, new GridBagConstraints( 1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); // tabbedPane.add(supplierPanel, "supplierPanel"); supplierPanel.add( labelSupplierCode, new GridBagConstraints( 0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 5, 5, 5), 0, 0)); supplierPanel.add( controlSupplierCode, new GridBagConstraints( 1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( labelPay, new GridBagConstraints( 0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( controlPayment, new GridBagConstraints( 1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 40, 0)); supplierPanel.add( controlPayDescr, new GridBagConstraints( 2, 2, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( labelPricelist, new GridBagConstraints( 0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( labelBank, new GridBagConstraints( 0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 0, 5), 0, 0)); supplierPanel.add( controlBank, new GridBagConstraints( 1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 40, 0)); supplierPanel.add( controlBankDescr, new GridBagConstraints( 2, 4, 2, 3, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0)); supplierPanel.add( labelDebit, new GridBagConstraints( 0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); supplierPanel.add( labelPurchase, new GridBagConstraints( 0, 6, 1, 1, 0.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 15, 5), 0, 0)); supplierPanel.add( controlDebitsCode, new GridBagConstraints( 1, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 40, 0)); supplierPanel.add( controlDebitsDescr, new GridBagConstraints( 2, 5, 2, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0)); supplierPanel.add( controlCostsCode, new GridBagConstraints( 1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 40, 0)); supplierPanel.add( controlCostsDescr, new GridBagConstraints( 2, 6, 2, 3, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0)); labelDebit.setText("debits account"); labelPurchase.setText("purchase costs account"); controlDebitsCode.setAttributeName("debitAccountCodeAcc02PUR01"); controlDebitsDescr.setAttributeName("debitAccountDescrPUR01"); controlCostsCode.setAttributeName("costsAccountCodeAcc02PUR01"); controlCostsDescr.setAttributeName("costsAccountDescrPUR01"); detailPanel.add( subjectPanel, new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); detailPanel.add( supplierPanel, new GridBagConstraints( 0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); tabbedPane.add(detailPanel, "supplier data"); tabbedPane.add(refPanel, "references"); refPanel.add(referencesPanel, BorderLayout.CENTER); tabbedPane.add(hierarPanel, "hierarchies"); hierarPanel.add(hierarchiesPanel, BorderLayout.CENTER); tabbedPane.add(treeGridItemsPanel, "supplierItems"); treeGridItemsPanel.add(itemsSplitPane, BorderLayout.CENTER); itemsSplitPane.add(treePanel, JSplitPane.LEFT); itemsSplitPane.add(itemsPanel, JSplitPane.RIGHT); itemsPanel.add(itemButtonsPanel, BorderLayout.NORTH); itemsPanel.add(itemsGrid, BorderLayout.CENTER); itemsGrid.getColumnContainer().add(colItemCode, null); itemButtonsPanel.add(insertButton1, null); itemButtonsPanel.add(editButton1, null); itemButtonsPanel.add(saveButton1, null); itemButtonsPanel.add(reloadButton1, null); itemButtonsPanel.add(deleteButton1, null); itemButtonsPanel.add(exportButton1, null); itemButtonsPanel.add(navigatorBar1, null); itemButtonsPanel.add(impAllItemsButton, null); controlDebitsCode.setLinkLabel(labelDebit); controlDebitsCode.setMaxCharacters(20); controlDebitsCode.setRequired(true); controlDebitsDescr.setEnabledOnInsert(false); controlDebitsDescr.setEnabledOnEdit(false); controlCostsCode.setLinkLabel(labelPurchase); controlCostsCode.setMaxCharacters(20); controlCostsCode.setRequired(true); controlCostsDescr.setEnabledOnInsert(false); controlCostsDescr.setEnabledOnEdit(false); treeGridItemsPanel.add(itemHierarsPanel, BorderLayout.NORTH); itemHierarsPanel.add( labelHierar, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); itemHierarsPanel.add( controlHierarchy, new GridBagConstraints( 1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 100, 0)); tabbedPane.add(supplierPricelistPanel, "supplierPricelistPanel"); itemsGrid.getColumnContainer().add(colItemDescr, null); itemsGrid.getColumnContainer().add(colSupplierItemCode, null); itemsGrid.getColumnContainer().add(colUmCode, null); itemsGrid.getColumnContainer().add(colMinQty, null); itemsGrid.getColumnContainer().add(colMultipleQty, null); tabbedPane.setTitleAt( 0, ClientSettings.getInstance().getResources().getResource("supplier data")); tabbedPane.setTitleAt(1, ClientSettings.getInstance().getResources().getResource("references")); tabbedPane.setTitleAt( 2, ClientSettings.getInstance().getResources().getResource("hierarchies")); tabbedPane.setTitleAt( 3, ClientSettings.getInstance().getResources().getResource("supplierItems")); tabbedPane.setTitleAt( 4, ClientSettings.getInstance().getResources().getResource("supplierPricelists")); itemsSplitPane.setDividerLocation(200); }
private void jbInit() throws Exception { this.setWidth(529); this.setHeight(529); this.setDeviceType("WE900"); this.setDeviceProvider("localhost"); this.setDeviceTitle("YOKOGAWA Rack 9 Slots"); this.getContentPane().setLayout(null); jPanel1.setLayout(null); deviceField1.setOffsetNid(1); deviceField1.setLabelString("Comment: "); deviceField1.setNumCols(25); jPanel3.setLayout(flowLayout2); flowLayout2.setAlignment(FlowLayout.LEFT); flowLayout2.setHgap(0); flowLayout2.setVgap(0); deviceChoice1.setOffsetNid(6); deviceChoice1.setLabelString("Bus Trigger 2:"); deviceChoice1.setChoiceItems(new String[] {"SOFTWARE", "EXT I/O", "TRIGIN"}); jPanel4.setLayout(flowLayout3); flowLayout3.setAlignment(FlowLayout.LEFT); flowLayout3.setHgap(5); flowLayout3.setVgap(0); deviceField2.setOffsetNid(7); deviceField2.setLabelString("Source: "); deviceField2.setNumCols(20); flowLayout4.setAlignment(FlowLayout.LEFT); flowLayout4.setHgap(5); flowLayout4.setVgap(0); jPanel5.setLayout(flowLayout4); deviceChoice2.setOffsetNid(4); deviceChoice2.setLabelString("Bus Trigger 1:"); deviceChoice2.setShowState(false); deviceChoice2.setChoiceItems(new String[] {"SOFTWARE", "EXT I/O", "TRIGIN"}); deviceField5.setOffsetNid(5); deviceField5.setLabelString("Source: "); deviceField5.setNumCols(20); deviceField6.setNumCols(20); deviceField6.setOffsetNid(10); deviceField6.setLabelString("Source: "); deviceChoice3.setChoiceItems(new String[] {"NONE", "EXT I/O", "TRIGIN"}); deviceChoice3.setOffsetNid(9); deviceChoice3.setLabelString("Cmn. Clock:"); flowLayout5.setAlignment(FlowLayout.LEFT); flowLayout5.setHgap(5); flowLayout5.setVgap(0); jPanel6.setLayout(flowLayout5); jPanel1.setPreferredSize(new Dimension(300, 500)); jPanel1.setBounds(new Rectangle(1, 2, 529, 396)); jScrollPane1.setDebugGraphicsOptions(0); jScrollPane1.setBounds(new Rectangle(15, 191, 488, 138)); deviceChoice4.setOffsetNid(8); deviceChoice4.setLabelString("Trigger Slope:"); deviceChoice4.setChoiceItems(new String[] {"POSITIVE", "NEGATIVE"}); flowLayout6.setAlignment(FlowLayout.LEFT); flowLayout6.setVgap(0); jPanel7.setLayout(flowLayout6); flowLayout1.setAlignment(FlowLayout.LEFT); flowLayout1.setHgap(0); flowLayout1.setVgap(0); deviceField3.setNumCols(15); deviceField3.setOffsetNid(2); deviceField3.setLabelString("Controller IP: "); jPanel2.setLayout(flowLayout1); jPanel3.setBounds(new Rectangle(2, 1, 524, 31)); jPanel5.setBounds(new Rectangle(1, 94, 564, 31)); jPanel6.setBounds(new Rectangle(2, 61, 578, 31)); jPanel4.setBounds(new Rectangle(3, 127, 565, 31)); jPanel7.setBounds(new Rectangle(4, 158, 216, 31)); jPanel2.setBounds(new Rectangle(7, 34, 572, 31)); deviceButtons1.setMethods(new String[] {"init", "arm", "turnOff"}); deviceButtons1.setBounds(new Rectangle(24, 347, 474, 35)); jPanel8.setLayout(gridLayout1); gridLayout1.setColumns(1); gridLayout1.setRows(9); deviceField9.setLabelString("Modules Linked"); deviceField9.setNumCols(10); deviceField9.setOffsetNid(32); deviceChoice7.setIdentifier(""); deviceChoice7.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice7.setShowState(false); deviceChoice7.setLabelString("Module Type"); deviceChoice7.setOffsetNid(31); deviceChannel3.setInSameLine(true); deviceChannel3.setLabelString("Slot 07"); deviceChannel3.setOffsetNid(30); jPanel9.setLayout(flowLayout7); flowLayout7.setHgap(0); flowLayout7.setVgap(0); flowLayout8.setVgap(0); flowLayout8.setHgap(0); deviceField10.setOffsetNid(35); deviceField10.setLabelString("Modules Linked"); deviceField10.setIdentifier(""); deviceChoice8.setOffsetNid(34); deviceChoice8.setLabelString("Module Type"); deviceChoice8.setShowState(false); deviceChoice8.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice8.setIdentifier(""); jPanel10.setLayout(flowLayout8); deviceChannel4.setInSameLine(true); deviceChannel4.setLabelString("Slot 08"); deviceChannel4.setOffsetNid(33); flowLayout9.setVgap(0); flowLayout9.setHgap(0); deviceField11.setOffsetNid(29); deviceField11.setLabelString("Modules Linked"); deviceField11.setNumCols(10); deviceChoice9.setOffsetNid(28); deviceChoice9.setLabelString("Module Type"); deviceChoice9.setShowState(false); deviceChoice9.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice9.setIdentifier(""); jPanel14.setLayout(flowLayout9); deviceChannel5.setInSameLine(true); deviceChannel5.setLabelString("Slot 06"); deviceChannel5.setOffsetNid(27); deviceChannel5.setLines(1); flowLayout10.setVgap(0); flowLayout10.setHgap(0); deviceField12.setOffsetNid(14); deviceField12.setLabelString("Modules Linked"); deviceChoice10.setOffsetNid(13); deviceChoice10.setLabelString("Module Type"); deviceChoice10.setShowState(false); deviceChoice10.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice10.setIdentifier(""); jPanel16.setLayout(flowLayout10); deviceChannel6.setInSameLine(true); deviceChannel6.setLabelString("Slot 01"); deviceChannel6.setOffsetNid(12); deviceChannel6.setLines(1); flowLayout11.setVgap(0); flowLayout11.setHgap(0); deviceField13.setOffsetNid(26); deviceField13.setLabelString("Modules Linked"); deviceField13.setIdentifier(""); deviceChoice11.setOffsetNid(25); deviceChoice11.setLabelString("Module Type"); deviceChoice11.setShowState(false); deviceChoice11.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice11.setIdentifier(""); jPanel18.setLayout(flowLayout11); deviceChannel7.setInSameLine(true); deviceChannel7.setLabelString("Slot 05"); deviceChannel7.setOffsetNid(24); deviceChannel7.setLines(1); flowLayout12.setVgap(0); flowLayout12.setHgap(0); deviceField14.setOffsetNid(23); deviceField14.setLabelString("Modules Linked"); deviceField14.setIdentifier(""); deviceChoice12.setOffsetNid(22); deviceChoice12.setLabelString("Module Type"); deviceChoice12.setShowState(false); deviceChoice12.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice12.setIdentifier(""); jPanel110.setLayout(flowLayout12); deviceChannel8.setInSameLine(true); deviceChannel8.setLabelString("Slot 04"); deviceChannel8.setOffsetNid(21); deviceChannel8.setLines(1); flowLayout13.setVgap(0); flowLayout13.setHgap(0); deviceField15.setOffsetNid(20); deviceField15.setLabelString("Modules Linked"); deviceField15.setIdentifier(""); deviceChoice13.setOffsetNid(19); deviceChoice13.setLabelString("Module Type"); deviceChoice13.setShowState(false); deviceChoice13.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice13.setIdentifier(""); jPanel112.setLayout(flowLayout13); deviceChannel9.setInSameLine(true); deviceChannel9.setLabelString("Slot 03"); deviceChannel9.setOffsetNid(18); deviceChannel9.setLines(1); flowLayout14.setVgap(0); flowLayout14.setHgap(0); deviceField16.setOffsetNid(17); deviceField16.setLabelString("Modules Linked"); deviceField16.setNumCols(10); deviceChoice14.setOffsetNid(16); deviceChoice14.setLabelString("Module Type"); deviceChoice14.setShowState(false); deviceChoice14.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice14.setIdentifier(""); jPanel114.setLayout(flowLayout14); deviceChannel10.setInSameLine(true); deviceChannel10.setLabelString("Slot 02"); deviceChannel10.setOffsetNid(15); deviceChannel10.setLines(1); deviceField4.setOffsetNid(3); deviceField4.setLabelString("Station IP:"); deviceField4.setNumCols(15); jPanel115.setLayout(flowLayout15); deviceField17.setOffsetNid(38); deviceField17.setLabelString("Modules Linked"); deviceField17.setIdentifier(""); deviceChannel11.setInSameLine(true); deviceChannel11.setLabelString("Slot 09"); deviceChannel11.setOffsetNid(36); deviceChoice15.setOffsetNid(37); deviceChoice15.setLabelString("Module Type"); deviceChoice15.setShowState(false); deviceChoice15.setChoiceItems(new String[] {"WE7275", "WE7116"}); deviceChoice15.setIdentifier(""); flowLayout15.setVgap(0); flowLayout15.setHgap(0); jPanel3.add(deviceField1, null); jPanel3.add(deviceDispatch1, null); jPanel1.add(deviceButtons1, null); jPanel1.add(jScrollPane1, null); jScrollPane1.getViewport().add(jPanel8, null); jPanel11.add(deviceChoice7, null); jPanel11.add(deviceField9, null); jPanel8.add(jPanel16, null); jPanel16.add(deviceChannel6, null); deviceChannel6.add(jPanel15, BorderLayout.EAST); jPanel15.add(deviceChoice10, null); jPanel15.add(deviceField12, null); jPanel116.add(deviceChoice15, null); jPanel116.add(deviceField17, null); jPanel8.add(jPanel114, null); jPanel114.add(deviceChannel10, null); deviceChannel10.add(jPanel113, BorderLayout.EAST); jPanel113.add(deviceChoice14, null); jPanel113.add(deviceField16, null); jPanel8.add(jPanel112, null); jPanel112.add(deviceChannel9, null); deviceChannel9.add(jPanel111, BorderLayout.EAST); jPanel111.add(deviceChoice13, null); jPanel111.add(deviceField15, null); jPanel8.add(jPanel110, null); jPanel110.add(deviceChannel8, null); deviceChannel8.add(jPanel19, BorderLayout.EAST); jPanel19.add(deviceChoice12, null); jPanel19.add(deviceField14, null); jPanel8.add(jPanel18, null); jPanel18.add(deviceChannel7, null); deviceChannel7.add(jPanel17, BorderLayout.EAST); jPanel17.add(deviceChoice11, null); jPanel17.add(deviceField13, null); jPanel8.add(jPanel14, null); jPanel14.add(deviceChannel5, null); deviceChannel5.add(jPanel13, BorderLayout.EAST); jPanel8.add(jPanel9, null); jPanel9.add(deviceChannel3, null); deviceChannel3.add(jPanel11, BorderLayout.EAST); jPanel13.add(deviceChoice9, null); jPanel13.add(deviceField11, null); jPanel8.add(jPanel10, null); jPanel10.add(deviceChannel4, null); deviceChannel4.add(jPanel12, BorderLayout.EAST); jPanel12.add(deviceChoice8, null); jPanel12.add(deviceField10, null); jPanel8.add(jPanel115, null); jPanel115.add(deviceChannel11, null); deviceChannel11.add(jPanel116, BorderLayout.EAST); jPanel1.add(jPanel7, null); jPanel7.add(deviceChoice4, null); jPanel6.add(deviceChoice3, null); jPanel6.add(deviceField6, null); jPanel1.add(jPanel4, null); jPanel1.add(jPanel5, null); jPanel5.add(deviceChoice2, null); jPanel5.add(deviceField5, null); jPanel4.add(deviceChoice1, null); jPanel4.add(deviceField2, null); jPanel1.add(jPanel6, null); jPanel1.add(jPanel2, null); jPanel2.add(deviceField3, null); jPanel2.add(deviceField4, null); jPanel1.add(jPanel3, null); this.getContentPane().add(jPanel1, null); }