How can I output a message containing Variables in GUI?

I want to display a message "What is the sum of x and y " in a GUI, where x and y are variable(integer type). I would like to know how can I write the coding before i put the message into a JPanel.I hope Someone can help me ! Thank You Very Much!
[260 byte] By [@@Scottiea] at [2007-11-26 20:20:07]
# 1
String question = "What is the sum of " + x + " and " + y;JLabel label = new JLabel( question );
camickra at 2007-7-10 0:44:19 > top of Java-index,Java Essentials,Java Programming...