Forums Register Login

inactivate all components

+Pie Number of slices to send: Send
is there a way to inactivate all components inside a panel without having to
write code to manualy disable each button
+Pie Number of slices to send: Send
 

...without having to write code ...


How would you do anything at all without writing somce code?
JPanel's getComponents() returns an array of components that have been added to it if it helps.
+Pie Number of slices to send: Send
You could set a glasspane to stop mouse events getting through to the components. See this link for an example
Root Pane Example
+Pie Number of slices to send: Send
cheers for that
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 586 times.
Similar Threads
JMenu hides behind components
GridBagLayout - view grid lines
deleting old JDK
java beans
Session Timeouts - Websphere
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:48:35.