Skip to content

Access to ContenPane #7

@CyclingJack

Description

@CyclingJack

Hello,
I am programming a billing programme for my IT project and I am using jGAF.
I have developed an application interface that loads the appropriate JPanel via the respective menu selection.
This is done in a menu manager class in a switch case loop, in which I assign the component as a frame to a variable via EZEnvironment.getEZUIListener.getApplicationComponent().
But I can't get to the ContentPane of the frame via this. I have to convert this to a JFrame via a cast, from which I can add the panel to the interface via .getContentPane().add(new WorkPanel, BorderLayout.CENTER).
Of course, I would like to do this without a cast, because that can always lead to errors.
Is there another possibility, or can this functionality of accessing the ContentPane directly be included in the framework?

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