GUI implementation question

Started by
4 comments, last by Hedos 19 years ago
Hi. Im making a custom GUI system and I was wondering what is the better design strategy. Example A: Having tight control over when an object is added to a container. Container a = new Container(); Component b = new Component(); a.add(b); or Example B: Declaring the parent container on initialization. Container a = new Container(); Component b = new Component(a); Most high level GUI systems follow example A. Is there a reason for this or does it even matter? I prefer example B less code when creating a GUI. What do you think?
//My SignatureString sig = "Rangler";System.out.println(sig);
Advertisement
Provide access to both ways?

By the way, have you been using QT? ;)
I suppose. This may be a dumb question but keep im mind thats why I posted in the beginers forums but what is QT short for?
//My SignatureString sig = "Rangler";System.out.println(sig);
Qt is a gui system. mostly used under linux with the window manager KDE
Oh, no I've never used it, I'm most familiar with Java and Win32.
//My SignatureString sig = "Rangler";System.out.println(sig);
Alright, your examples just looked like QT code syntax :)

QT is not mostly used under Linux though, it's made to be a really portable GUI development kit, I currently use it to make my applications work under Linux too.

This topic is closed to new replies.

Advertisement