Source:
public ProgramABGui(String boundServiceName, SwingGui myService) throws BadLocationException, IOException { super(boundServiceName, myService); this.boundServiceName = boundServiceName; pathP.setText("Path : "); pathP.setIcon(pathI); userP.setIcon(userI); userP.setText("User name : "); botnameP.setIcon(botnameI); botnameP.setText("Bot subfolderName : "); text.setFont(new Font("Arial", Font.BOLD, 14)); text.setPreferredSize(new Dimension(40, 35)); askLabel.setText("Ask : "); filter.setSelected(true); response.setAutoscrolls(true); response.setEditable(false); response.setEditorKit(responseKit); response.setDocument(responseDoc); responseKit.insertHTML(responseDoc, responseDoc.getLength(), "<font face=\\\"Verdana\\\">Conversation :<br/>", 0, 0, null); scrollResponse.setAutoscrolls(true); display.setLayout(new BorderLayout()); JPanel inputControlSub = new JPanel(); inputControlSub.add(askLabel); inputControlSub.add(text); inputControlSub.add(askButton); inputControlSub.add(filter); display.add(inputControlSub, BorderLayout.NORTH); display.add(scrollResponse, BorderLayout.CENTER); JPanel PAGEEND = new JPanel(); JPanel botControl = new JPanel(new GridLayout(3, 3)); botControl.add(pathP); botControl.add(progABPath); botControl.add(startSessionButton); botControl.add(userP); botControl.add(userName); botControl.add(reloadSession); botControl.add(botnameP); botControl.add(botName); botControl.add(saveAIML); PAGEEND.add(botControl); display.add(PAGEEND, BorderLayout.PAGE_END); text.addActionListener(this); askButton.addActionListener(this); startSessionButton.addActionListener(this); reloadSession.addActionListener(this); saveAIML.addActionListener(this); }

Target:
public ProgramABGui(String boundServiceName, SwingGui myService) throws BadLocationException, IOException { super(boundServiceName, myService); this.boundServiceName = boundServiceName; pathP.setText("Path : "); pathP.setIcon(pathI); userP.setIcon(userI); userP.setText("User : "); botnameP.setIcon(botnameI); botnameP.setText("Bot : "); text.setFont(new Font("Arial", Font.BOLD, 14)); text.setPreferredSize(new Dimension(40, 35)); askLabel.setText("Ask : "); filter.setSelected(true); cssKit.addRule("body {font-family:\"Verdana\";}"); response.setAutoscrolls(true); response.setEditable(false); response.setEditorKit(responseKit); response.setDocument(responseDoc); responseKit.insertHTML(responseDoc, responseDoc.getLength(), "Conversation :<br/>", 0, 0, null); scrollResponse.setAutoscrolls(true); display.setLayout(new BorderLayout()); JPanel inputControlSub = new JPanel(); inputControlSub.add(askLabel); inputControlSub.add(text); inputControlSub.add(askButton); inputControlSub.add(filter); display.add(inputControlSub, BorderLayout.NORTH); display.add(scrollResponse, BorderLayout.CENTER); JPanel PAGEEND = new JPanel(); JPanel botControl = new JPanel(new GridLayout(3, 3)); botControl.add(pathP); botControl.add(progABPath); botControl.add(startSession); botControl.add(userP); botControl.add(userName); botControl.add(reloadSession); botControl.add(botnameP); botControl.add(botName); botControl.add(saveAIML); PAGEEND.add(botControl); display.add(PAGEEND, BorderLayout.PAGE_END); text.addActionListener(this); askButton.addActionListener(this); startSession.addActionListener(this); reloadSession.addActionListener(this); saveAIML.addActionListener(this); }