aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes GUI Fluctuation problem in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GUI Fluctuation problem in swing" Watch "GUI Fluctuation problem in swing" New topic
Author

GUI Fluctuation problem in swing

vijay jamadade
Ranch Hand

Joined: May 12, 2008
Posts: 235
Hi,

I have a dialogue in which i am entering values. After submit I am checking for duplicate values in database and if exist I am again creating the same dialogue. As it can happen many times. I want to continue with that code. So I have used while loop and I am checking the flag value which I get after calling action_insertok()

See the code



What should i do to avoid this. Is there any alternate way.


Regards, Vijay Jamadade.
( Nothing is Impossible.)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

What is DialogFactory?
Do you encounter the same problem if you switch from DialogFactory to JOptionPane.showXXXDialog ?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
vijay jamadade
Ranch Hand

Joined: May 12, 2008
Posts: 235
DialogFactory is the class that we are using to get customised dialogues for our application.

Anyways the JoptionPane is working fine without fluctuation. Extremely thanks maneesh for that.

But still I am not able to get why our customized dialogue is giving fluctuations. What can be the things behind this behaviour so that I can avoid while creating customised components?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Since we dont know what DialogFactory looks like, we cannot possibly deduce can we?
You can try comparing the JOptionPane#showXXXDialog method and your DialogFactory#showDialog method to see what different way the dialog is being created and displayed. Also check if the code tweaks the paint or paintComponent methods anywhere.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GUI Fluctuation problem in swing
 
Similar Threads
html:checkbox not mapping with form properties
Does (a=true) from if (a=true) evaluates to true ...
Problem with rs.isAfterLast() and rs.isFirst()
problem with file download dialogue box
identifier expected - single error