To Add Minimize /Maximize button to JDialog orJPanel
问题 Is it possible to add maximize/minimize button to the JDialog? if not then can we add these buttons to JPanel? I have a JPanel and inside that panel there is a JDialog.I want to add a minimize/maximize button such that when that button is clicked JDialog and the components under JDialog get adjusted according to the JPanel. like when i click maximize then jpanel should get enlarged and components inside that panel(JDialog) also get enlarged and vice versa for minimize button. The solution I