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); }
Border line, raisedbevel, loweredbevel, title, empty; line = BorderFactory.createLineBorder(Color.black); raisedbevel = BorderFactory.createRaisedBevelBorder(); loweredbevel = BorderFactory.createLoweredBevelBorder(); title = BorderFactory.createTitledBorder("");
cbox2 = new JComboBox(data); cbox2.setBorder( BorderFactory.createRaisedBevelBorder()); centerPanel.add(tfield2); centerPanel.add(cbox2);
private void prepareSearchPanel() { if (searchpanel == null) { searchpanel = new JPanel(); JLabel lbl = new JLabel(NbBundle.getMessage(TreeView.class, "LBL_QUICKSEARCH")); //NOI18N searchpanel.setLayout(new BorderLayout(5, 0)); searchpanel.add(lbl, BorderLayout.WEST); searchpanel.add(searchTextField, BorderLayout.CENTER); lbl.setLabelFor(searchTextField); searchpanel.setBorder(BorderFactory.createRaisedBevelBorder()); } }
public JToolBar getToolBar() { if (toolbar == null) { toolbar = new JToolBar(JToolBar.HORIZONTAL); toolbar.setFloatable(false); toolbar.setBorder(BorderFactory.createRaisedBevelBorder()); } return toolbar; }
private static JTextArea createArea(String text, boolean lineWrap, int columns) { JTextArea area = new JTextArea(text); area.setBorder(new CompoundBorder(BorderFactory.createRaisedBevelBorder(), new EmptyBorder(3, 5, 3, 5))); area.setLineWrap(lineWrap); area.setWrapStyleWord(true); area.setEditable(false); area.setColumns(columns); return area; }
/** * Creates a tool bar. * * @return the created tool bar. */ protected JToolBar createJToolBar() { JToolBar toolBar = new JToolBar(); toolBar.setRollover(true); toolBar.setFloatable(true); toolBar.setBorder(BorderFactory.createRaisedBevelBorder()); return toolBar; }
/** * Creates a new instance of this class by creating a new JButton with the specified String. * @param text the initial text */ public JButtonCustomizer(String text){ this(new JButton(text)); getButton().setBorder(BorderFactory.createRaisedBevelBorder()); }
private void createEncodingSettings() { encodingLabel = new JLabel("Wikipedia Character Encoding: "); encodingLabel.setBorder(BorderFactory.createRaisedBevelBorder()); encodingLabel.setBounds(10, 230, 200, 25); this.add(encodingLabel); encodingField = new JTextField(); encodingField.setBounds(220, 230, 200, 25); this.add(encodingField); }
public BasicDockableSelection(){ setBorder( BorderFactory.createRaisedBevelBorder() ); painter = new ImagePainter( new Dimension( 300, 200 ) ); removeAll(); setLayout( new GridBagLayout() ); add( painter, new GridBagConstraints( 0, 0, 1, 1, 2.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 0, 0, 0 ), 0, 0 )); add( getList(), new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 0, 0, 0 ), 0, 0 )); revalidate(); }
private void createFullRevisionSettings() { fullRevisionLabel = new JLabel( "Every n-th revision will be a full revision:"); fullRevisionLabel.setBorder(BorderFactory.createRaisedBevelBorder()); fullRevisionLabel.setBounds(10, 10, 270, 25); this.add(fullRevisionLabel); fullRevisionField = new JTextField(); fullRevisionField.setBounds(290, 10, 100, 25); this.add(fullRevisionField); }
private void createOutputPathSettings() { outputLabel = new JLabel("Output Folder: "); outputLabel.setBorder(BorderFactory.createRaisedBevelBorder()); outputLabel.setBounds(10, 10, 150, 25); this.add(outputLabel); outputPathField = new JTextField(); outputPathField.setBounds(170, 10, 200, 25); this.add(outputPathField); }
private void createMinimumCommonSequenceSettings() { minimumCommonSequenceLabel = new JLabel( "Min lenght of a common subsequence:"); minimumCommonSequenceLabel.setBorder(BorderFactory .createRaisedBevelBorder()); minimumCommonSequenceLabel.setBounds(10, 50, 270, 25); this.add(minimumCommonSequenceLabel); minimumCommonSequenceField = new JTextField(); minimumCommonSequenceField.setBounds(290, 50, 100, 25); this.add(minimumCommonSequenceField); }
private void createEncodingSettings() { encodingLabel = new JLabel("Wikipedia Character Encoding: "); encodingLabel.setBorder(BorderFactory.createRaisedBevelBorder()); encodingLabel.setBounds(10, 230, 200, 25); this.add(encodingLabel); encodingField = new JTextField(); encodingField.setBounds(220, 230, 200, 25); this.add(encodingField); }
private void createOutputPathSettings() { outputLabel = new JLabel("Output Folder: "); outputLabel.setBorder(BorderFactory.createRaisedBevelBorder()); outputLabel.setBounds(10, 10, 150, 25); this.add(outputLabel); outputPathField = new JTextField(); outputPathField.setBounds(170, 10, 200, 25); this.add(outputPathField); }
private void createMinimumCommonSequenceSettings() { minimumCommonSequenceLabel = new JLabel( "Min lenght of a common subsequence:"); minimumCommonSequenceLabel.setBorder(BorderFactory .createRaisedBevelBorder()); minimumCommonSequenceLabel.setBounds(10, 50, 270, 25); this.add(minimumCommonSequenceLabel); minimumCommonSequenceField = new JTextField(); minimumCommonSequenceField.setBounds(290, 50, 100, 25); this.add(minimumCommonSequenceField); }
private void initialize() { setBorder(BorderFactory.createCompoundBorder( BorderFactory.createRaisedBevelBorder(), BorderFactory.createEmptyBorder(1, 2, 1, 2))); add(getStatusLabel(), BorderLayout.CENTER); add(getProgressBar(), BorderLayout.EAST); setPreferredSize(new Dimension(500, 28)); }
@Override public void actionPerformed( final ActionEvent event ) { userBox.setBorder( userCheckBox.isSelected() ? BorderFactory.createLoweredBevelBorder() : BorderFactory.createRaisedBevelBorder() ); } } );
public ISOMsgPanel(ISOMsg m, boolean withDump) { super(); this.m = m; setLayout(new BorderLayout()); setBorder(BorderFactory.createRaisedBevelBorder()); setValidFields(); add(createISOMsgTable(), BorderLayout.CENTER); if (withDump) add(createISOMsgDumpPanel(), BorderLayout.SOUTH); } public ISOMsgPanel(ISOMsg m) {
ControlPanel( final MainPanel ap, final Configuration configuration ) { init(); _mainpanel = ap; _configuration = configuration; if ( !_configuration.isUseNativeUI() ) { setBackground( getConfiguration().getGuiBackgroundColor() ); setBorder( BorderFactory.createRaisedBevelBorder() ); } setLayout( new GridLayout( 0, 1, 2, 2 ) ); _order_of_appearance = true; setupControls(); }