/** * Creates new form MainWindow */ public MainWindow() { initComponents(); uriField.setText(Main.Config.DEFAULT_BASE_URI); ((FlowLayout) messagePanel.getLayout()).setAlignment(FlowLayout.LEADING); messagePanel.removeAll(); messagePanel.revalidate(); }
buttonPanel.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); FlowLayout fl = new FlowLayout(); fl.setAlignment(FlowLayout.RIGHT); buttonPanel.setLayout(fl); tagButton.setText("Tag sentence!");
JPanel buttonPanel = new JPanel(); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); buttonPanel.setLayout(layout);
FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.CENTER); c.setLayout(layout); c.add(panel);
JPanel jpSouth = new JPanel(); FlowLayout flowLayout_1 = (FlowLayout) jpSouth.getLayout(); flowLayout_1.setAlignment(FlowLayout.TRAILING);
JPanel panel = new JPanel(); // your toolbar panel FlowLayout flowLayout = (FlowLayout) panel.getLayout(); // flowlayout flowLayout.setAlignment(FlowLayout.LEFT); // alignment to left contentPane.add(panel, BorderLayout.NORTH); // adding this panel to original frame
private void initComponents() { labelText.setPreferredSize(new Dimension(300, 20)); labelText.setHorizontalTextPosition(JLabel.LEFT); progress.setPreferredSize(new Dimension(100, 15)); final JLabel labRuleHint = new JLabel("Rule: "); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); panel.setLayout(layout); panel.add(labelText); panel.add(progress); panel.add(labRuleHint); panel.add(labelRuleName); panel.setOpaque(false); panel.setBorder(javax.swing.BorderFactory.createEmptyBorder()); }
private void initComponents() { labelText.setPreferredSize(new Dimension(300, 20)); labelText.setHorizontalTextPosition(JLabel.LEFT); progress.setPreferredSize(new Dimension(100, 15)); final JLabel labRuleHint = new JLabel("Rule: "); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); panel.setLayout(layout); panel.add(labelText); panel.add(progress); panel.add(labRuleHint); panel.add(labelRuleName); panel.setOpaque(false); panel.setBorder(javax.swing.BorderFactory.createEmptyBorder()); }
private void initComponents() { labelText.setPreferredSize(new Dimension(300, 20)); labelText.setHorizontalTextPosition(JLabel.LEFT); progress.setPreferredSize(new Dimension(100, 15)); final JLabel labRuleHint = new JLabel("Rule: "); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); panel.setLayout(layout); panel.add(labelText); panel.add(progress); panel.add(labRuleHint); panel.add(labelRuleName); panel.setOpaque(false); panel.setBorder(javax.swing.BorderFactory.createEmptyBorder()); }
private void createMainPanel() { panel = new PopupPanel(); panel.setName("Main Panel"); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.CENTER); panel.setLayout(flowLayout); }
private JPanel getPanelTitle() { if (panelTitle == null) { final FlowLayout flowLayout = new FlowLayout(); flowLayout.setHgap(10); flowLayout.setAlignment(FlowLayout.LEFT); flowLayout.setVgap(10); panelTitle = new JPanel(); panelTitle.setLayout(flowLayout); panelTitle.setPreferredSize(new Dimension(40, 30)); panelTitle.add(getLabelTitle(), null); } return panelTitle; }
/** * Creates the Dialog and returns the Result * @param MessageOption that was pressed */ private int showConfirmDialog() { JTextField tf = new JTextField(); JPanel calPanel = new JPanel(); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEFT); layout.setHgap(0); layout.setVgap(0); calPanel.setLayout(layout); calPanel.add(_calendarBox); Object[] msg = { _message, calPanel }; int result = JOptionPane.showConfirmDialog(_parentComponent, msg, _title, _optionType, _messageType); return result; } }
private JPanel getPanelButtons() { if (panelButtons == null) { final FlowLayout flowLayout2 = new FlowLayout(); flowLayout2.setAlignment(FlowLayout.RIGHT); flowLayout2.setVgap(10); flowLayout2.setHgap(10); panelButtons = new JPanel(); panelButtons.setLayout(flowLayout2); panelButtons.setPreferredSize(new Dimension(200, 45)); panelButtons.add(getCheckBoxIncludeSubdirs(), null); panelButtons.add(getButtonCancel(), null); panelButtons.add(getButtonOK(), null); } return panelButtons; }
/** * Return the CloseButtonPanelFlowLayout property value. * @return java.awt.FlowLayout */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.FlowLayout getCloseButtonPanelFlowLayout() { java.awt.FlowLayout ivjCloseButtonPanelFlowLayout = null; try { /* Create part */ ivjCloseButtonPanelFlowLayout = new java.awt.FlowLayout(); ivjCloseButtonPanelFlowLayout.setAlignment(java.awt.FlowLayout.RIGHT); ivjCloseButtonPanelFlowLayout.setHgap(10); } catch (java.lang.Throwable ivjExc) { handleException(ivjExc); }; return ivjCloseButtonPanelFlowLayout; } /**
public void initGUI() { setLayout(new BorderLayout()); panel = new JPanel(); FlowLayout flowLayout = (FlowLayout) panel.getLayout(); flowLayout.setAlignment(FlowLayout.LEFT); lblImportAFolder = new JLabel(Messages.getString("LocalExport.exp") + StringUtil.COLON); //$NON-NLS-1$ panel.add(lblImportAFolder); comboBoxImgFormat = new JComboBox<>(new DefaultComboBoxModel<>(EXPORT_FORMAT)); panel.add(comboBoxImgFormat); add(panel, BorderLayout.NORTH); btnNewButton = new JButton(Messages.getString("LocalExport.options")); //$NON-NLS-1$ btnNewButton.addActionListener(e -> showExportingOptions()); panel.add(btnNewButton); add(exportTree, BorderLayout.CENTER); }
public FlowView() { FlowLayout flow = new FlowLayout(FlowLayout.LEFT, 5, 5); this.setOpaque(false); this.setBorder(null); flow.setAlignment(FlowLayout.LEFT); this.setLayout(flow); } }
public ShapeHistory () { panel.setNoInsets(); panel.setPreferredSize(new Dimension(BOARD_WIDTH, 80)); panel.setVisible(false); FlowLayout layout = new FlowLayout(); layout.setAlignment(FlowLayout.LEADING); panel.setLayout(layout); }
public void initGUI() { setLayout(new BorderLayout()); FlowLayout flowLayout = (FlowLayout) panel.getLayout(); flowLayout.setAlignment(FlowLayout.LEFT); final JLabel lblDest = new JLabel(Messages.getString("SendDicomView.destination") + StringUtil.COLON); //$NON-NLS-1$ panel.add(lblDest); AbstractDicomNode.addTooltipToComboList(comboNode); panel.add(comboNode); add(panel, BorderLayout.NORTH); add(exportTree, BorderLayout.CENTER); }
public MiscTab(IBurpExtenderCallbacks callbacks) { FlowLayout flow = new FlowLayout(); flow.setAlignment(FlowLayout.LEFT); this.setLayout(flow); Box mainBox = Box.createVerticalBox(); payloadProcessor = new IntruderPayloadProcessor(); callbacks.registerIntruderPayloadProcessor(payloadProcessor); beautifierFactory = new MessageBeautifierFactory(callbacks); mainBox.add(beautifierFactory.getUiComponent()); mainBox.add(payloadProcessor.getUiComponent()); this.add(mainBox); }
public WtoolBar(String barName, int position) { FlowLayout flowLayout = (FlowLayout) getLayout(); flowLayout.setVgap(0); flowLayout.setHgap(0); flowLayout.setAlignment(FlowLayout.LEADING); this.barName = barName; this.barPosition = position; this.setAlignmentX(LEFT_ALIGNMENT); this.setAlignmentY(TOP_ALIGNMENT); setOpaque(false); addSeparator(SEPARATOR_2x24); }