Package java.awt

Examples of java.awt.GridLayout


    private DatePickerDialog parent;

    public MonthPanel(DatePickerDialog parent, Calendar c) {
        this.parent = parent;
       
        GridLayout g = new GridLayout();
        g.setColumns(7);
        g.setRows(0);
        setLayout(g);
       
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.YEAR, c.get(Calendar.YEAR));
        cal.set(Calendar.MONTH, c.get(Calendar.MONTH));
View Full Code Here


        new TitledBorder(getResources().getString(
            "csvexportdialog.exported-bands")); //$NON-NLS-1$
    exportTypePanel.setBorder(tb);

    final JPanel rowTypePanel = new JPanel();
    rowTypePanel.setLayout(new GridLayout(2, 3, 5, 2));
    rowTypePanel.add(cbxEnableReportHeader);
    rowTypePanel.add(cbxEnableGroupHeader);
    rowTypePanel.add(cbxEnableItemband);
    rowTypePanel.add(cbxEnableReportFooter);
    rowTypePanel.add(cbxEnableGroupFooter);
View Full Code Here

   * @return the created security config panel.
   */
  private JPanel createSecurityConfigPanel()
  {
    final JPanel pnlSecurityConfig = new JPanel();
    pnlSecurityConfig.setLayout(new GridLayout());
    pnlSecurityConfig.add(rbSecurityNone);
    pnlSecurityConfig.add(rbSecurity40Bit);
    pnlSecurityConfig.add(rbSecurity128Bit);

    final ButtonGroup btGrpSecurity = new ButtonGroup();
View Full Code Here

    final Action saveAction = new SaveAction();
    final Action loadAction = new LoadAction();
    final Action newAction = new NewAction();

    final JPanel buttonHolder = new JPanel();
    buttonHolder.setLayout(new GridLayout(1, 4, 5, 5));
    buttonHolder.add(new JButton(newAction));
    buttonHolder.add(new JButton(loadAction));
    buttonHolder.add(new JButton(saveAction));
    buttonHolder.add(new JButton(closeAction));
View Full Code Here

    final JPanel panel = new JPanel();
    panel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    panel.setBorder(new EmptyBorder(5, 5, 5, 5));

    final JPanel buttonHolder = new JPanel();
    buttonHolder.setLayout(new GridLayout(1, 4, 5, 5));
    buttonHolder.add(new JButton(importAction));
    buttonHolder.add(new JButton(loadAction));
    buttonHolder.add(new JButton(saveAction));
    buttonHolder.add(new JButton(closeAction));
View Full Code Here

   */
  private JPanel createEditPane()
  {

    final JPanel buttonHolder = new JPanel();
    buttonHolder.setLayout(new GridLayout(1, 4, 5, 5));
    buttonHolder.add(new JButton(new CancelAction()));
    buttonHolder.add(new JButton(new UpdateAction()));

    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
View Full Code Here

    listPanel.setLayout(new BorderLayout());
    listPanel.add(enumEntryEditField, BorderLayout.NORTH);
    listPanel.add(new JScrollPane(enumEntryList), BorderLayout.CENTER);

    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(5, 1));
    buttonPanel.add(new JButton(new AddEnumEntryAction()));
    buttonPanel.add(new JButton(new RemoveEnumEntryAction()));
    buttonPanel.add(new JButton(new UpdateEnumEntryAction()));
    buttonPanel.add(new JPanel());
    buttonPanel.add(new JButton(new SetBooleanEnumEntryAction()));
View Full Code Here

   * @return the type selection panel.
   */
  private JPanel createTypeSelectionPane()
  {
    final JPanel panel = new JPanel();
    panel.setLayout(new GridLayout(3, 1));

    rbText = new JRadioButton(new SelectTypeAction
        (resources.getString("config-description-editor.type-text"), ConfigDescriptionEditor.TYPE_TEXT)); //$NON-NLS-1$
    rbClass = new JRadioButton(new SelectTypeAction
        (resources.getString("config-description-editor.type-class"),
View Full Code Here

    public final static String defaultKey = "StatusLightPanel";
    protected String key = defaultKey;

    public StatusLightPanel() {
        super();
        setLayout(new GridLayout(1, 0));
        reset();
    }
View Full Code Here

        JPanel holder = new JPanel(new BorderLayout());

        holder.add(drawingAttributes.getGUI(), BorderLayout.CENTER);

        JPanel btnPanel = new JPanel(new GridLayout(3, 1));

        JButton redrawSelected = new JButton("Set Colors for Selected");
        btnPanel.add(redrawSelected);

        JButton redrawAll = new JButton("Set Colors For All");
View Full Code Here

TOP

Related Classes of java.awt.GridLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.