Reputation: 16555
I want to disable frame but button which is in upper menu in each frame (X-close ...) I want still enable
I try this:
frame.setEnable(true);
this works good on linux. These button are still active but in windows no. Is there options how to active them ?
Upvotes: 0
Views: 430
Reputation: 34
you can use "frame.setResizable(true);" - to enable min/max button frame.setDefaultCloseOperation(EXIT_ON_CLOSE);- to close
frame.setEnabled(false); to disable the frame.
Upvotes: 0
Reputation: 2806
you can add a panel to your frame and add all your components to that panel. Later when you want to disable the contents just disable the inner panel.
Upvotes: 0
Reputation: 324207
Is there options how to active them ?
Not that I know of.
You might be able to use the Disabled Panel.
Upvotes: 1