Search in sources :

Example 46 with LineBorder

use of javax.swing.border.LineBorder in project Info-Evaluation by TechnionYP5777.

the class InteractiveFrame method initialize.

/**
	 * Initialize the contents of the frame.
	 */
private void initialize() {
    frame = new JFrame();
    frame.getContentPane().setEnabled(true);
    frame.setBounds(100, 100, 600, 450);
    frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    txtEnterYourEvent = new JTextField();
    txtEnterYourEvent.setText("Enter your event");
    txtEnterYourEvent.setColumns(10);
    btnAddEvent = new JButton("Add event");
    table = new JTable();
    table.setModel(new DefaultTableModel(new Object[][] { { "Name", "Date", "Reason" } }, new String[] { "Name", "Date", "Reason" }));
    table.setBorder(new LineBorder(null));
    btnSubmit = new JButton("Submit");
    addEventButtonOnClick();
    submitBtnOnClick();
    GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addGap(32).addGroup(groupLayout.createParallelGroup(Alignment.TRAILING).addGroup(groupLayout.createSequentialGroup().addComponent(btnSubmit).addContainerGap(485, Short.MAX_VALUE)).addGroup(groupLayout.createSequentialGroup().addGroup(groupLayout.createParallelGroup(Alignment.TRAILING).addComponent(table, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 539, Short.MAX_VALUE).addGroup(groupLayout.createSequentialGroup().addComponent(txtEnterYourEvent, GroupLayout.DEFAULT_SIZE, 416, Short.MAX_VALUE).addGap(18).addComponent(btnAddEvent))).addGap(29)))));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addGap(35).addGroup(groupLayout.createParallelGroup(Alignment.BASELINE).addComponent(txtEnterYourEvent, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE).addComponent(btnAddEvent)).addGap(40).addComponent(table, GroupLayout.PREFERRED_SIZE, 248, GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(btnSubmit).addContainerGap(59, Short.MAX_VALUE)));
    frame.getContentPane().setLayout(groupLayout);
    events = new AnalyzeSources();
    frame.setVisible(true);
}
Also used : JFrame(javax.swing.JFrame) JTable(javax.swing.JTable) DefaultTableModel(javax.swing.table.DefaultTableModel) LineBorder(javax.swing.border.LineBorder) JButton(javax.swing.JButton) GroupLayout(javax.swing.GroupLayout) AnalyzeSources(main.Analyze.AnalyzeSources) JTextField(javax.swing.JTextField)

Example 47 with LineBorder

use of javax.swing.border.LineBorder in project Info-Evaluation by TechnionYP5777.

the class MainFrame method initialize.

/**
	 * Initialize the contents of the frame.
	 */
private void initialize() {
    /*
		 * this flag to change the name of search button
		 */
    startFlag = false;
    frame = new JFrame();
    frame.setTitle("Info Evaluation");
    frame.setResizable(false);
    final Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setBounds(0, 0, screen.width, screen.height - 1);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    try {
        connector = new MySQLConnector();
    } catch (final Exception e) {
        JOptionPane.showMessageDialog(null, "problem with sql connector", "Error", JOptionPane.INFORMATION_MESSAGE);
    }
    frame.addWindowListener(new java.awt.event.WindowAdapter() {

        @Override
        public void windowClosing(WindowEvent winEvt) {
            try {
                clearDB();
            } catch (final SQLException e) {
                JOptionPane.showMessageDialog(null, "problem with removing events from Database", "Error", JOptionPane.INFORMATION_MESSAGE);
            }
            closeConnection();
            System.exit(0);
        }
    });
    final AnalyzeSources events = new AnalyzeSources();
    events.addSource(src1);
    events.addSource(src2, "2015");
    MySQLConnector.addEvents(events.getData());
    try {
        addAllKeywords(events.getData());
    } catch (SQLException ¢) {
        ¢.printStackTrace();
    }
    final JMenuBar menuBar = new JMenuBar();
    frame.setJMenuBar(menuBar);
    mnHelp = new JMenu("Help");
    menuBar.add(mnHelp);
    mntmAbout = new JMenuItem("About");
    mnHelp.add(mntmAbout);
    popupMenu = new JPopupMenu();
    mnfilter = new JMenuItem("Filter by");
    mnprofile = new JMenuItem("View profile");
    mnprofile.setVisible(false);
    popupMenu.add(mnfilter);
    popupMenu.add(mnprofile);
    /*
		 *
		 * initializing the table
		 *
		 */
    // {
    table = new JTable();
    table.setComponentPopupMenu(popupMenu);
    table.setShowVerticalLines(false);
    table.setCellSelectionEnabled(true);
    table.setColumnSelectionAllowed(true);
    table.setBorder(new LineBorder(null));
    for (int count = 1; count <= 10; ++count) table.setModel(new DefaultTableModel(new Object[][] { { "Name", "Date", "Reason" } }, new String[] { "Name", "Date", "Reason" }));
    table.setBounds(30, 120, screen.width / 2 + 100, screen.height / 2);
    table.setVisible(false);
    js = new JScrollPane(table, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    js.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    js.setVisible(false);
    js.setBounds(30, 120, screen.width / 2 + 100, screen.height / 2);
    frame.getContentPane().add(js);
    frame.getContentPane().add(js);
    /*
		 * initializing the table
		 *
		 */
    inputList = new RefineTable();
    inputList.addField("Date");
    inputList.addField("Name");
    inputList.addField("Reason");
    inputList.addField("Year");
    btnSearch = new JButton("Load analyze results");
    searchTxt = new JTextField(10);
    searchTxt.setText("Select checkBox to search");
    searchTxt.setColumns(10);
    searchTxt.setEditable(false);
    ArrayList<String> keywords = new ArrayList<String>();
    for (TableTuple t : events.getData()) {
        String year = t.getDate().split("/")[2];
        if (!keywords.contains(year))
            keywords.add(year);
        if (!keywords.contains(t.getName()))
            keywords.add(t.getName());
        for (String s : t.getKeyWords()) for (String key : s.split(" ")) {
            if (keywords.contains(key))
                continue;
            keywords.add(key);
        }
    }
    AutoComplete.setupAutoComplete(searchTxt, keywords);
    chckbxName = new JCheckBox("Name");
    chckbxName.setVisible(false);
    chckbxDate = new JCheckBox("Date");
    chckbxDate.setVisible(false);
    chckbxReason = new JCheckBox("Reason");
    chckbxReason.setVisible(false);
    chckbxSortby = new JCheckBox("Sort by");
    chckbxFilterBy = new JCheckBox("Filter by");
    comboBox = new JComboBox<>();
    comboBox.setVisible(false);
    txtpnChooseOneFrom = new JTextPane();
    txtpnChooseOneFrom.setText("Choose one from:");
    txtpnChooseOneFrom.setBackground(new Color(0, 0, 0, 0));
    txtpnChooseOneFrom.setVisible(false);
    personalInfo = new InfoExtractor();
    btnLoadAnalyzeResults = new JButton("Load analyze results");
    btnLoadAnalyzeResults.setVisible(false);
    /*
		 * add image
		 */
    BufferedImage myPicture;
    try {
        myPicture = ImageIO.read(this.getClass().getResource("images/search.png"));
        lblImage = new JLabel(new ImageIcon(myPicture.getScaledInstance(220, 220, Image.SCALE_DEFAULT)));
    } catch (IOException ¢) {
        ¢.printStackTrace();
    }
    chckbxSearch = new JCheckBox("");
    btnAddEvents = new JButton("Add Events");
    final GroupLayout groupLayout = new GroupLayout(frame.getContentPane());
    groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addContainerGap(881, Short.MAX_VALUE).addComponent(lblImage, GroupLayout.PREFERRED_SIZE, 232, GroupLayout.PREFERRED_SIZE).addGap(247)).addGroup(groupLayout.createSequentialGroup().addGap(30).addGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addComponent(btnLoadAnalyzeResults).addGap(92).addComponent(btnAddEvents, GroupLayout.PREFERRED_SIZE, 145, GroupLayout.PREFERRED_SIZE)).addGroup(groupLayout.createSequentialGroup().addComponent(chckbxSearch, GroupLayout.PREFERRED_SIZE, 29, GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.RELATED).addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false).addComponent(searchTxt, GroupLayout.PREFERRED_SIZE, 744, GroupLayout.PREFERRED_SIZE).addGroup(groupLayout.createSequentialGroup().addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false).addGroup(groupLayout.createSequentialGroup().addComponent(chckbxName).addGap(18).addComponent(chckbxDate, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addGroup(groupLayout.createSequentialGroup().addComponent(chckbxSortby).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(chckbxFilterBy))).addPreferredGap(ComponentPlacement.RELATED).addComponent(chckbxReason).addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(txtpnChooseOneFrom, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))).addGap(18).addGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(btnSearch, GroupLayout.PREFERRED_SIZE, 224, GroupLayout.PREFERRED_SIZE).addComponent(comboBox, GroupLayout.PREFERRED_SIZE, 219, GroupLayout.PREFERRED_SIZE)))).addContainerGap(313, Short.MAX_VALUE)));
    groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.TRAILING).addGroup(groupLayout.createSequentialGroup().addContainerGap().addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false).addComponent(chckbxSearch).addGroup(groupLayout.createSequentialGroup().addGroup(groupLayout.createParallelGroup(Alignment.BASELINE).addComponent(searchTxt, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE).addComponent(btnSearch, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE)).addPreferredGap(ComponentPlacement.RELATED).addGroup(groupLayout.createParallelGroup(Alignment.BASELINE).addComponent(chckbxSortby).addComponent(chckbxFilterBy)).addPreferredGap(ComponentPlacement.RELATED).addGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(txtpnChooseOneFrom, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE).addGroup(groupLayout.createParallelGroup(Alignment.BASELINE).addComponent(chckbxName).addComponent(chckbxDate).addComponent(chckbxReason)).addComponent(comboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))).addPreferredGap(ComponentPlacement.RELATED, 177, Short.MAX_VALUE).addComponent(lblImage, GroupLayout.PREFERRED_SIZE, 193, GroupLayout.PREFERRED_SIZE).addGap(76).addGroup(groupLayout.createParallelGroup(Alignment.BASELINE).addComponent(btnLoadAnalyzeResults, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE).addComponent(btnAddEvents, GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)).addGap(171)));
    frame.getContentPane().setLayout(groupLayout);
}
Also used : ImageIcon(javax.swing.ImageIcon) SQLException(java.sql.SQLException) LineBorder(javax.swing.border.LineBorder) DefaultTableModel(javax.swing.table.DefaultTableModel) JButton(javax.swing.JButton) ArrayList(java.util.ArrayList) JTextField(javax.swing.JTextField) BufferedImage(java.awt.image.BufferedImage) JTextPane(javax.swing.JTextPane) JFrame(javax.swing.JFrame) GroupLayout(javax.swing.GroupLayout) MySQLConnector(main.database.MySQLConnector) JMenuItem(javax.swing.JMenuItem) JScrollPane(javax.swing.JScrollPane) Color(java.awt.Color) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) AnalyzeSources(main.Analyze.AnalyzeSources) IOException(java.io.IOException) SQLException(java.sql.SQLException) IOException(java.io.IOException) JPopupMenu(javax.swing.JPopupMenu) Point(java.awt.Point) JCheckBox(javax.swing.JCheckBox) TableTuple(main.database.TableTuple) WindowEvent(java.awt.event.WindowEvent) JTable(javax.swing.JTable) JMenuBar(javax.swing.JMenuBar) JMenu(javax.swing.JMenu)

Example 48 with LineBorder

use of javax.swing.border.LineBorder in project vcell by virtualcell.

the class AddTestSuitePanel method getJPanel1.

/**
 * Return the JPanel1 property value.
 * @return javax.swing.JPanel
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private javax.swing.JPanel getJPanel1() {
    if (ivjJPanel1 == null) {
        try {
            GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
            gridBagConstraints1.fill = GridBagConstraints.BOTH;
            gridBagConstraints1.gridy = 5;
            gridBagConstraints1.weightx = 1.0;
            gridBagConstraints1.weighty = 1.0;
            gridBagConstraints1.gridwidth = 2;
            gridBagConstraints1.insets = new Insets(4, 4, 4, 4);
            gridBagConstraints1.gridx = 0;
            GridBagConstraints gridBagConstraints = new GridBagConstraints();
            gridBagConstraints.gridx = 0;
            gridBagConstraints.gridwidth = 2;
            gridBagConstraints.insets = new Insets(4, 4, 4, 4);
            gridBagConstraints.fill = GridBagConstraints.NONE;
            gridBagConstraints.gridy = 4;
            final GridBagLayout gridBagLayout_1 = new GridBagLayout();
            gridBagLayout_1.rowHeights = new int[] { 0, 7, 7 };
            regressionInfoPanel.setLayout(gridBagLayout_1);
            regressionInfoPanel.setBorder(new LineBorder(Color.black, 2, false));
            jLabelAnnot = new JLabel();
            jLabelAnnot.setText("Test Suite Annotation");
            ivjJPanel1 = new javax.swing.JPanel();
            ivjJPanel1.setName("JPanel1");
            final java.awt.GridBagLayout gridBagLayout = new java.awt.GridBagLayout();
            gridBagLayout.rowHeights = new int[] { 0, 0, 0, 7, 0, 0 };
            ivjJPanel1.setLayout(gridBagLayout);
            final GridBagConstraints gridBagConstraints_1 = new GridBagConstraints();
            gridBagConstraints_1.fill = GridBagConstraints.HORIZONTAL;
            gridBagConstraints_1.weightx = 0;
            gridBagConstraints_1.gridwidth = 2;
            gridBagConstraints_1.gridy = 3;
            gridBagConstraints_1.gridx = 0;
            ivjJPanel1.add(regressionInfoPanel, gridBagConstraints_1);
            copyRegressionReferencesRadioButton.setSelected(true);
            copyRegressionReferencesRadioButton.setText("Copy Source Regression References to New TestSuite");
            final GridBagConstraints gridBagConstraints_2 = new GridBagConstraints();
            gridBagConstraints_2.anchor = GridBagConstraints.WEST;
            gridBagConstraints_2.weightx = 1;
            gridBagConstraints_2.gridx = 0;
            gridBagConstraints_2.gridy = 0;
            gridBagConstraints_2.insets = new Insets(0, 0, 0, 0);
            regressionInfoPanel.add(copyRegressionReferencesRadioButton, gridBagConstraints_2);
            assignOriginalAsRadioButton.setText("Set Source as Regression Reference for New TestSuite");
            final GridBagConstraints gridBagConstraints_3 = new GridBagConstraints();
            gridBagConstraints_3.weightx = 1;
            gridBagConstraints_3.anchor = GridBagConstraints.WEST;
            gridBagConstraints_3.gridy = 1;
            gridBagConstraints_3.gridx = 0;
            regressionInfoPanel.add(assignOriginalAsRadioButton, gridBagConstraints_3);
            assignNewAsRadioButton.setText("Set New as Regression Reference for New TestSuite");
            final GridBagConstraints gridBagConstraints_4 = new GridBagConstraints();
            gridBagConstraints_4.weightx = 1;
            gridBagConstraints_4.anchor = GridBagConstraints.WEST;
            gridBagConstraints_4.gridy = 2;
            gridBagConstraints_4.gridx = 0;
            regressionInfoPanel.add(assignNewAsRadioButton, gridBagConstraints_4);
            ivjJPanel1.add(jLabelAnnot, gridBagConstraints);
            JScrollPane jscrollPane = new JScrollPane(getJTextAreaAnnot(), JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
            ivjJPanel1.add(jscrollPane, gridBagConstraints1);
            java.awt.GridBagConstraints constraintsVersionLabel = new java.awt.GridBagConstraints();
            constraintsVersionLabel.gridx = 0;
            constraintsVersionLabel.gridy = 0;
            constraintsVersionLabel.ipadx = 55;
            constraintsVersionLabel.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getVersionLabel(), constraintsVersionLabel);
            java.awt.GridBagConstraints constraintsVcellVersLabel = new java.awt.GridBagConstraints();
            constraintsVcellVersLabel.gridx = 0;
            constraintsVcellVersLabel.gridy = 1;
            constraintsVcellVersLabel.ipadx = 25;
            constraintsVcellVersLabel.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getVcellVersLabel(), constraintsVcellVersLabel);
            java.awt.GridBagConstraints constraintsNumVersLabel = new java.awt.GridBagConstraints();
            constraintsNumVersLabel.gridx = 0;
            constraintsNumVersLabel.gridy = 2;
            constraintsNumVersLabel.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getNumVersLabel(), constraintsNumVersLabel);
            java.awt.GridBagConstraints constraintsVersionTextField = new java.awt.GridBagConstraints();
            constraintsVersionTextField.gridx = 1;
            constraintsVersionTextField.gridy = 0;
            constraintsVersionTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
            constraintsVersionTextField.weightx = 1.0;
            constraintsVersionTextField.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getVersionTextField(), constraintsVersionTextField);
            java.awt.GridBagConstraints constraintsVCellVerTextField = new java.awt.GridBagConstraints();
            constraintsVCellVerTextField.gridx = 1;
            constraintsVCellVerTextField.gridy = 1;
            constraintsVCellVerTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
            constraintsVCellVerTextField.weightx = 1.0;
            constraintsVCellVerTextField.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getVCellVerTextField(), constraintsVCellVerTextField);
            java.awt.GridBagConstraints constraintsNumericsVersionTextField = new java.awt.GridBagConstraints();
            constraintsNumericsVersionTextField.gridx = 1;
            constraintsNumericsVersionTextField.gridy = 2;
            constraintsNumericsVersionTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
            constraintsNumericsVersionTextField.weightx = 1.0;
            constraintsNumericsVersionTextField.insets = new java.awt.Insets(4, 4, 4, 4);
            getJPanel1().add(getNumericsVersionTextField(), constraintsNumericsVersionTextField);
        // user code begin {1}
        // user code end
        } catch (java.lang.Throwable ivjExc) {
            // user code begin {2}
            // user code end
            handleException(ivjExc);
        }
    }
    return ivjJPanel1;
}
Also used : JScrollPane(javax.swing.JScrollPane) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) LineBorder(javax.swing.border.LineBorder) JLabel(javax.swing.JLabel) GridBagConstraints(java.awt.GridBagConstraints) GridBagLayout(java.awt.GridBagLayout) JPanel(javax.swing.JPanel)

Example 49 with LineBorder

use of javax.swing.border.LineBorder in project vcell by virtualcell.

the class FRAPStudyPanel method getLeftPanel.

/**
 * Left panel is to the left of the frapDataPanel(imagepanel).
 * It contains workFlowPanel and resultsDispalyPanel.
 */
private JPanel getLeftPanel() {
    if (leftPanel == null) {
        leftPanel = new JPanel(new BorderLayout());
        leftPanel.setBorder(new LineBorder(new Color(153, 186, 243), 2));
        JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, getAnalysisProcedurePanel(), getAnalysisResultsPanel());
        split.setDividerLocation(112);
        split.setDividerSize(2);
        leftPanel.add(split);
    }
    return leftPanel;
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) LineBorder(javax.swing.border.LineBorder) Color(java.awt.Color) JSplitPane(javax.swing.JSplitPane)

Example 50 with LineBorder

use of javax.swing.border.LineBorder in project vcell by virtualcell.

the class ResultDisplayPanel method getBestModelPanel.

public JPanel getBestModelPanel() {
    if (modelPanel == null) {
        modelPanel = new JPanel();
        final GridBagLayout gridBagLayout = new GridBagLayout();
        gridBagLayout.rowHeights = new int[] { 0, 7, 0, 7 };
        gridBagLayout.columnWidths = new int[] { 0, 0, 7, 0, 0, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
        modelPanel = new JPanel(gridBagLayout);
        modelPanel.setBorder(new TitledBorder(new LineBorder(new Color(153, 186, 243), 1), "Best Model"));
        GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
        gridBagConstraints1.insets = new Insets(0, 0, 0, 0);
        gridBagConstraints1.gridx = 1;
        gridBagConstraints1.gridy = 0;
        gridBagConstraints1.anchor = GridBagConstraints.WEST;
        GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
        gridBagConstraints2.gridx = 1;
        gridBagConstraints2.gridy = 2;
        gridBagConstraints2.anchor = GridBagConstraints.WEST;
        GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
        gridBagConstraints3.gridx = 1;
        gridBagConstraints3.gridy = 4;
        gridBagConstraints3.anchor = GridBagConstraints.WEST;
        modelPanel.add(getOneDiffComLabel(), gridBagConstraints1);
        modelPanel.add(getTwoDiffComLabel(), gridBagConstraints2);
        modelPanel.add(getRactionOffRateLabel(), gridBagConstraints3);
    }
    return modelPanel;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) LineBorder(javax.swing.border.LineBorder) Color(java.awt.Color) TitledBorder(javax.swing.border.TitledBorder)

Aggregations

LineBorder (javax.swing.border.LineBorder)59 Color (java.awt.Color)18 JPanel (javax.swing.JPanel)18 GridBagConstraints (java.awt.GridBagConstraints)16 GridBagLayout (java.awt.GridBagLayout)15 Insets (java.awt.Insets)13 JLabel (javax.swing.JLabel)12 ActionEvent (java.awt.event.ActionEvent)10 CompoundBorder (javax.swing.border.CompoundBorder)9 TitledBorder (javax.swing.border.TitledBorder)8 ActionListener (java.awt.event.ActionListener)7 JButton (javax.swing.JButton)7 JScrollPane (javax.swing.JScrollPane)7 Border (javax.swing.border.Border)7 Dimension (java.awt.Dimension)6 EmptyBorder (javax.swing.border.EmptyBorder)6 Point (java.awt.Point)4 MouseEvent (java.awt.event.MouseEvent)4 JCheckBox (javax.swing.JCheckBox)4 JComboBox (javax.swing.JComboBox)4