Re: JInternalFrame and Action Listeners for the parent window

From: Craig Henry (craig_henry198_at_connectfree.co.uk)
Date: 02/14/04

  • Next message: Ryan Stewart: "Re: Delete a line in a file"
    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.
    >
    >


  • Next message: Ryan Stewart: "Re: Delete a line in a file"

    Relevant Pages

    • Re: tkinter puzzler
      ... >I have a gui with a bunch of buttons, labels, the usual stuff. ... > gui.Label.grid# put some widgets into the gui ... - Put the main portion of the gui into one frame and pack or grid the ...
      (comp.lang.python)
    • Re: MFC - Menuepunkte in ReleaseVersion inaktiv
      ... solltest Du immer den passenden View oder Frame verwenden. ... Wobei der Begriff GUI Funktionalität immer etwas schwierig ist. ... Next by Date: ...
      (microsoft.public.de.vc)
    • Re: perl Input from GUI - form
      ... My bad I didn't frame my question well. ... >> My question is what is the best way to have the input to my perl script ... >> through a GUi like a form or a window. ...
      (perl.beginners)
    • something wrong in wx
      ... but when I try to add GUI there is an error: ... # The buttons sizer will put them in a row with resizeable ... # Fit the frame to the needs of the sizer. ... # automatically resize the panel as needed. ...
      (comp.lang.python)
    • Re: child view and menu
      ... The way this is done is that you have a CMultiDocTemplate which specifies the document ... Or do you mean you want a menu in EACH child window, and all are the same type? ... case, you would not SetMenu in the view, you would SetMenu to the parent of the view, the ... MDI Child Frame. ...
      (microsoft.public.vc.mfc)