Results 1 to 3 of 3
  1. #1
    hannes is offline Member
    Join Date
    Nov 2009
    Posts
    54
    Rep Power
    0

    Default Interface and executor

    Hey,

    I'm writing a program in java to draw graphs. Now my question: I use swing for user interface and i want a separate object for de code behind the user interface object( i do this because i can reuse my user interface object later ). For the moment the executor object owns the user interface object( an JPanelExecutor owns a JPanel) and the upper object ( the JFrame ) owns all the executors. Should i do it like this or are there other ways to do this?

    (Sorry for my English, i'm belgian)

    Hannes
    Last edited by hannes; 01-03-2010 at 06:22 PM.

  2. #2
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    284
    Rep Power
    5

    Default

    Many ways can be made to work. The one you describe can be made to work.

    Try googling "model view controller pattern" for a standard way to do what you describe.

  3. #3
    hannes is offline Member
    Join Date
    Nov 2009
    Posts
    54
    Rep Power
    0

Similar Threads

  1. Is there a GUI interface for...
    By smith427 in forum New To Java
    Replies: 3
    Last Post: 12-03-2009, 07:17 AM
  2. Interface?
    By makpandian in forum New To Java
    Replies: 5
    Last Post: 03-26-2009, 10:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •