Re: JInternalFrame and Action Listeners for the parent window
From: Craig Henry (craig_henry198_at_connectfree.co.uk)
Date: 02/14/04
- Previous message: jz-list: "programmer required"
- In reply to: Jon A. Cruz: "Re: JInternalFrame and Action Listeners for the parent window"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 13 Feb 2004 23:39:23 -0000
Is an internal frame listener the best option ?
Or is there a neater method ?
Regards
Craig Henry
"Jon A. Cruz" <jon@joncruz.org> wrote in message
news:402BA7BE.40605@joncruz.org...
> craig_henry198@connectfree.co.uk wrote:
> > I have a JDesktopFrame and JInternalFrame setup (MDI). I'm creating
> > windows fine and dandy all over the shop and putting interface / code
> > inside the windows.
>
> Ewww...
>
> MDI has be deprecated for 'bout 10 years now at least.
>
>
> >
> > However I want to be able to click a button inside one child window
> > and that opens up another child window of the parent frame but I cant
> > work out how to call the action listener of the parent frame from
> > inside the internal one.
>
> Don't think in terms of GUI things holding your logic and running your
> state.
>
>
> Instead come up with some model classes that represent the data and
> concepts of your application. Have all these talk to each other. Then
> just hook up some windows to the proper models.
>
> Think of the models as the skin and bones of your app. And the GUI as
> the skin. Get the structure and functionality from the models and then
> just hang the GUI on them.
>
>
- Previous message: jz-list: "programmer required"
- In reply to: Jon A. Cruz: "Re: JInternalFrame and Action Listeners for the parent window"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|