Package java.awt

Examples of java.awt.GridLayout


    } // end getRectangle

    public abstract String getServerName();

    public java.awt.Component getGUI() {
        JPanel panel = new JPanel(new GridLayout(0, 1));
        JButton parameterButton = new JButton("Adjust Parameters");
        parameterButton.setActionCommand(Layer.DisplayPropertiesCmd);

        if (layer != null) {
            parameterButton.addActionListener(layer);
View Full Code Here


    }

    protected JComponent getToolWidgets() {
        JPanel iconBar = new JPanel();
        // this parameters should be read from properties!
        iconBar.setLayout(new GridLayout(2, 4));
        ButtonGroup bg = new ButtonGroup();
        JToggleButton btn = null;
        boolean setFirstButtonSelected = true;

        for (Iterator it = getLoaders(); it.hasNext();) {
View Full Code Here

        buttonYes.requestFocus();
    }

    private void buildDialog() {
        this.setResizable(false);
        this.getContentPane().setLayout(new GridLayout());

        // Input panel
        panel.setLayout(Layout.getGBL());

        textMessage = ComponentFactory.getTextArea();
View Full Code Here

        this.setVisible(true);
    }

    private void buildDialog() {
        this.setResizable(false);
        this.getContentPane().setLayout(new GridLayout());

        // Input panel
        panel.setLayout(Layout.getGBL());

        textMessage = ComponentFactory.getTextArea();
View Full Code Here

    protected JPanel guiPanel = null;

    public Component getGUI() {
        if (guiPanel == null) {
            JPanel gp = new JPanel();
            gp.setLayout(new GridLayout(0, 1));
            String interString = i18n.get(ASRPLayer.class,
                    "showCoverageCheck",
                    "Show Coverage");
            JCheckBox coverageCheck = new JCheckBox(interString, getShowCoverage());
            interString = i18n.get(ASRPLayer.class,
View Full Code Here

      }
      {
        JPanel panel = new JPanel(new BorderLayout());
        contentPane.add(panel, "chat");
        {
          JPanel topPanel = new JPanel(new GridLayout(1, 2));
          panel.add(topPanel);
          {
            topPanel.add(new JScrollPane(messageList = new JList()));
            messageList.setModel(new DefaultListModel());
          }
View Full Code Here

      }
      {
        JPanel panel = new JPanel(new BorderLayout());
        contentPane.add(panel, "chat");
        {
          JPanel topPanel = new JPanel(new GridLayout(1, 2));
          panel.add(topPanel);
          {
            topPanel.add(new JScrollPane(messageList = new JList()));
            messageList.setModel(new DefaultListModel());
          }
View Full Code Here

          }
        });
      }

      Panel panel = new Panel(null, null);
      panel.setProperty("layout", new GridLayout(1, 2));
      TextField widthField = new TextField(panel, null);
      widthField.addValidator(new IntegerValidator());
      widthField.setProperty("key", "width");
      TextField heightField = new TextField(panel, null);
      heightField.addValidator(new IntegerValidator());
View Full Code Here

    * @return container with checkboxes
    */
   private Panel createLogLevelBoxes()
   {
      Panel container = new Panel();
      container.setLayout(new GridLayout(1, 7));

      Checkbox error = new Checkbox("ERROR", null, true);
      error.addItemListener(new LogLevelListener());
      container.add(error);

View Full Code Here

        message = new JLabel();
        message.setFont(new Font("Dialog", Font.PLAIN, 15));
        message.setOpaque(true);
        message.setBackground(Color.WHITE);

        JPanel p = new JPanel(new GridLayout(2,1));
        p.add(title);
        p.add(message);
       
        warningIcon.setVisible(false);
        add(warningIcon, BorderLayout.WEST);
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.