. . . but when I press the Maximum button active JPanel area remain same but on rest of screen JFrame area is being shown. . . .
Which means you probably didn't use proper layout to place components into your frame.
If you are using NetBeans GUI builder, then select your parent frame and in Properties window set
resizable to false (uncheck resizable item).