Package java.awt

Examples of java.awt.FlowLayout


    mainSplitPane.setLeftComponent(jTabbedPane1);

    //gridBagConstraints);

    boxes.setLayout(new FlowLayout(FlowLayout.LEFT));

    boxes.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(8, 8, 8, 8)));
    boxes.setPreferredSize(new java.awt.Dimension(300, 100));
    boxes.setMinimumSize(new java.awt.Dimension(572, 100));
    boxes.setMaximumSize(new java.awt.Dimension(2000, 100));
    checkBoxPanel.setLayout(new java.awt.GridLayout(3, 0, 0, 5));

    checkBoxPanel.setBorder(new javax.swing.border.CompoundBorder(new javax.swing.border.EtchedBorder(null, java.awt.Color.gray), new javax.swing.border.EmptyBorder(new java.awt.Insets(3, 9, 3, 3))));
    checkBoxPanel.setMaximumSize(new java.awt.Dimension(160, 82));
    checkBoxPanel.setPreferredSize(new java.awt.Dimension(160, 82));
    checkBoxPanel.setMinimumSize(new java.awt.Dimension(160, 82));
    selectAspectButton.setToolTipText("Select to view 'Aspects' in the result");
    selectAspectButton.setModel(myModel.getSelectAspect());
    selectAspectButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    selectAspectButton.setText("Select Aspects");
    selectAspectButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    selectAspectButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        selectAspectButtonActionPerformed(evt);
      }
    });

    checkBoxPanel.add(selectAspectButton);

    selectCrosscutButton.setToolTipText("Select to view 'Crosscuts' in the result");
    selectCrosscutButton.setModel(myModel.getSelectCrosscut());
    selectCrosscutButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    selectCrosscutButton.setText("Select Crosscuts");
    selectCrosscutButton.setPreferredSize(new java.awt.Dimension(130, 20));
    selectCrosscutButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    selectCrosscutButton.setMaximumSize(new java.awt.Dimension(130, 20));
    selectCrosscutButton.setMinimumSize(new java.awt.Dimension(130, 20));
    selectCrosscutButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        selectCrosscutButtonActionPerformed(evt);
      }
    });

    checkBoxPanel.add(selectCrosscutButton);

    selectJoinpointButton.setToolTipText("Select to view 'Joinpoints' in the result");
    selectJoinpointButton.setModel(myModel.getSelectJoinpoint());
    selectJoinpointButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    selectJoinpointButton.setText("Select Joinpoints");
    selectJoinpointButton.setPreferredSize(new java.awt.Dimension(130, 20));
    selectJoinpointButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    selectJoinpointButton.setMaximumSize(new java.awt.Dimension(130, 20));
    selectJoinpointButton.setMinimumSize(new java.awt.Dimension(130, 20));
    selectJoinpointButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        selectJoinpointButtonActionPerformed(evt);
      }
    });

    checkBoxPanel.add(selectJoinpointButton);

    boxes.add(checkBoxPanel);

    radioBoxPanel.setLayout(new java.awt.GridLayout(3, 0, 0, 5));

    radioBoxPanel.setBorder(new javax.swing.border.CompoundBorder(new javax.swing.border.EtchedBorder(null, java.awt.Color.gray), new javax.swing.border.EmptyBorder(new java.awt.Insets(3, 9, 3, 3))));
    radioBoxPanel.setPreferredSize(new java.awt.Dimension(160, 82));
    radioBoxPanel.setMinimumSize(new java.awt.Dimension(160, 82));
    radioBoxPanel.setMaximumSize(new java.awt.Dimension(160, 82));
    groupByAspectButton.setModel(myModel.getGroupByAspect());
    groupByAspectButton.setFont(new java.awt.Font("LuxiSans", 1, 12));
    groupByAspectButton.setText("Group by Aspect");
    groupByGroup.add(groupByAspectButton);
    groupByAspectButton.setPreferredSize(new java.awt.Dimension(130, 20));
    groupByAspectButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(20, 2, 20, 2)));
    groupByAspectButton.setMaximumSize(new java.awt.Dimension(130, 20));
    groupByAspectButton.setMargin(new java.awt.Insets(20, 2, 2, 2));
    groupByAspectButton.setMinimumSize(new java.awt.Dimension(130, 20));
    groupByAspectButton.setBorderPainted(true);
    groupByAspectButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        groupByAspectButtonActionPerformed(evt);
      }
    });

    radioBoxPanel.add(groupByAspectButton);

    groupByCrosscutButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    groupByCrosscutButton.setText("Group by Crosscut");
    groupByCrosscutButton.setModel(myModel.getGroupByCrosscut());
    groupByGroup.add(groupByCrosscutButton);
    groupByCrosscutButton.setPreferredSize(new java.awt.Dimension(130, 20));
    groupByCrosscutButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));
    groupByCrosscutButton.setMaximumSize(new java.awt.Dimension(130, 20));
    groupByCrosscutButton.setMargin(new java.awt.Insets(20, 2, 2, 2));
    groupByCrosscutButton.setMinimumSize(new java.awt.Dimension(130, 20));
    groupByCrosscutButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        groupByCrosscutButtonActionPerformed(evt);
      }
    });

    radioBoxPanel.add(groupByCrosscutButton);

    groupByJoinpointButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));

    groupByJoinpointButton.setText("Group by Joinpoint");

    groupByJoinpointButton.setModel(myModel.getGroupByJoinpoint());

    groupByGroup.add(groupByJoinpointButton);

    groupByJoinpointButton.setPreferredSize(new java.awt.Dimension(130, 20));

    groupByJoinpointButton.setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(2, 2, 2, 2)));

    groupByJoinpointButton.setMaximumSize(new java.awt.Dimension(130, 20));


    groupByJoinpointButton.setMargin(new java.awt.Insets(20, 2, 2, 2));

    groupByJoinpointButton.setMinimumSize(new java.awt.Dimension(130, 20));


    groupByJoinpointButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        groupByJoinpointButtonActionPerformed(evt);
      }
    });

    radioBoxPanel.add(groupByJoinpointButton);

    boxes.add(radioBoxPanel);


    buttons.setLayout(new GridLayout(3,2,5,5));
    //        buttons.setPreferredSize(new java.awt.Dimension(100, 80));
    //        buttons.setMinimumSize(new java.awt.Dimension(100, 80));

    queryButton.setToolTipText("Send the selected Items to the AspectManager and get the Result");
    queryButton.setFont(new java.awt.Font("Luxi Sans", 1, 14));
    queryButton.setText("query");
    queryButton.setPreferredSize(new java.awt.Dimension(30,23 ));
    queryButton.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.lightGray, java.awt.Color.white, java.awt.Color.darkGray, java.awt.Color.gray));
    queryButton.setMaximumSize(new java.awt.Dimension(160, 128));
    queryButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    queryButton.setMinimumSize(new java.awt.Dimension(30, 23));
    queryButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        queryButtonActionPerformed(evt);
      }
    });
    buttons.add(new JLabel("query: sected cells"));
    buttons.add(queryButton);

    jp8QueryToolbar.setText("Q");
    jp8QueryToolbar.setFont(new java.awt.Font("Luxi Sans", Font.BOLD, 18));
    jp8QueryToolbar.setForeground(new Color(0x765f91));
    jp8QueryToolbar.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        queryButtonActionPerformed(evt);
      }
    });



    Dimension buttonDimension = new Dimension(50,23);
    Dimension labelDimension = new Dimension(100,23);




    allAspectsButton.setToolTipText("Retrieve all Aspects inserted in this AspectManager");
    allAspectsButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    allAspectsButton.setText("query");
    allAspectsButton.setPreferredSize(new java.awt.Dimension(30, 23));
    allAspectsButton.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.lightGray, java.awt.Color.white, java.awt.Color.darkGray, java.awt.Color.gray));
    allAspectsButton.setMaximumSize(new java.awt.Dimension(128, 32));
    allAspectsButton.setMinimumSize(new java.awt.Dimension(30, 23));
    allAspectsButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        allAspectsButtonActionPerformed(evt);
      }
    });
    buttons.add(new JLabel("query: all aspects"));
    buttons.add(allAspectsButton);



    allJoinpointsButton.setToolTipText("Retrieve all Joinpoints inserted in this AspectManager");
    allJoinpointsButton.setFont(new java.awt.Font("Luxi Sans", 1, 12));
    allJoinpointsButton.setText("query");
    allJoinpointsButton.setPreferredSize(new java.awt.Dimension(50, 23));
    allJoinpointsButton.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.lightGray, java.awt.Color.white, java.awt.Color.darkGray, java.awt.Color.gray));
    allJoinpointsButton.setMaximumSize(new java.awt.Dimension(128, 32));
    allJoinpointsButton.setMinimumSize(new java.awt.Dimension(30, 23));
    allJoinpointsButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        allJoinpointsButtonActionPerformed(evt);
      }
    });

    buttons.add(new JLabel("query: all joinpoints"));
    buttons.add(allJoinpointsButton);


    boxes.add(buttons);
    boxes.add(Box.createHorizontalGlue());


    jPanel1.add(textAreaScroller);

    jPanel1.add(boxes);

    textAreaScroller.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    textAreaScroller.setPreferredSize(new java.awt.Dimension(500, 39));
    textAreaScroller.setMinimumSize(new java.awt.Dimension(50, 39));
    textAreaScroller.setMaximumSize(new java.awt.Dimension(2000, 100));
    textArea.setWrapStyleWord(true);
    textArea.setLineWrap(true);
    textArea.setEditable(false);
    textArea.setRows(5);
    textArea.setFont(new java.awt.Font("Courier", 0, 11));
    textArea.setPreferredSize(new java.awt.Dimension(0, 70));
    textArea.setMargin(new java.awt.Insets(3, 3, 3, 3));
    textArea.setMinimumSize(new java.awt.Dimension(50, 40));
    textAreaScroller.setViewportView(textArea);


    jPanel3Insertion.setLayout(new FlowLayout(FlowLayout.LEFT));
    //  jPanel3Insertion.setLayout(new BoxLayout(jPanel3Insertion,javax.swing.BoxLayout.X_AXIS));

    JPanel classPathAndAspect = new JPanel();
    classPathAndAspect.setMaximumSize(new Dimension(1000,100));
    classPathAndAspect.setLayout(new BoxLayout(classPathAndAspect, BoxLayout.Y_AXIS));
View Full Code Here


      lblThisIsA.setHorizontalAlignment(SwingConstants.CENTER);
      contentPanel.add(lblThisIsA, BorderLayout.CENTER);
    }
    {
      JPanel buttonPane = new JPanel();
      buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
      getContentPane().add(buttonPane, BorderLayout.SOUTH);
      {
        JButton okButton = new JButton("OK");
        okButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
View Full Code Here

    }
    frame.setBounds(100, 100, 793, 499);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    {
      JPanel topPanel = new JPanel();
      FlowLayout flowLayout = (FlowLayout) topPanel.getLayout();
      flowLayout.setAlignment(FlowLayout.LEFT);
      frame.getContentPane().add(topPanel, BorderLayout.NORTH);
      {
        JLabel lblServerUrl = new JLabel("Server URL:");
        topPanel.add(lblServerUrl);
      }
      {
        serverURLTextField = new JTextField();
        serverURLTextField.setEditable(false);
        topPanel.add(serverURLTextField);
        serverURLTextField.setColumns(40);
      }
    }
    {
      JPanel statusPanel = new JPanel();
      FlowLayout flowLayout = (FlowLayout) statusPanel.getLayout();
      flowLayout.setAlignment(FlowLayout.LEFT);
      frame.getContentPane().add(statusPanel, BorderLayout.SOUTH);
      {
        JLabel lblServerStatus = new JLabel("Server Status:");
        statusPanel.add(lblServerStatus);
      }
View Full Code Here

        tagEditorFrame, audioFiles));

    maxResults = new JTextField(String.valueOf(MAX_RESULTS));
    maxResults.setPreferredSize(new Dimension(100, 25));

    JPanel maxResultPanel = new JPanel(new FlowLayout());
    maxResultPanel.add(maxResultL);
    maxResultPanel.add(maxResults);

    SimpleFocusPolicy policy = new SimpleFocusPolicy(this);
    policy.setComponents(new Component[] { artist, album, year, genre,
View Full Code Here

        queryPanel.add(new JLabel("Query:"), BorderLayout.WEST);

        textField = new JTextField();
        queryPanel.add(textField, BorderLayout.CENTER);

        JPanel eastPanel = new JPanel(new FlowLayout());
        JButton searchButton = new JButton("Search");
        this.type = new ButtonGroup();
        addJCheckbox("tags", eastPanel, true);
        addJCheckbox("text", eastPanel, false);
        eastPanel.add(searchButton, BorderLayout.EAST);
View Full Code Here

        vb.add(languagePanel);
        vb.add(new JPanel());

        // use small icons

        JPanel iconTextPanel = new JPanel(new FlowLayout());
        iconTextPanel.add(new JLabel(language.getText("show")));
        iconTextPanel.add(cbButtonType = new JComboBox());

        cbButtonType.addItem(language.getText("buttonIcon"));
        cbButtonType.addItem(language.getText("buttonIconText"));
        cbButtonType.addItem(language.getText("buttonText"));

        iconTextPanel.add(new JLabel("  "));
        iconTextPanel.add(cbSmallIcon = new JCheckBox());
        iconTextPanel.add(new JLabel(language.getText("useSmalIcons")));
        JPanel iconTextPanel2 = new JPanel(new BorderLayout());
        iconTextPanel2.add(iconTextPanel, BorderLayout.WEST);
        vb.add(iconTextPanel2);
        vb.add(new JPanel());

//        // status bar setting
//        JPanel statusPanel = new JPanel(new BorderLayout());
//        statusPanel.add(cbShowStatus = new JCheckBox(), BorderLayout.WEST);
//        statusPanel.add(new JLabel(language.getText("showStatusBar")),
//                BorderLayout.CENTER);
//        vb.add(statusPanel);
//        vb.add(new JPanel());
        JPanel positionPanel = new JPanel(new FlowLayout());
        JPanel currentPanel = new JPanel(new BorderLayout());
        JPanel deletedPanel = new JPanel(new BorderLayout());

        currentPanel.add(new JLabel(language.getText("currentToolBar")),
                BorderLayout.NORTH);
View Full Code Here

        hb.add(ivbw);
        hb.add(ivbe);

        inputPanel.add(hb, BorderLayout.SOUTH);
        JPanel centerPanel = new JPanel(new FlowLayout());
        centerPanel.add(inputPanel, BorderLayout.CENTER);
        getContentPane().add(centerPanel, BorderLayout.CENTER);

        JPanel southPanel = new JPanel();
        JButton ok = new JButton(language.getText("ok"));
View Full Code Here

        cancelButton = new JButton(lang.getText("cancel"));

        cancelButton.setName("cancel");

        southPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 10, 10));

        southPanel.add(okButton);

        southPanel.add(cancelButton);
View Full Code Here

        return southPanel;
    }

    private JPanel constructGeneralPanel() {
        JPanel generalPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING,
                40, 20));
        nameComboBox = new JComboBox();
        nameComboBox.setName("nameComboBox");
        nameComboBox.addItem(lang.getText("none"));
        for (int i = 0; i < myPreviousStates.size(); i++)
View Full Code Here

        thirdRowPanel1 = new JPanel(flowL);
        thirdRowPanel1.setBorder(new TitledBorder(new EtchedBorder(), language
                .getText("date")));

        JPanel startDatePanel = new JPanel(
                new FlowLayout(FlowLayout.LEFT, 5, 0));
        startDatePanel.add(startDateLabel1);
        myStartDatePicker = createDatePicker(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                setStart(new GanttCalendar(((JXDatePicker)e.getSource()).getDate()), false);
            }
        });
        startDatePanel.add(myStartDatePicker);
        //startDatePanel.add(startDateButton1);


        JPanel finishDatePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5,
                0));
        finishDatePanel.add(finishDateLabel1);
        myEndDatePicker = createDatePicker(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                setEnd(new GanttCalendar(((JXDatePicker)e.getSource()).getDate()), false);
            }
        });
        finishDatePanel.add(myEndDatePicker);
        //finishDatePanel.add(finishDateButton1);

        JPanel thirdDatePanel = new JPanel(
                new FlowLayout(FlowLayout.LEFT, 5, 0));
        thirdDatePanel.add(thirdDateComboBox);
        myThirdDatePicker = createDatePicker(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                setThird(new GanttCalendar(((JXDatePicker)e.getSource()).getDate()), false);
            }
View Full Code Here

TOP

Related Classes of java.awt.FlowLayout

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.