View | Details | Raw Unified | Return to bug 54789
Collapse All | Expand All

(-)src/components/org/apache/jmeter/assertions/gui/XPathPanel.java (-19 / +11 lines)
Lines 20-32 Link Here
20
20
21
import java.awt.event.ActionEvent;
21
import java.awt.event.ActionEvent;
22
import java.awt.event.ActionListener;
22
import java.awt.event.ActionListener;
23
import java.awt.BorderLayout;
23
24
24
import javax.swing.Box;
25
import javax.swing.JButton;
25
import javax.swing.JButton;
26
import javax.swing.JCheckBox;
26
import javax.swing.JCheckBox;
27
import javax.swing.JOptionPane;
27
import javax.swing.JOptionPane;
28
import javax.swing.JPanel;
28
import javax.swing.JPanel;
29
import javax.swing.JTextField;
30
import javax.xml.parsers.ParserConfigurationException;
29
import javax.xml.parsers.ParserConfigurationException;
31
import javax.xml.transform.TransformerException;
30
import javax.xml.transform.TransformerException;
32
31
Lines 37-42 Link Here
37
import org.w3c.dom.Document;
36
import org.w3c.dom.Document;
38
import org.w3c.dom.Element;
37
import org.w3c.dom.Element;
39
38
39
import org.apache.jorphan.gui.JLabeledTextArea;
40
40
public class XPathPanel extends JPanel {
41
public class XPathPanel extends JPanel {
41
    private static final long serialVersionUID = 240L;
42
    private static final long serialVersionUID = 240L;
42
43
Lines 44-50 Link Here
44
45
45
    private JCheckBox negated;
46
    private JCheckBox negated;
46
47
47
    private JTextField xpath;
48
    private JLabeledTextArea xpath;
48
49
49
    private JButton checkXPath;
50
    private JButton checkXPath;
50
51
Lines 52-75 Link Here
52
     * 
53
     * 
53
     */
54
     */
54
    public XPathPanel() {
55
    public XPathPanel() {
55
        super();
56
        super(new BorderLayout(5, 0));
56
        init();
57
        init();
57
    }
58
    }
58
59
59
    private void init() {
60
    private void init() {
60
        Box hbox = Box.createHorizontalBox();
61
        add(getXPathTextField(),BorderLayout.CENTER);
61
        hbox.add(Box.createHorizontalGlue());
62
        add(getCheckXPathButton(),BorderLayout.EAST);
62
        hbox.add(getXPathTextField());
63
        add(getNegatedCheckBox(), BorderLayout.SOUTH);
63
        hbox.add(Box.createHorizontalGlue());
64
		
64
        hbox.add(getCheckXPathButton());
65
66
        Box vbox = Box.createVerticalBox();
67
        vbox.add(hbox);
68
        vbox.add(Box.createVerticalGlue());
69
        vbox.add(getNegatedCheckBox());
70
71
        add(vbox);
72
73
        setDefaultValues();
65
        setDefaultValues();
74
    }
66
    }
75
67
Lines 145-153 Link Here
145
        return checkXPath;
137
        return checkXPath;
146
    }
138
    }
147
139
148
    public JTextField getXPathTextField() {
140
    public JLabeledTextArea getXPathTextField() {
149
        if (xpath == null) {
141
        if (xpath == null) {
150
            xpath = new JTextField(50);
142
            xpath = new JLabeledTextArea();
151
        }
143
        }
152
        return xpath;
144
        return xpath;
153
    }
145
    }

Return to bug 54789