Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    4,099

    Re: Should GUI Panels be Singletons?

    Ok, so that is all good and well in those examples, but what about a case like this:
    1. You have a main JPanel that contains all the panels for the project (the JFrame's JPanel, let's call it:...
  2. Replies
    11
    Views
    4,099

    Re: Should GUI Panels be Singletons?

    I understand that in theory, however how does one ensure the model state is constant throughout the entire program without passing it (or having it as a singleton)?
  3. Replies
    11
    Views
    4,099

    Re: Should GUI Panels be Singletons?

    The children JPanels need access to arrays of objects, more general GUI elements, ect, that are used throughout the entire GUI. For example, an object that references a user's profile, or an array of...
  4. Replies
    11
    Views
    4,099

    Should GUI Panels be Singletons?

    I am working on a very large GUI, with many classes that extend JPanels. Most of the JPanels (and other classes) need connections to "host" GUI containers (the larger GUI container that the JPanel is...
Results 1 to 4 of 4