theundergod
IS-IT--Management
I am just curious. I am learning Java on my own and the latest book I bought tends to use a typecast of JPanel for the contentPane and I am wondering: since typcasting with JPanel gives you more options like setting the border for the whole JFrame, among others, why would you ever just use getContentPane() by itself with out the typecast? Can anyone explain the pros and cons of using it without the typecast and with it? Thanks for any info.
Jon
Jon