The design section in WindowBuilder goes blank when parsing one specific JPanel

40 views Asked by At

I have implemented new code into my Java Swing project when suddenly one single panel goes blank on the design tab. Is there any known type of implementation that may interfere this way?

Blank design tab with one panel

Normal design tab with any other panel

I wish I could share the whole code, but since its GUI oriented it gets pretty long.

I am currently trying to locate the problem by mixing the current code with the last commit pretty much randomly. I would really appreciate it if you shared better ideas for locating the source of the problem.

Thank you.

1

There are 1 answers

0
Donato Martín On

Found it. I was using my own custom components and at some point decided to modify the behaviour of my extension table based on external parameters:

private CustomTable getTable() {
    if (table == null) {

        table = new CustomTable(frame.getService().getRegistros(), booleanField);
        
        ...

To fix this

private CustomTable getTable() {
if (table == null) {

    table = new CustomTable(frame.getService().getRegistros());

    ...

So apparently WindowBuilder struggles when it comes to the rendering of heavily modified components even if they are separate from the main GUI panel.

Thanks for the comments! :)