Today while surfing through various questions, I encountered one QUESTION, this seems to me a bit weird, why would one wants to add a JPanel
to a JLabel>
this seems to me a bit weird, why would one wants to add
a JPanel to a JLabel,
yes thats right
are there any genuine reasons as to such situation can arise,
so is it just trivial?
no, isn't trivial, because only JFrame
/JDialog
/JWindow
and JPanel
have got pre_implemented LayoutManager
, for rest of "Custom JComponent
" you have to declare proper LayoutManager, programatically