I want to know why component must be shutdown and IllegalStateException occur in swing.

Asked 1 years ago, Updated 1 years ago, 382 views

We are currently developing on-site using a swing-based library.
Press the search button (SearchBox), select an item, and return to the caller screen to set the selection value.
(I'm sorry that it's hard to understand the text because it's a little confidential information and it's hard to post screenshots and codes.)

For some reason, the exception "java.lang.IllegalStateException: component must be down" occurs.

I would like to first pursue the cause.
I would appreciate it if you could let me know what is possible.
I am also organizing the information that I can provide now, so I will add it.

The IllegalStateException itself is a non-check exception "indicating that the method was called at the wrong time", so let's check how to call the method as well.

java swing

2022-09-30 21:50

1 Answers

As a result, this question has been resolved.
When processing the child screen, an error occurred while trying to operate the parent screen when the parent screen was not displayed.This implementation was carried out within the valueChange event, but I would like to proceed with the direction of correcting it.


2022-09-30 21:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.