Sanjiv Kumar

Greenhorn
+ Follow
since Feb 17, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sanjiv Kumar

Originally posted by Roopa Bagur:
The main window and most of the dialogs of my program are resizable. Is there any way to limit the minimum size since the windows start to get very ugly when reduced too far. I have tried setting the minimum and preferred sizes on all of the containers, but they seem to be ignored. Is this tied to the fact that they can be reduced to icon size and if the minimum were limited, then the icon would be that size as well?
I am using border layout manager
Thanks,
Roopa


U should use Gridbaglayaout. Your component is resizable so gridbaglayout is very helpful to u.
22 years ago

Originally posted by Bill Prentice:
Maybe the point here is that the Dialog is taking a long time to actually arrive on the screen once the button is clicked, is this the case?. If so, it is the event not the button that is the root of the problem.


Hi Bill Prentice
Yah i think u are right. Because i am doing modal dialog. In modal dialog we can not do anything before closing the that dialog. If the case is that then what will be solution???
22 years ago

Originally posted by Ashutosh Uprety:
set the modal parameter of ur Dialog to true
This will prevent u from clicking on the parent window unless the dialog is closed.
constructors are
public Dialog(Frame parent,String title,boolean modal)
public Dialog(Frame parent,boolean modal)


Hi Ashutosh
ThanQ for your suggestion.
I am doing same thing. But problem is if i clicking more than one times before coming the dialog then it is coming more than one Dialog.
With Regards
Sanjiv

22 years ago
Suppose i click 2-3 times on button before dialog appear. In that case that many times action will performed. i am opening dialog in action performed.so 2-3 dialog is opening.
22 years ago
Hi All,
I m adding actionlistener to a button and opening a dialog in actionperformed.If i m clicking 2-3 times on button the dialog is coming that many times.Have u any idea about it to avoid it.....???
22 years ago