SetModal on JDialog is reflecting on new instance of API.

In java application we have facilitated user to open a "New Instance". While working with copy i.e. on new instance if user has been opened a dialog box onto we have set Modal "True" then on another instance of application, user would not perform any thing until that dialog get disposed.

A.Pancholi wrote:
Thank you very much for your good response. I would like to know:-
a modal dialog should only block it's own parent:
In my case while opening "New Instance" of Application, the new instance and its copy, is not sharing anything. Thus they are like separate application. So Is their any bug in by code that's not allowing to work on copy of Application, if Dialog of new instance is being opened, which has setModel(True).So you are running the same Application twice and expect a Dialog from the second application to know about the parent Window in the first application? That's not a bug, that's you misunderstanding how things work.
Since your goals are still unclear (and therefore impossible to help), you should provide an [SSCCE |http://sscce.org] that shows us exactly what you're talking about.

Similar Messages

  • How can i run a new instance of API by providing seperate JVM.

    Hello,
    I have some static member and function and they conflicted while opening the new instance of API. Can i run a new instance in separate JVM so it will run independently even we have static members and functions.
    Or do we have any other procedure, without removing "static" we can run with out conflicting ?
    Thanks
    Ashish Pancholi

    YuccaS wrote:
    Once again someone thinks static is the same in a distributed application/clustered system. The OP must realise that static is only static per jvm of which there can be more than one in an environment and may not work in a cluster if pooling is used across the cluster. I am no expert on this myself but I think the solution has something to do with creating your own class loader or use JEE which may provide the OP with the flexibility they wish to have?Personally I think they've just found a new version of some API they're using, and don't want to refactor all their code to fit it. Writing web service layers and the like, even a bunch of RMI code, is going to be more painful than that.

  • Can't create new instance of class in servlet.

    I'm running Tomcat 5.5 and am trying to create a new instance of a class in a servlet. The class is an Apache Axis (1.4) proxy for a Web Service.
    Is there any particular reason this is happening, and any way to fix it?
    The stack trace is as follows:
    WARNING: Method execution failed:
    java.lang.ExceptionInInitializerError
         at org.apache.axis.utils.Messages.<clinit>(Messages.java:36)
         at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:184)
         at org.apache.axis.configuration.EngineConfigurationFactoryFinder.access$200(EngineConfigurationFactoryFinder.java:46)
         at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:128)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
         at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
         at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
         at org.apache.axis.client.Service.getAxisClient(Service.java:104)
         at org.apache.axis.client.Service.<init>(Service.java:113)
         at server.proxies.webservicex.net.stockquote.StockQuoteLocator.<init>(StockQuoteLocator.java:12)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)

    Of course there's a particular reason it's happening. Nothing in a computer happens unless it's for a particular reason. You question ought to be what is that reason.
    Well, I don't know what it is. The class org.apache.axis.utils.Messages threw some kind of exception when it was being loaded, because <clinit> means "class initialization" in a stack trace. That would most likely be in a static initializer block in that class. I expect it is because of some mis-configuration in your system, but you'd have to read and understand the apache code to find out what. Or maybe ask over at the Axis site, where there might be a forum or a mailing list.

  • Creating a new instance of a member class?

    I'm writting a serialization library for a college project and I have a problem with deserializing an object which class contains a member class. A rough example:
    class Outer{
         class Member{
              double d =0;
         public Member member =new Member();     
    }Most basically I tried to get a new instance of the Member class in order to get the double field, change it's value, then use that new instance as a field of an object of the Outer class.
    Field f = Outer.class.getDeclaredField("member");
    f.setAccessible(true);
    f.getClass().newInstance(); Both this and the Constructor method throw an exception:
    Exception in thread "main" java.lang.InstantiationException: java.lang.reflect.Fieldpointing at the line with newInstance().
    Is there anything I can do to create an object of a member class? And if not then taking into account that I have to deserialize the Outer object from an XML file what could be the alternative?

    The error message already gives you a hint that it's not class Outer.Member you're instantiating there (review the API docs)...
    import java.lang.reflect.*;
    public class Outer{
      public static void main(final String[] args) {
        final Field f = Outer.class.getDeclaredField("member");
        f.setAccessible(true);
        final Constructor ctor =
                f.getType().getDeclaredConstructor(new Class[] { Outer.class });
        final Object outer = new Outer();
        final Object member = ctor.newInstance(new Object[] { outer });
        // set member.d
        f.set(outer, member);
      class Member{
        double d =0;
      public Member member =new Member();     
    }

  • Not reflecting the new value of the AWvariable

    I am working with Jdeveloper and BI beans
    we are using Java Analytical workspace API for connecting and saving the user input as a Analytical workspace Variable
    by using fallowing code
    awConn.executeCommand("awvariable=value");
    here the problem is i can not made this assignment perminent in Analytical Workspace
    i.e after execution of the program i checked with AnallyticalworkSpace manager's worksheet it not reflecting the new value of the AWvariable. It is showing only old value.
    how can i do that assignment it from java api .
    any one can help me

    That other post looks different, though - the OP is now manipulating the model.The OPs statement of the problem was:
    Adding new data to the exitsting model causes the JList to display blank when I refresh the screen.
    The suggestion in the other posting was to change the model not the array and the tutorial has a working example of this.
    The OPs question was:
    When my action performed creates a new instance of the model everything works fine but is this how it should work?
    The answer to this is no, you don't need to change the model, just update the model.
    So if the OP read the other posting and read the tutorial they should have an answer to their problem.
    As you suggested there is no need to create a custom model. The example in the tutorial uses the default list model, if the OP read the tutorial they would know that.

  • Why is it that sometimes when I use my middle mouse button to click on a link to open it in a new tab I will have it open it in an entirely new instance of Firefox instead of a new tab?

    Occasionally when I click on a link with my middle mouse button, instead of opening the page in a new tab, it will open a new instance of Firefox.
    I've looked through some of the settings and I wasn't able to find anything. It really gets to be bothersome at times because I prefer things to be in tabs instead of a new browser.

    It's not specific sites. I can middle-click on the same link 50 times and it will open it in a new tab 45 times and 5 of those times, it will randomly open it in an entirely new window. I don't know what's causing this.
    It happens so randomly that I don't know how to pin-point what it could be.

  • Schedule Webi (and Crystal) report without creating a new instance

    Hi all,
    I'm looking for the way to not create a new instance of the report when we schedule a report? Is it any actions on the InfoObject object? Or is it just impossible to do?
    Thanks in advance !
    Edited by: jerome.vervier on Nov 21, 2011 11:40 AM

    Hi,
    With regards to your query, whenever a report is scheduled an instance of it will be created.
    Therefore, it is not possible to schedule a report without creating an instance.
    Regards,
    Shreyans

  • Internet Shortcuts saved on Desktop open new instance of Firefox 3.6 using clean profile--how can I make it open all shortcuts using current profile?

    I rely heavily on Firefox's profiling ability to assist me in my web design projects. Lately, using Firefox 3.6, I have run into some problems with how it opens Internet Shortcuts that are saved locally (i.e.- shortcuts that reside on my Desktop). When I double-click on one of these shortcuts, a new instance of Firefox 3.6 is loaded with the saved website from the shortcut, but it's also initialized a fresh profile (i.e.- my bookmarks are gone, no add-ons, etc.--it's as if it uses some sort of "hidden" clean slate to load the shortcuts).
    Is there any way to force Firefox to load all shortcuts into whatever profile I'm currently using at that given moment? I think the reason this has happened to begin with is because of the fact that I did some stuff to Internet Explorer awhile back that caused some problems with the Internet Shortcut associations and it all led to this eventuality.
    I'm running Windows XP Pro and have the following profiles with my Firefox versions:
    "C:\Program Files\Mozilla Firefox 3.6\firefox.exe" -no-remote -p Firefox3.6
    "C:\Program Files\Mozilla Firefox N\firefox.exe" -no-remote -p FirefoxN
    "C:\Program Files\Mozilla Firefox 3\firefox.exe" -no-remote -p Firefox3
    "C:\Program Files\Mozilla Firefox 2\firefox.exe" --no-remote -p Firefox2
    When I go into the "Folder Options / File Types" and double-click on "Internet Shortcut", I have the following within the "Advanced" settings (for the "open" action):
    Action: open
    Application used to perform action: rundll32.exe shdocvw.dll,OpenURL %l
    "Use DDE" is checked...
    "DDE Message" is blank...
    "Application" is "shdocvw"...
    "DDE Application Not Running" is blank...
    "Topic" is "System"
    Again, I think the root problem here is to do with the profiles and how they're handled when being opened with Firefox but I can't discern how to apply a fix with all this as I've obviously goobered this up a bit. I would really appreciate some professional knowledge on this and would prefer to avoid any reinstalls of anything if possible.

    To save your sanity with this issue, my advice is to find a method other than desktop shortcuts to open those URL's.
    1. Desktop shortcuts are going to open the Default Browser.
    a. With multiple versions of Firefox installed that would be the last version that was installed when you have Firefox set as the Default Browser in Windows..
    b. The Default Browser is going to use the Profile that shows a Default=1 in the profiles.ini file.
    c. The Default Browser with the Default Profile isn't going to open if you have any other versions of Firefox already running, and the -no-remote command line parameter doesn't work in this situation.
    2. The use of multiple Profiles and multiple versions isn't officially supported by Mozilla, and all the Bug reports that I have ever read about Requests for Enhancement have been WONTFIX'd by the developers. Basically we have to work with the limitations in Firefox and maybe improvise work arounds by ourselves. I've even seen a few threats about removing Profiles altogether in RFE Bug reports about Profiles.
    I have had so many problems over the years with this Default Browser / Default Profile thing over the years that personally I find it easier to just set Opera as the Default Browser in Windows rather than have a Profile get b0rked because some other program I am using decides it wants to open the Default Browser unexpectedly. I don't use Opera for much, but it is a lot better than IE for purposes of being the Default Browser, considering the quirks I have seen with Firefox and multiple Profiles.
    I have written a number of postings over at the MozillaZine Builds forum over the years about installing multiple versions of Firefox and using multiple Profiles. There's a lot of tips and comments provided by other multiple Profile users in one of those threads. Why don't you read those threads and see if it gives you some ideas or solutions I haven't thought of.
    http://forums.mozillazine.org/viewtopic.php?f=23&t=1062975
    http://forums.mozillazine.org/viewtopic.php?t=613873
    http://forums.mozillazine.org/viewtopic.php?t=462431
    The last thread listed has a lot of comments offered by other users, the first two threads were locked as a How-to sticky thread.

  • My email recently changed and so I updated my Apple ID to reflect my new email, but my Icloud account still shows the old email as the username on both my Iphone and Ipad and for the life of me I can't figure out how to change or delete it.

    My email recently changed and so I updated my Apple ID to reflect my new email, but my Icloud account still shows the old email as the username on both my Iphone and Ipad and for the life of me I can't figure out how to change or delete it.  My password doesn't work with the old email address.  When I look for my old email address in the Apple ID support area it says that the ID doesn't exist.  Help!!!

    You have to go to Settings>iCloud and tap Delete Account, then sign back in with your updated credentials.  This deletes the account and your synced data from your device, but not from iCloud.  Provided you are signing back into the same account and not changing to a different account, your data will be synced back to your device when you sign back in.

  • I need to transition my 1st Generation Apple TV from an older instance of iTunes to a new instance of iTunes on my brand new Mac... How do I "switch" from one instance of iTunes to another? How do I get the 5 Digit Code Network to come back on my Screen?

    I need to transition my 1st Generation Apple TV from an older instance of iTunes on my iBook to a new instance of iTunes on my new Mac... How do I get the 5 digit Network code to come back? Is there anyway for 1st Generation Apple TV to be synched to two instances of iTunes or do I have to choose one or the other? I appreciate any advice or suggestions. Thanks!

    The 5 digit code is every time different. That does not matter. Just integrate every device into your network.
    You can connect many computers to Apple TV but syncronisation works exactly with one computer. That's why I use "streaming". But you can sync one computer, then another, and so on. The content on your Apple TV is the content from your computer that has synced last. But you can not mix it.
    The new Apple TV has no syncronisation. Everything is streamed,
    Regards,
    Torsten,
    Germany

  • How can I change my icloud acct information to reflect my new changed apple id

    how can I update my icloud account information to reflect my new apple id?

    Welcome to the Apple Community.
    You can change your details at...
    My Apple ID

  • How can i create a new instance on unix

    Hi,
    How can i create a new instance(instance only) on UNIX and how can i mount my database with this new instance.

    udayjampani wrote:
    Hi,
    How can i create a new instance(instance only) on UNIX and how can i mount my database with this new instance.1) Define Instance in your way!!?
    If you simply create a pfile and startup nomount with it, then -in theory- you have an instance running ( this method is used e.g. for restoring a rman backup )
    2) You can't. Database files are bound to a certain instance. What you can do is recreate an instance with e.g. a different name, using the scripts generated by a 'alter database backup controlfile to trace;' command
    Cheers
    FJFranken

  • How can we open a new instance of Firefox without URL bar and any other control (except PREV, NEXT and RELOAD)?

    Dear Volunteers,
    I am looking for a solution for Firefox Win App and Mobile Apps where on click of a button from the website page, we should be able to launch a new instance of firefox instance (like a popup box) with following features:
    a. It SHOULD NOT have any URL bar to display.
    b. It SHOULD NOT show any plug-ins or any other functionality except Previous, Next and Reload.
    c. This instance of firefox should always be on-top of all other application.
    Please advise, how firefox can be customized to offer in all platforms by default.
    With lot of hope from this volunteer community,
    Rajiv

    You would need your visitors to install some kind of add-on, since web pages do not have permission to block the display of the page address and users do not need to allow a new window to be modal and block other Firefox windows, much less other OS windows.
    Over the years, people have developed extensions for kiosk-style displays. You could investigate those for ideas.

  • Create a new instance in HPUNIX 8.1.7.database without Xwindows

    Can Somebody help me?
    I want to create a new instance in HP-UX 8.1.7 database. There is no Xwindows installed. I think i should do this in SQL plus.
    If so can sombody give my this script.
    thanks

    Can Somebody help me?
    I want to create a new instance in HP-UX 8.1.7 database. There is no Xwindows installed. I think i should do this in SQL plus.
    If so can sombody give my this script.
    thanks I have not tried this but expect you could use dbca (database creation assistant) with a script on the HP host.
    RP.

  • ORA - 01034 : ORACLE NOT AVAILABLE  Error while creating new instance.

    I was trying to create new instance in unix environment. I have configured all my shell scripts to run and install but while performing the install I get the
    following error message and fails.
    ORA-01034: ORACLE not available
    I have previously installed an instance using same scripts but fails this time when I copy the scripts and modify them in new folder. Pointed out the path in the scripts correctly.
    I am a junior DBA and I would appriciate your help.

    Paste here scripts, your .profile (or environment variables according to Oracle) and your init.ora

Maybe you are looking for