• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple windows in an app - best way?  RSS feed

Mike Lipay
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an application that will open multiple windows, and I was wondering about the best design approach to this problem. Here's a general flow of the application (let's assume a college student system for ease of stating the issue):

- The main application is launched and presents a window with a combo box listing students. The user selects one of the students and general information about the student is filled into text fields (name, enrollment date, major, etc.), and a number of buttons are enabled (save, clear, remove, current term, extra-curricular activities, completed courses, etc.).

- The user can then click on one of the buttons (say, Current Term), this opens a second window (first still present but not active), reads a file and displays the course information for which the student is enrolled. The window also includes several buttons (add, clear, remove, save, exit).

Now, the second window posses several problems that I need help in dealing with.

- Should the second window (and all of the others) be within the main class, or should they be a classes of their own,

- Should the primary window be in a separate class with the main class just calling all of the classes

- If all of the windows are to be handled in the main class, how do I handle multiple buttons with the same name (save, clear, etc.)

- How do I present the secondary windows while keeping the main window visible, but not active?

There are probably other questions, but I can't think of them right now.


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!