From: Rahul S. <shr...@ho...> - 2005-10-21 02:36:48
|
Hi Hi i have started using gui4j for my project, but needed some new features. This is my situation - i send messages to my java code as input stream. This consists of the xml message which pops up the GUI. This works fine. Now what i want is to update this popped up GUI. All this has to be dynamic. I have been going thru the various examples but everywhere you set the title of the view in the java program. Is there any way to set the title of a view (eg. a view that has just one label) from the xml i.e. i do not want to programatically specify the title of the view but let the xml decide what it will be. I also want to specify the name of the window in the xml code... so that i can use gui4jView.getWindow().setName(nameofwindow) where nameofwindow is again passed by xml. Currently the way i am doing is that in onInit() of any component i pass the name and title and once the GUI has been displayed using the xml i change the title and name. Now there is one form which has only labels and its not possible for me call onInit(). It would be really helpful if you could add 2 new attributes in the view element namely title and name. So that when we send upadtes to the java program i just have to send the name of the view and it updates the view. Also one more request - the createDialog takes GUI4JWindow as its first argument. I want to create a dialog box which has my own java swing window (not generated by gui4j) as its parent... so can you give an option of using Frame as the owner of the dialog window or suggest a way of how this can be done in the current code. Thanks Rahul |