protected JPanel createStatusArea() { JPanel statusArea = new JPanel(); JLabel status = new JLabel("No log records to display."); _statusLabel = status; status.setHorizontalAlignment(JLabel.LEFT); statusArea.setBorder(BorderFactory.createEtchedBorder()); statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); statusArea.add(status); return (statusArea); }
private void init() { model.addViewerModelListener(this); setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), NLS.nls("SOURCE.PANEL.TITLE"))); setLayout(new BorderLayout()); sourceCodeArea = new JTextArea(); add(new JScrollPane(sourceCodeArea), BorderLayout.CENTER); }
private ExEntryPanel() { setBorder(BorderFactory.createEtchedBorder()); label = new JLabel(" "); entry = new ExTextField(); entry.setBorder(null); setFontForElements(); setForeground(entry.getForeground()); setBackground(entry.getBackground()); label.setForeground(entry.getForeground()); label.setBackground(entry.getBackground()); GridBagLayout layout = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); setLayout(layout); gbc.gridx = 0; layout.setConstraints(this.label, gbc); add(this.label); gbc.gridx = 1; gbc.weightx = 1.0; gbc.fill = GridBagConstraints.HORIZONTAL; layout.setConstraints(entry, gbc); add(entry); setBorder(BorderFactory.createEtchedBorder()); adapter = new ComponentAdapter() { public void componentResized(ComponentEvent e) { positionPanel(); } }; }
protected JPanel createStatusArea() { JPanel statusArea = new JPanel(); JLabel status = new JLabel("No log records to display."); _statusLabel = status; status.setHorizontalAlignment(JLabel.LEFT); statusArea.setBorder(BorderFactory.createEtchedBorder()); statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); statusArea.add(status); return (statusArea); }
frame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE); JPanel panel = new JPanel (); panel.setBorder (BorderFactory.createTitledBorder (BorderFactory.createEtchedBorder (), "Table Title", TitledBorder.CENTER,
imageLabel.addMouseListener(myMouseAdapter); imageLabel.addMouseMotionListener(myMouseAdapter); imageLabel.setBorder(BorderFactory.createEtchedBorder()); JPanel btnPanel = new JPanel(); btnPanel.add(saveImageBtn); btnPanel.add(clearImageBtn);
protected JPanel getSamplePanel() { if (samplePanel == null) { Border titledBorder = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), ("Sample")); Border empty = BorderFactory.createEmptyBorder(5, 10, 10, 10); Border border = BorderFactory.createCompoundBorder(titledBorder, empty); samplePanel = new JPanel(); samplePanel.setLayout(new BorderLayout()); samplePanel.setBorder(border); samplePanel.add(getSampleTextField(), BorderLayout.CENTER); } return samplePanel; }
JPanel pnl = new JPanel(new MigLayout("fill")); JLabel label = new JLabel(text, JLabel.CENTER); label.setBorder(BorderFactory.createEtchedBorder());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel contentPane = new JPanel(); contentPane.setOpaque(true); contentPane.setBackground(Color.WHITE); contentPane.setLayout(new BorderLayout(hgap, vgap)); topPanel = new JPanel(); topPanel.setOpaque(true); topPanel.setBackground(Color.WHITE); topPanel.setBorder( BorderFactory.createTitledBorder("Top Panel")); tfield1 = new JTextField(10); tfield1.setBorder( BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder( EtchedBorder.RAISED, Color.GRAY , Color.DARK_GRAY), "JTextField")); JPanel comboPanel = new JPanel(); cbox1 = new JComboBox(data); cbox1.setBorder( BorderFactory.createTitledBorder("JComboBox")); topPanel.add(tfield1); topPanel.add(cbox1);
public PreviewPane() { setLayout(new BorderLayout(5,5)); setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); add(new JLabel("Preview:"), BorderLayout.NORTH); label = new JLabel(); label.setBackground(Color.WHITE); label.setOpaque(true); label.setPreferredSize(new Dimension(200, 200)); maxImgWidth = 195; label.setBorder(BorderFactory.createEtchedBorder()); add(label, BorderLayout.CENTER); }
private void init() { model.addViewerModelListener(this); setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), NLS.nls("AST.PANEL.TITLE"))); setLayout(new BorderLayout()); tree = new JTree((TreeNode) null); tree.addTreeSelectionListener(this); tree.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { if (e.isPopupTrigger()) { TreePath path = tree.getClosestPathForLocation(e.getX(), e.getY()); tree.setSelectionPath(path); JPopupMenu menu = new ASTNodePopupMenu(model, (Node) path.getLastPathComponent()); menu.show(tree, e.getX(), e.getY()); } } }); add(new JScrollPane(tree), BorderLayout.CENTER); }
private void init() { JTextArea errorArea = new JTextArea(); errorArea.setEditable(false); errorArea.setText(exc.getMessage() + "\n"); getContentPane().setLayout(new BorderLayout()); JPanel messagePanel = new JPanel(new BorderLayout()); messagePanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createRaisedBevelBorder(), BorderFactory .createTitledBorder(BorderFactory.createEtchedBorder(), NLS.nls("COMPILE_ERROR.PANEL.TITLE")))); messagePanel.add(new JScrollPane(errorArea), BorderLayout.CENTER); getContentPane().add(messagePanel, BorderLayout.CENTER); JPanel btnPane = new JPanel(new FlowLayout(FlowLayout.RIGHT)); okBtn = new JButton(NLS.nls("COMPILE_ERROR.OK_BUTTON.CAPTION")); okBtn.addActionListener(this); btnPane.add(okBtn); getRootPane().setDefaultButton(okBtn); getContentPane().add(btnPane, BorderLayout.SOUTH); pack(); setLocationRelativeTo(getParent()); setVisible(true); }
protected JPanel createStatusArea() { JPanel statusArea = new JPanel(); JLabel status = new JLabel("No log records to display."); _statusLabel = status; status.setHorizontalAlignment(JLabel.LEFT); statusArea.setBorder(BorderFactory.createEtchedBorder()); statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); statusArea.add(status); return (statusArea); }
public PreviewPane() { setLayout(new BorderLayout(5,5)); setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); add(new JLabel("Preview:"), BorderLayout.NORTH); label = new JLabel(); label.setBackground(Color.WHITE); label.setOpaque(true); label.setPreferredSize(new Dimension(200, 200)); maxImgWidth = 195; label.setBorder(BorderFactory.createEtchedBorder()); add(label, BorderLayout.CENTER); }
private void init() { model.addViewerModelListener(this); xPathArea = new JTextArea(); setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), NLS.nls("XPATH.PANEL.TITLE"))); add(new JScrollPane(xPathArea), NLS.nls("XPATH.PANEL.EXPRESSION")); add(new EvaluationResultsPanel(model), NLS.nls("XPATH.PANEL.RESULTS")); setPreferredSize(new Dimension(-1, 200)); }
JScrollPane scroll1 = new JScrollPane(inputBox); JScrollPane scroll2 = new JScrollPane(outputBox); scroll1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Type a sentence to tag: ")); scroll2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Tagged sentence: ")); JPanel buttonPanel = new JPanel(); buttonPanel.setBackground(Color.WHITE); buttonPanel.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); FlowLayout fl = new FlowLayout(); fl.setAlignment(FlowLayout.RIGHT); buttonPanel.setLayout(fl); tagButton.setText("Tag sentence!"); tagButton.setBackground(Color.WHITE); buttonPanel.add(tagButton);
protected JPanel createStatusArea() { JPanel statusArea = new JPanel(); JLabel status = new JLabel("No log records to display."); _statusLabel = status; status.setHorizontalAlignment(JLabel.LEFT); statusArea.setBorder(BorderFactory.createEtchedBorder()); statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); statusArea.add(status); return (statusArea); }
scrollPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); final JPanel south = new JPanel(new BorderLayout()); final JLabel labelFileExtensions = new JLabel("File extensions: "); extensions.setText(getExtensions()); BorderFactory.createEtchedBorder()); border = BorderFactory.createCompoundBorder(border, BorderFactory.createEmptyBorder(5, 5, 5, 5)); south.setBorder(border); south.add(labelFileExtensions, BorderLayout.WEST); south.add(extensions, BorderLayout.CENTER); south.add(changeDirButton, BorderLayout.SOUTH);
protected JPanel createStatusArea() { JPanel statusArea = new JPanel(); JLabel status = new JLabel("No log records to display."); _statusLabel = status; status.setHorizontalAlignment(JLabel.LEFT); statusArea.setBorder(BorderFactory.createEtchedBorder()); statusArea.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); statusArea.add(status); return (statusArea); }
jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) ); messagePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel3.setOpaque(true); messagePanel.add(jLabel3); jLabel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); jLabel4.setOpaque(true); messagePanel.add(jLabel4); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)