Java Reference
In-Depth Information
import javax.xml.soap.SOAPConstants;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
class RomanNumerals extends JFrame
{
private JTextField txtResult;
RomanNumerals()
{
super("romannumerals");
setDefaultCloseOperation(EXIT_ON_CLOSE);
// Create a gradient panel in which to present the
GUI.
GPanel pnl = new GPanel();
pnl.setLayout(new BorderLayout());
// Build input panel.
JPanel pnlInput = new JPanel();
Border inner = BorderFactory.createEtchedBorder();
Border outer = BorderFactory.createEmptyBorder(10,
10, 10, 10);
pnlIn-
put.setBorder(BorderFactory.createCompoundBorder(outer,
inner));
pnlInput.setOpaque(false);
pnlInput.add(new JLabel("enter roman numerals or in-
teger:"));
final JTextField txtInput = new JTextField(15);
pnlInput.add(txtInput);
pnl.add(pnlInput, BorderLayout.NORTH);
// Build buttons panel.
JPanel pnlButtons = new JPanel();
inner = BorderFactory.createEtchedBorder();
outer = BorderFactory.createEmptyBorder(10, 10, 10,
Search WWH ::




Custom Search