hudi
hudi

Reputation: 16555

How to disable frame and enable close/min/max button

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

Answers (3)

Prahlad Rao
Prahlad Rao

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

sajjadG
sajjadG

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

camickr
camickr

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

Related Questions