Skip to content

[UI] FeaturePanel fails to render in Eclipse WindowBuilder Design view #107

@AmlanDalai

Description

@AmlanDalai

Problem

Opening FeaturePanel.java in Eclipse WindowBuilder Design view
shows a completely blank canvas with zero components in the
Structure panel. This is a complete parsing failure — WindowBuilder
cannot parse any component in the file.

Evidence

  • Structure panel: empty
  • Design canvas: completely blank
  • Components parsed: 0

Compare this with UIPanel.java which renders all 6 components
correctly in WindowBuilder.

Root Cause

FeaturePanel extends ImageWindow rather than JFrame, and
builds its UI inside showPanel() and multiple helper methods
rather than directly in the constructor. WindowBuilder requires
UI components to be constructed in the constructor to parse them
correctly.

Additionally FeaturePanel uses setLayout(null) with hardcoded
setBounds() coordinates on line 198, making visual editing
impossible even if parsing were fixed.

Proposed Fix

  • Investigate feasibility of separating the UI construction from
    ImageWindow dependency
  • Refactor UI construction into constructor or initComponents()
    method for WindowBuilder compatibility
  • Replace setLayout(null) with GridBagLayout

Related

Directly aligned with the GSoC 2026 goal of streamlining the UI
using WindowBuilder for Eclipse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions