"the internal frame does not have any max,min,close,etc."
Look at the JInternalFrame API and see How to use Internal Frames.
You need to set the iconifiable
, maximizable
, and closable
properties, as by default, they are set to false
public boolean setMaximizable(boolean b)
public void setIconifiable(boolean b)
public void setClosable(boolean b)
Or construct the frame with those values
public JInternalFrame(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Setting the values to true will give you your buttons to close, maximize, and iconify the frame
"I have create and internal frame which has been added to a frame"
JInternalFrames
are meant to used with and added to JDesktopPanes
not the JFrames
. See the link above I provided on how to use internal frames