A
anon
Originally posted in comp.lang.java.gui, but it was suggested over
there that I might want to repost here. Here is the thread over there
in case you want to review what has already been discussed:
http://groups.google.com/group/comp...2d5e61e1d62/78c74b6bea22e0ab#78c74b6bea22e0ab
I have a working prototype of an SQL database driven GUI written in
another language. The other language is not OO. I have been tasked
with developing the application in Java.
The existing application has a series of tables that define the many
potential GUI's. A separate series of tables hold the actual user
input.
Given a specific GUI, I can fairly easily query the previously created
user input, if any, through a persistence layer (such as Hibernate).
Similarly, I can store newly created user input.
Hence, the existing application really consists of two applications.
The first is the collection and storing of information necessary to
present a specific GUI. The second is what might be called the "real"
application in that it presents a specific GUI and collects and stores
the data specific to that GUI.
My question relates to the "real" application. The presentation of
the relevant GUI is developed at run time based on data in the SQL
database. Does anybody know of an existing class that might implement
something like this, or am I stuck developing one on my own? (I
suspect the latter). Whether known or not known, does anybody have an
opinion as to whether developing the GUI in a dynamic fashion like
this will be hopelessly inefficient (i.e., slow)?
I know this is heresy, but it would seem to me that this might be the
exception that breaks the rule in that in this specific circumstance
(where the GUI is data driven) the absence of a layout manager might
be the best way to go, if for no other reason than the users are used
to precisely placing the widgets. That is, the data for each widget
presented in a GUI includes positional values (in inches, not pixels).
Please don't beat me up too badly for suggesting that my presentation
layer avoid layout managers. I recognize that exact placement is not
generally desirable. But unless I want to redevelop the application
that creates the specs for the GUIs to be layout manager sensitive
and,at the same time, train the users on how to run such an
application, I think I might be stuck.
I suppose it is possible to take the GUI data and develop a
GridBagLayout spec. I'm not chomping on the bit to go that route.
Thanks for any and all thoughts.
Jim
there that I might want to repost here. Here is the thread over there
in case you want to review what has already been discussed:
http://groups.google.com/group/comp...2d5e61e1d62/78c74b6bea22e0ab#78c74b6bea22e0ab
I have a working prototype of an SQL database driven GUI written in
another language. The other language is not OO. I have been tasked
with developing the application in Java.
The existing application has a series of tables that define the many
potential GUI's. A separate series of tables hold the actual user
input.
Given a specific GUI, I can fairly easily query the previously created
user input, if any, through a persistence layer (such as Hibernate).
Similarly, I can store newly created user input.
Hence, the existing application really consists of two applications.
The first is the collection and storing of information necessary to
present a specific GUI. The second is what might be called the "real"
application in that it presents a specific GUI and collects and stores
the data specific to that GUI.
My question relates to the "real" application. The presentation of
the relevant GUI is developed at run time based on data in the SQL
database. Does anybody know of an existing class that might implement
something like this, or am I stuck developing one on my own? (I
suspect the latter). Whether known or not known, does anybody have an
opinion as to whether developing the GUI in a dynamic fashion like
this will be hopelessly inefficient (i.e., slow)?
I know this is heresy, but it would seem to me that this might be the
exception that breaks the rule in that in this specific circumstance
(where the GUI is data driven) the absence of a layout manager might
be the best way to go, if for no other reason than the users are used
to precisely placing the widgets. That is, the data for each widget
presented in a GUI includes positional values (in inches, not pixels).
Please don't beat me up too badly for suggesting that my presentation
layer avoid layout managers. I recognize that exact placement is not
generally desirable. But unless I want to redevelop the application
that creates the specs for the GUIs to be layout manager sensitive
and,at the same time, train the users on how to run such an
application, I think I might be stuck.
I suppose it is possible to take the GUI data and develop a
GridBagLayout spec. I'm not chomping on the bit to go that route.
Thanks for any and all thoughts.
Jim