Is it possible to combine the "program" part in a shadowbox?
\documentclass{article}
\usepackage{float}
\floatstyle{ruled}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
\begin{document}
\begin{program} ## FROM HERE
\begin{lstlinsting}[basicstyle={\footnotesize},language=Java,showstringspaces=false,tabsize=4]
class HelloWorldApp {
public static void main(String[] args) {
//Display the string
System.out.println("Hello World!");
}
}
\end{lstlisting}
\caption{The Hello World! program in Java.}
\end{program} ## TO HERE
\end{document}
Example is slightly modified from the one at the bottom of link text. Here is an image of what I want to put in the shadowbox. The image is borrowed from the above page.