MILIND_JOG
asked on
Dynamic creation of OBJECT against JDialog
Dear Experts,
I have a JFrame and I have a JDialog . How to create a dynamic object in JFrame to call JDialog.
Regards
I have a JFrame and I have a JDialog . How to create a dynamic object in JFrame to call JDialog.
Regards
I might not be the only one struggling to understand why your recent questions are so concerned with performing tasks "dynamically" ? What do you mean by that and what are you hoping to achieve?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dear Krakatoa,
I am trying to design an application which has menus and sub menues. Menues are designed with JButton in JPanel with vertical display mannor. Every item of menu has specific sub menues and are to be occomodated in set of JButtons in another panel. Submenu Lables are depending upon runtime selection of Menuitem. The depending submenu Lables can be set successfully and achieved subsequently without any problem. When trying to set the trigrer on selection of submenu item, I must create an object for associated JDialog where I am facing the problem. I hope I am able to discribe you the requirement.
Regards
I am trying to design an application which has menus and sub menues. Menues are designed with JButton in JPanel with vertical display mannor. Every item of menu has specific sub menues and are to be occomodated in set of JButtons in another panel. Submenu Lables are depending upon runtime selection of Menuitem. The depending submenu Lables can be set successfully and achieved subsequently without any problem. When trying to set the trigrer on selection of submenu item, I must create an object for associated JDialog where I am facing the problem. I hope I am able to discribe you the requirement.
Regards
To write an application with menus, you should use ... JMenu
ASKER
Dear Chenj,
I will try for that and will come back to you.
Regards
I will try for that and will come back to you.
Regards
ASKER
Dear Cehj,
You are correct. For this moment my requirement can be fulfilled through JMenu. I may need some support hence I would like to keep this issue to remain open. But I am 100% sure that the initial issue of Dynamic Object will definately arrise in near feature. In next few days I am going to develop an application where there will be a scenerio of dynamic Manu and submenues depending upon user rights and permissions. I will highly appreciatre you if you give your expert comments on Dynamic JDialog in the same request. If you still feel that it is not revevant now, I will not insist you.
Regards
You are correct. For this moment my requirement can be fulfilled through JMenu. I may need some support hence I would like to keep this issue to remain open. But I am 100% sure that the initial issue of Dynamic Object will definately arrise in near feature. In next few days I am going to develop an application where there will be a scenerio of dynamic Manu and submenues depending upon user rights and permissions. I will highly appreciatre you if you give your expert comments on Dynamic JDialog in the same request. If you still feel that it is not revevant now, I will not insist you.
Regards
there will be a scenerio of dynamic Manu and submenues depending upon user rights and permissionsHow you deal with that depends on the complexity of the parameters. Personally i would try to keep it as simple as possible. You might, e.g. have 2 or 3 cards in a CardLayout to choose from, depending on the parameters.
ASKER
I feel that it will be very difficult to restrict the choices for 2 or 3 or even 20. The permissions usually depends upon user choices and there the dynamic menu and submenues comes into play. I am extremely sorry for bothering you a lot.
Regards
Regards
ASKER
Dear Cehj,
It is already 01:00 AM in India. I will come back to you after interval.
Regards
It is already 01:00 AM in India. I will come back to you after interval.
Regards
ASKER
Dear Cehj,
Thanks for your support. My issue is resolved by using getConstructor and parameters. But I really extend my sincere thanks to you for your valuable involvement and support.
Thanks & Regards
Thanks for your support. My issue is resolved by using getConstructor and parameters. But I really extend my sincere thanks to you for your valuable involvement and support.
Thanks & Regards