editPane = new JTextArea(); editPane.setLineWrap(true); editPane.setWrapStyleWord(true); JScrollPane areaScrollPane = new JScrollPane(editPane); areaScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); areaScrollPane.setPreferredSize(new Dimension(700,500)); areaScrollPane.setBorder(
editPane = new JTextArea(); editPane.setLineWrap(true); editPane.setWrapStyleWord(true); JScrollPane areaScrollPane = new JScrollPane(editPane); areaScrollPane.setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); areaScrollPane.setPreferredSize(new Dimension(700, 500)); areaScrollPane.setBorder( BorderFactory.createCompoundBorder(
    protected void doMyLayout() {	getRootPane().setJMenuBar(makeMenus());	JTabbedPane tabs = new JTabbedPane();	contentPane.add(tabs,BorderLayout.CENTER);	JPanel editPanel = new JPanel();	editPanel.setLayout(new BorderLayout());        //Create a text area.        editPane = new JTextArea();        editPane.setLineWrap(true);        editPane.setWrapStyleWord(true);        JScrollPane areaScrollPane = new JScrollPane(editPane);        areaScrollPane.setVerticalScrollBarPolicy(                        JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);        areaScrollPane.setPreferredSize(new Dimension(700,500));        areaScrollPane.setBorder(            BorderFactory.createCompoundBorder(                BorderFactory.createCompoundBorder(                                BorderFactory.createTitledBorder("XML"),                                BorderFactory.createEmptyBorder(5,5,5,5)),                areaScrollPane.getBorder()));	JButton parseButton = new JButton("Parse");	JButton dataButton = new JButton("Data");	parseButton.addActionListener(this);	dataButton.addActionListener(this);	JPanel buttonPanel = new JPanel();	buttonPanel.setLayout(new FlowLayout());	buttonPanel.add(dataButton);	buttonPanel.add(Box.createHorizontalStrut(60));	buttonPanel.add(parseButton);		editPanel.add(buttonPanel,BorderLayout.NORTH);	editPanel.add(areaScrollPane,BorderLayout.CENTER);	multiChart = new MultiChartPanel();	multiChart.setPreferredSize(new Dimension(700,250));	tabs.add("InventoryChart",multiChart);	tabs.add("XML",editPanel);	selector = new InventorySelectionPanel(this);	selector.addInventorySelectionListener(this);		contentPane.add(selector,BorderLayout.SOUTH);    }