Solved

Dynamic creation of OBJECT against JDialog

Posted on 2012-12-28
10
403 Views
Last Modified: 2013-01-01
Dear Experts,

I have a JFrame and I have a JDialog . How to create a dynamic object in JFrame to call JDialog.

Regards
0
Comment
Question by:MILIND_JOG
  • 6
  • 3
10 Comments
 
LVL 16

Expert Comment

by:krakatoa
ID: 38728978
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?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 38728989
0
 

Author Comment

by:MILIND_JOG
ID: 38730931
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
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38730950
To write an application with menus, you should use ... JMenu
0
 

Author Comment

by:MILIND_JOG
ID: 38730974
Dear Chenj,
I will try for that and will come back to you.
Regards
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:MILIND_JOG
ID: 38731226
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
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38731253
there will be a scenerio of dynamic  Manu and submenues depending upon user rights and permissions
How 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.
0
 

Author Comment

by:MILIND_JOG
ID: 38731272
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
0
 

Author Comment

by:MILIND_JOG
ID: 38731290
Dear Cehj,
It is already 01:00 AM in India. I will come back to you after interval.

Regards
0
 

Author Closing Comment

by:MILIND_JOG
ID: 38734376
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
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
endX challenge 2 50
word0 challenge 4 54
Securing Jmx Console and web console 2 48
JList custom Cell Renderer refresh 15 43
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now