1

I have a GUI app that is supposed to run continuously, if the user wishes, showing the state of some database operations.

It uses checkboxes in a column in a JTable, as well as stand alone checkboxes. After a couple days of up-time the box in the checkbox refuses to render, though the text is still visible. This occurs for checkboxes active on the screen as well as those that are in new windows, instantiated after the problem is noticed. A similar situation is observed for radio buttons. The users can still interact with the components.

The GUI can use quite a bit of memory, but the logs (from log4j) do not indicate any problems.

It sound, to me, like a bug in swing or synth.


Now you see them. Now you don't.
Available Disappeared

Radios are there Not there


I have not been able to find any documentation of a bug in swing or synth. Has anybody else observed this problem? Is there a resolution?

rediVider
  • 1,266
  • 2
  • 12
  • 30
  • 2
    Verify that Swing GUI objects are constructed and manipulated _only_ on the [event dispatch thread](http://docs.oracle.com/javase/tutorial/uiswing/concurrency/initial.html). – trashgod May 30 '14 at 17:24
  • 1
    I assume you are using proper Layout except `null` layout. – Braj May 30 '14 at 17:27
  • @trashgod: Could this be related to a potential EDT issue, when new components, constructed in a new frame/window, exhibit the problem once the problem is encountered elsewhere? – rediVider May 30 '14 at 19:16
  • 1
    Yes, among myriad other possible causes; an [mcve](http://stackoverflow.com/help/mcve) that reproduces the problem may shed light. – trashgod May 31 '14 at 02:32

0 Answers0