Java Reference
In-Depth Information
iter
=
bodyElement.getChildElements(new
QName("return"));
return ((SOAPElement) iter.next()).getValue();
}
}
public static void main(String[] args)
{
Runnable r = new Runnable()
{
@Override
public void run()
{
new RomanNumerals();
}
};
EventQueue.invokeLater(r);
}
}
class GPanel extends JPanel
{
private GradientPaint gp;
@Override
public void paintComponent(Graphics g)
{
if (gp == null)
gp = new GradientPaint(0, 0, Color.pink, 0,
getHeight(), Color.orange);
// Paint a nice gradient background with pink at the
top and orange at
// the bottom.
((Graphics2D) g).setPaint(gp);
g.fillRect(0, 0, getWidth(), getHeight());
}
}
Search WWH ::




Custom Search