/** Creates a panel to evaluate the regression model for a given x value */ private void createPredictionPanel() { JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT)); lblEvaluate = new JLabel(); fldInputX = new MyTextFieldD(app); fldInputX.addActionListener(this); fldInputX.setColumns(6); lblOutputY = new JLabel(); fldOutputY = new JLabel(); p.add(lblEvaluate); p.add(new JLabel("x = ")); p.add(fldInputX); p.add(new JLabel("y = ")); p.add(lblOutputY); p.add(fldOutputY); predictionPanel = new JPanel(new BorderLayout()); predictionPanel.add(p, loc.borderWest()); }