Refine search
public ReferenceCameraCalibrationConfigurationWizard(ReferenceCamera referenceCamera) { this.referenceCamera = referenceCamera; panelLensCalibration = new JPanel(); panelLensCalibration.setBorder(new TitledBorder(null, "Lens Calibration", TitledBorder.LEADING, TitledBorder.TOP, null, null)); contentPanel.add(panelLensCalibration); panelLensCalibration.setLayout(new FormLayout( new ColumnSpec[] {FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),}, new RowSpec[] {FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,})); startLensCalibrationBtn = new JButton(startCalibration); panelLensCalibration.add(startLensCalibrationBtn, "2, 2, 3, 1"); lblApplyCalibration = new JLabel("Apply Calibration?"); panelLensCalibration.add(lblApplyCalibration, "2, 4, right, default"); calibrationEnabledChk = new JCheckBox(""); panelLensCalibration.add(calibrationEnabledChk, "4, 4"); }
public ImageCameraConfigurationWizard(ImageCamera camera) { this.camera = camera; panelGeneral = new JPanel(); contentPanel.add(panelGeneral); panelGeneral.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), "General", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); panelGeneral.setLayout(new FormLayout( new ColumnSpec[] {FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,}, new RowSpec[] {FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,})); lblSourceUrl = new JLabel("Source URL"); panelGeneral.add(lblSourceUrl, "2, 2, right, default"); textFieldSourceUrl = new JTextField(); panelGeneral.add(textFieldSourceUrl, "4, 2, fill, default"); textFieldSourceUrl.setColumns(10); btnBrowse = new JButton(browseAction); panelGeneral.add(btnBrowse, "6, 2"); }
null, null)); contentPanel.add(panel); panel.setLayout(new FormLayout( new ColumnSpec[] {FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,}, panel.add(btnResetPipeline, "4, 2"); JLabel lblWarningThisFeeder = new JLabel("Warning: This feeder is incomplete and experimental. Use at your own risk."); lblWarningThisFeeder.setFont(new Font("Lucida Grande", Font.PLAIN, 16)); lblWarningThisFeeder.setForeground(Color.RED);
public DimensionEditor() { m_panel = new JPanel(); FormLayout layout = new FormLayout("pref,5px,pref,10px,pref,5px,pref,pref:grow", "pref"); m_panel.setLayout(layout); CellConstraints cc = new CellConstraints(); m_panel.add(new JLabel(I18N.getLocalizedMessage("width")), cc.xy(1, 1)); m_panel.add(m_width, cc.xy(3, 1)); m_panel.add(new JLabel(I18N.getLocalizedMessage("height")), cc.xy(5, 1)); m_panel.add(m_height, cc.xy(7, 1)); m_panel.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2)); m_width.setEnabled(false); m_height.setEnabled(false); }
panel.setBorder(new TitledBorder(null, "TCP", TitledBorder.LEADING, TitledBorder.TOP, null, null)); contentPanel.add(panel); panel.setLayout(new FormLayout(new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("right:default"), FormSpecs.DEFAULT_ROWSPEC,})); JLabel lblIpAddress = new JLabel("IP Address"); contentPanel.add(lblIpAddress, "2, 2, right, default"); ipAddress.setColumns(5); JLabel lblPort = new JLabel("Port"); contentPanel.add(lblPort, "2, 4, right, default");
public WebcamConfigurationWizard(Webcams camera) { this.camera = camera; panelGeneral = new JPanel(); contentPanel.add(panelGeneral); panelGeneral.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null), "General", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0))); panelGeneral.setLayout(new FormLayout( new ColumnSpec[] {FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),}, new RowSpec[] {FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,})); JLabel lblDeviceId = new JLabel("Device ID"); panelGeneral.add(lblDeviceId, "2, 2, right, default"); Object[] deviceIds = null; try { deviceIds = camera.getDeviceIds().toArray(new String[] {}); } catch (Exception e) { // TODO: Show an error to the use when we can't get the list of device IDs } comboBoxDeviceId = new JComboBox(deviceIds); panelGeneral.add(comboBoxDeviceId, "4, 2, left, default"); chckbxGray = new JCheckBox("Force Grayscale?"); panelGeneral.add(chckbxGray, "2, 4, 3, 1"); }
public EncodingSelectorView() { this.defaultEncoding = new JRadioButton(); this.otherEncoding = new JRadioButton(); this.encodingChoices = new JComboBox(); this.defaultEncodingLabel = new JLabel(); ButtonGroup group = new ButtonGroup(); group.add(defaultEncoding); group.add(otherEncoding); FormLayout layout = new FormLayout("pref, 3dlu, pref", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.append(defaultEncoding, defaultEncodingLabel); builder.append(otherEncoding, encodingChoices); setLayout(new BorderLayout()); add(builder.getPanel()); }
public StandardPanelComponent() { super(); dataMapName = new JLabel(); dataMapName.setFont(dataMapName.getFont().deriveFont(1)); superclassPackage = new JTextField(); FormLayout layout = new FormLayout( "right:77dlu, 3dlu, fill:200:grow, 3dlu", ""); builder = new DefaultFormBuilder(layout); builder.append(dataMapName); builder.nextLine(); builder.append("Superclass Package:", superclassPackage); setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.CENTER); }
public EntitySyncDialog() { removeFKs = new JCheckBox(); removeFKs.setSelected(true); updateButton = new JButton("Continue"); cancelButton = new JButton("Cancel"); getRootPane().setDefaultButton(updateButton); // assemble FormLayout layout = new FormLayout("pref, 3dlu, pref", "p, 3dlu"); PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); CellConstraints cc = new CellConstraints(); builder.add(removeFKs, cc.xy(1, 1)); builder.add(new JLabel("Remove Object Attributes mapped on Foreign Keys?"), cc .xy(3, 1)); JPanel buttons = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(updateButton); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); contentPane.add(builder.getPanel(), BorderLayout.CENTER); contentPane.add(buttons, BorderLayout.SOUTH); setTitle("Synchronize ObjEntity with DbEntity"); }
panel1.setLayout(new BorderLayout(0, 0)); rootPane.add(panel1, BorderLayout.NORTH); final JLabel label1 = new JLabel(); this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle("net/groboclown/p4plugin/P4Bundle").getString("configuration.stack.title")); panel1.add(myAddItemButton, BorderLayout.EAST); final JPanel panel2 = new JPanel(); panel2.setLayout(new FormLayout("fill:d:grow", "center:d:grow")); rootPane.add(panel2, BorderLayout.CENTER); final JScrollPane scrollPane1 = new JScrollPane();
private void initComponents() { setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, }, new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, RowSpec.decode("top:default"), FormSpecs.LINE_GAP_ROWSPEC, })); lblDate = new JLabel(""); add(lblDate, "2, 1"); JPanel innerPanel = new RoundedPanel() { innerPanel.setLayout(new FormLayout( new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("25dlu"), FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("50dlu:grow"), FormSpecs.RELATED_GAP_COLSPEC, }, FormSpecs.LABEL_COMPONENT_GAP_ROWSPEC, })); lblIcon = new JLabel(""); lblIcon.setHorizontalAlignment(SwingConstants.CENTER); innerPanel.add(lblIcon, "2, 2, 1, 3, center, center"); lblTitle = new JLabel(); TmmFontHelper.changeFont(lblTitle, Font.BOLD);
/** * constructor for creating a device */ public WolDeviceDialog() { super(BUNDLE.getString("tmm.wakeonlandevice"), "wolDialog"); //$NON-NLS-1$ setResizable(false); getContentPane().setLayout(new FormLayout( new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(100px;default)"), FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("max(100px;default)"), FormFactory.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, })); JLabel lblDeviceName = new JLabel(BUNDLE.getString("Settings.devicename")); //$NON-NLS-1$ getContentPane().add(lblDeviceName, "2, 2, right, default"); tfName = new JTextField(); getContentPane().add(tfName, "4, 2, 5, 1, fill, default"); tfName.setColumns(10); JLabel lblMacAddress = new JLabel(BUNDLE.getString("Settings.macaddress")); //$NON-NLS-1$ getContentPane().add(lblMacAddress, "2, 4, right, default"); tfMacAddress = new JTextField(); getContentPane().add(tfMacAddress, "4, 4, 5, 1, fill, default"); tfMacAddress.setColumns(10); JButton btnSave = new JButton(BUNDLE.getString("Button.save")); //$NON-NLS-1$ btnSave.setAction(actionSave); getContentPane().add(btnSave, "6, 6"); JButton btnCancel = new JButton(BUNDLE.getString("Button.cancel")); //$NON-NLS-1$ btnCancel.setAction(actionCancel); getContentPane().add(btnCancel, "8, 6"); }
public MergerTokenSelectorView() { this.checkAllLabel = new JLabel("Check All Operations"); this.reverseAll = new JButton("Reverse All Operations"); PanelBuilder builder = new PanelBuilder(new FormLayout( "fill:min(50dlu;pref):grow", "p, 3dlu, fill:40dlu:grow"));
private void initView() { JLabel note = new JLabel( "* Custom sequences are supported on Oracle and Postgres"); note.setFont(note.getFont().deriveFont(Font.ITALIC).deriveFont(11f)); customPKName = new TextAdapter(new JTextField()) { protected void updateModel(String text) throws ValidationException { setPKName(text); } }; customPKSize = new TextAdapter(new JTextField()) { protected void updateModel(String text) throws ValidationException { setPKSize(text); } }; // assemble DefaultFormBuilder builder = new DefaultFormBuilder(new FormLayout( "right:70dlu, 3dlu, 20dlu, 3dlu, fill:177dlu", "")); builder.setDefaultDialogBorder(); builder.append("Sequence Name:", customPKName.getComponent(), 3); builder.append("Cached PK Size:", customPKSize.getComponent()); builder.nextLine(); builder.append("", note, 3); setLayout(new BorderLayout()); add(builder.getPanel(), BorderLayout.CENTER); }
public TableSelectorView() { this.checkAllLabel = new JLabel("Check All Tables"); PanelBuilder builder = new PanelBuilder(new FormLayout( "fill:min(50dlu;pref):grow", "p, 3dlu, fill:40dlu:grow"));
private JPanel buildInfoAreaPane() { JLabel infoLabel = new JLabel(ValidationResultViewFactory.getInfoIcon()); infoArea = new JTextArea(1, 38); infoArea.setEditable(false); infoArea.setOpaque(false); FormLayout layout = new FormLayout("pref, 2dlu, default", "pref"); //$NON-NLS-1$ //$NON-NLS-2$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(infoLabel, cc.xy(1, 1)); builder.add(infoArea, cc.xy(3, 1)); infoAreaPane = builder.getPanel(); infoAreaPane.setVisible(false); return infoAreaPane; }
FormLayout layout = new FormLayout("center:pref,2dlu,pref,70dlu,24px,10px", "fill:pref"); setLayout(layout); add(m_color_well, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.CENTER)); add(new JLabel("L&F"), cc.xy(3, 1));
JLabel returnValueHelp = new JLabel("(first parameter will be used as return value)"); returnValueHelp.setFont(returnValueHelp.getFont().deriveFont(10)); this.returnsValue.setToolTipText(returnValueHelp.getText()); FormLayout layout = new FormLayout("right:pref, 3dlu, fill:200dlu", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder();
private JPanel buildInfoAreaPane() { JLabel infoLabel = new JLabel(ValidationResultViewFactory.getInfoIcon()); infoArea = new JTextArea(1, 38); infoArea.setEditable(false); infoArea.setOpaque(false); FormLayout layout = new FormLayout("pref, 2dlu, default", "pref"); //$NON-NLS-1$ //$NON-NLS-2$ PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); builder.add(infoLabel, cc.xy(1, 1)); builder.add(infoArea, cc.xy(3, 1)); infoAreaPane = builder.getPanel(); infoAreaPane.setVisible(false); return infoAreaPane; }
private void init(String message) { progressBar = new JProgressBar(); statusLabel = new JLabel(message, SwingConstants.LEFT); JLabel messageLabel = new JLabel(message, SwingConstants.LEFT); cancelButton = new JButton("Cancel"); // assemble CellConstraints cc = new CellConstraints(); FormLayout layout = new FormLayout("fill:max(250dlu;pref)", "p, 3dlu, p, 3dlu, p"); PanelBuilder builder = new PanelBuilder(layout); builder.setDefaultDialogBorder(); builder.add(messageLabel, cc.xy(1, 1)); builder.add(progressBar, cc.xy(1, 3)); builder.add(statusLabel, cc.xy(1, 5)); getRootPane().setDefaultButton(cancelButton); JPanel buttons = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); Container root = getContentPane(); root.setLayout(new BorderLayout(5, 5)); root.add(builder.getPanel(), BorderLayout.CENTER); root.add(buttons, BorderLayout.SOUTH); setResizable(false); pack(); ModelerUtil.centerWindow(getOwner(), this); }