Closing java dialog

Dear all
Am facing problem closing my forms am developing multiple form soft phone
For calling the next page am using this code :
private aboutBox aboutBox;
JFrame mainFrame = MyownprojectApp.getApplication().getMainFrame();
aboutBox = new MyownprojectAboutBox(mainFrame);
aboutBox.setLocationRelativeTo(mainFrame);
aboutBox it's the screen it's working fine for the first time but if i close this dialog using
Windows red X button or using dispose code it close but if i call it again without shutdown
My application it show the window but as before i close it it's like hide and show without
Shutting it or starting it and operate the code with it i have to shut down the application then
Start it again ,
note : i create my soft phone using net beans and my main page type = jPanal and ather pages jDialog
i don't know where is the wrong maybe i create jDialog is that correct or what if it's not what is the
what is the correct way to create multiple form using net beans and how i can call it and i will post code
for my close command :
stopMedia();
if (aboutBox == null) {
JFrame mainFrame = MyownprojectApp.getApplication().getMainFrame();
mainPage main = new mainPage(mainFrame);
main.setVisible(false);
setVisible(false);
main.removeAll();
main.dispose();
aboutBox = new progress(mainFrame);
aboutBox.setLocationRelativeTo(mainFrame);
aboutBox.setEnabled(true);
MyownprojectApp.getApplication().show(aboutBox);
Or I use this one but the same
SetDefaultCloseOperation (javax.swing.WindowConstants.EXIT_ON_CLOSE);
and thanks for all

What i need is like am starting new application if i press start command it will start the dialog from zero If i close this dialog and press start command it will start the dialog from zero but what am getting is Like hide and show if i press close command the dialog will become hide if i press start it will show Dialog only not start it from beginning that the problem.
Also my code does not check if it's null so what i can do now and thanks.

Similar Messages

  • Installing Java Dialog Instance - Error while connecting to DB

    We would like to add a dialog instance to our production Portal server.  We installed Portal as stand-alone on the central instance.  We have another server we would like to setup to serve as a Portal dialog instance.
    So far I have installed Windows 2003 Server Standard.  Installed MSSQL server client tools (database is mssql server).  Installed jdk 1.4.62.  Set java home and path environmental variables.  I'm now installing the Java dialog instance (I can't find any documentation on this).  From Netweaver installation CD> SAP NetWeaver '04 Support Release 1> Java System> MS SQL Server> Dialog Instance Installation>
    SAP System ID: (sid) ES2
    Central Host: SAPEPS02
    Path to JAVA DVD supplied> JDK Directory confirmed> Domain paramaters confirmed> domain<sid> account passwords supplied> domain<service><sid> account password supplied> Instance number confirmed>
    Installation started> It gets to step 8 and fails stating "Error while connecting to DB".  I looked through all the log files and couldn't come up with anything (i'm very thorough).
    I tried adding the users to the database as dbowners (no luck).  I installed SQL server 2000 with SP4.  No where during this installation did I get prompted for database parameters?
    Is there something basic i'm missing?  Does this scenario not work?  Any help would be greatly appreciated.  Pointing me in the right direction of the correct documentation would also be appreciated.  Thank you in advance.
    Sincerely,
    Brad Dridi

    Hi Brad,
    I am facing the same problem. I hope by now you must have got the solution for this.
    Can you please let me know how did you overcome this situation?
    Thank you!!
    Regards,
    Abhijeet Bhagat

  • How to Uninstall Java Dialog Instance

    Does anyone know how to uninstall a Java Dialog instance?
    The install instructions, 'SAP Web Application Server 6.40 SR1 Java on Windows: MS SQL Server' suggest that I should go to the control panel and select the add/remove program and then find the instance and remove it.  However, the instance does not appear in the list.
    Note:  I have the ABAP stack (DEV) and the java stack (JDV) installed on the same box. But, the java stack is not an add-in.  The ABAP stack instance does appear in the add/remove program list.

    ok Doug,
    i've a workaround for that.
    Go to registry editor.IF YOU Find the Service corresponding to J03(SAP<SID>_03). Delete it. (if you want to be fail safe, export that contents to a file using FILE --> EXPORT and then delete it. you may import it later if you want). and RESTART the PC.
    this process will ensure that there is no instance according to your system (coz no registry entry is found). it is as good as removed. but the files that were created during the instance installation will remain in your hard drive.
    IN CASE you need this instance later or this workaround gives you any trouble, just import the registry contents file which you have exported earlier and RESTART THE PC.
    it is as good as it was!!!
    this is an easy work around but slightly risky as u are fiddling with your SYSTEM REGISTRY ENTRIES.
    Regards
    Arun.
    PS: Remove the corresponding entry in the WINDOWS SERVICES file. otherwise, it will give PORT IN USE during later installation with instance number 03.
    Message was edited by: Arunkumar

  • Problems with Java dialog instance after System Copy

    Hi Folks,
    I've performed a System Copy from PRD to QAS both ABAP and JAVA Stack (Netweaver 2004s SEM-BW). The ABAP is up and running and the central instance JAVA too. But there was two applications (dialog instances JAVA) that desappeared after the HSC. I can't see them in Visual Administrator and can' t start them as well.
    Will you give a hand on it? I know this is a pretty weird situation but if somebody experienced this please help me. As far as I know I've double-check the procedure used for this System Copy and everything has been followed.
    Best regards,

    Hi Prem,
    Yes, this sap note is very useful, but there is no reference to Java Dialog Instance, which in this case SAP said that we need to re-install all Dialog instance, in my case I have two Appl Servers which has Java Dialog Instance installed so I have to re-install twice.
    Regards,
    Washington Neves

  • How does JAVA dialog instance gets synced from CI

    Hello Guru's,
    I have recently added two dialog instance to my Portal production.
    I want to know what changes I have to make manually to all the dialog instances?
    I had to manually change the JAVA parameters for all the dialog instances servers and add TREX nameserver.address.
    We have Application integrator iView and for that we had turned off the Session Management Alerts (current mode = off), but for some reason I have to login to all the dialog instance and turn this off, I thought this is Instance independent?
    Please help, what else should i be aware of?
    Thanks in advance.
    -Kurien

    Was there ever any feedback to this.  I would be interested in the same information, any tips/best practices for adding a java dialog instance.

  • Question about SSO (for Java Dialog instance) for Portal EP 6.0 SP 20

    Hi All
    I have following question.
    We are running Portal 6.0 SP 20. We have JAVA (Portal) CI+DB running on single host SAPQP1 and Two JAVA Dialog Instances (J2EE Application servers) running on separate host namely SAPAP35 and SAPAP36.
    I was able to configure SSO between SAPQP1 (CI+DB) and ECC R/3 system (QC1). SSO is working fine. Users can access all ESS/MSS data in portal when they use Portal URL running on SAPQP1 (http://sapqp1.xxxxx.com:50000/irj).
    But when users try to access ESS/MSS data via portal (URL) running on SAPQP35 (http://sapap35.xxxxx.com:50000/irj) and SAPAP36 ((http://sapap36.xxxxx.com:50000/irj) SSO does not work, i.e it system asks user id and password.
    So , how I can configure SSO between SAPAP35 and SAPAP36 JAVA Dialog instances and ECC R/3?

    Hi Sandip,
    obviously you already configured QC1 to accept Tickets issued by the Java Engine on SAPQP1. Did you imported the public (java) certificates from SAPAP35 and SAPAP36 into your ECC System? The certicficates need to be added in client 000 to your System PSE and in your production client to your ACL.
    Regards,
    Enno

  • Java Dialog Instance

    Hi,
    we installed a additional dialog instance for our entprise portal. the instance is up&running, but no one is connected. i can manage the instance in the config tool and added 3 servers. 
    do i have to set up a additional web dispatcher?  - like mentioned in this thread How to Load Balance between java dialog instance in BI Portal)

    Hi,
    When you have your first instance, i.e, the Central Instance, your users should connect to this system via URL like this:
    http://<ci_host>:<port>/xxxx
    Then the dispatcher in the CI will distribute all the requests to the server node(s) as a kind of load balancing.
    While later if you install an additional Dialog Instance, the DI will have its own URL for accessing:
    http://<di_host>:<port>/xxxx
    and of course the dispatcher of this DI will distritute the requests inside this instance.
    So your users can either access the DI or CI directly with the specific URL, or you can configure any load balancer in front
    of the two(or more) instances.
    SAP WebDispather is just one of the chooses.   --- not the only one.
    As you mentioned, you have already 1 webdispathcer, but not sure what it is used for.
    While if it is just used for this system, so you can add the DI to to the balancing list, that is it. 
    Not needed to install another web dispatcher.
    Regard,
    Thunder

  • Need the instance profile for a java dialog instance

    Hi!
    Please help provide  the instance profile for a java dialog instance (java only).
    Thanks a lot!

    SAPSYSTEMNAME = <SID>
    INSTANCE_NAME = <INSTANCE_NAME>
    SAPSYSTEM = <INST_NUMBER OF JAVA INSTANCE>
    DIR_GLOBAL = <DRIVE>:\usr\sap\<SID>\SYS\global
    DIR_PROFILE = <DRIVE>:\usr\sap\<SID>\SYS\profile
    DIR_EXECUTABLE = <DRIVE>:\usr\sap\<SID>\<INSTANCE_NAME>\exe
    SAPGLOBALHOST = <NAME OF THE SERVER>
    DIR_CT_RUN = C:\usr\sap\J2E\SYS\exe\run
    enque/process_location = REMOTESA
    enque/serverhost = <NAME OF THE SERVER>
    enque/serverinst = <SYSTEM NO. OF SCS>
    enque/encni/port = 3200+enque/serverinst
    jstartup/trimming_properties = off
    jstartup/protocol = on
    exe/jlaunch = $(DIR_INSTANCE)/j2ee/os_libs/jlaunch.exe
    jstartup/vm/home = <DRIVE>:\j2sdk1.4.2_12
    INSTANCE_PROPERTIES = $(DIR_INSTANCE)/j2ee/cluster/instance.properties
    SDM_PROPERTIES = $(DIR_INSTANCE)/SDM/program/config/sdm_jstartup.properties
    jstartup/instance_properties = $(INSTANCE_PROPERTIES);$(SDM_PROPERTIES)

  • How can i bring up "About Java" dialog box ...

    ... similar to About Dialog from Java Control panel? I realise this my not be portable. The class AboutDialog seems to be in deploy.jar under sun.com... (JDK 1.5 SE).

    yes i want to show Sun's "about java" dialog. tried the class that i mentioned in the parent post assuming usual JDialog constructor and included deploy.jar in classpath when compiling but got errors in runtime.

  • Bug? InDesign CC/CC2014 loses focus when closing ScriptUI dialog window

    When closing a "dialog" type window, created using ScriptUI from Extendscript, InDesign will lose focus as "active application" in Windows (7/8) and instead switch to another application in Windows altogether. This behavior does not occur on previous versions of InDesign (CS6 and earlier). I can easily reproduce the problem at my company on various machines (both on Windows 7 and Windows 8). The Mac OS version of InDesign does not seem to have this problem. Also, the problem does not seem to occur when using "palette" or "window" type ScriptUI windows.

    That's in itself an interesting observation, but I have the focus problem 
    also with scripts that don't use ScriptUI at all.
    Peter
    On Mon, 13 Oct 2014 08:38:27 +0100, DirkEBM <[email protected]>

  • Java Dialog Boxes Don't Stay Open and Automatically Close

    Hi I'm having this weird Java prob. Initially I thought it was a net beans problem but I found out all java apps have this problem on my pc.
    Dialog boxes automatically close after some time. Please help me resolve this issue.
    Windows 7 x64
    Asus P8P67 Pro
    Intel Core i5 2500K
    ATI Radeon HD6970
    Path:
    C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\PROGRAM FILES (X86)\ATI STREAM\BIN\X86_64;C:\PROGRAM FILES (X86)\ATI STREAM\BIN\X86;%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;%SYSTEMROOT%\SYSTEM32\WBEM;%SYSTEMROOT%\SYSTEM32\WINDOWSPOWERSHELL\V1.0\;D:\DRIVERS\ATI.ACE\CORE-STATIC;C:\PROGRAM FILES\INTEL\DMIX;D:\INSTALLED SOFTWARES\JEDIT;C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\TOOLS\BINN\;C:\PROGRAM FILES\MICROSOFT SQL SERVER\100\DTS\BINN\;E:\More Software Setups\Educational Software\Game Programming\Tortoise Mercurial Client for Ogre Source\;E:\More Software Setups\Educational Software\Game Programming\CMake 2.8\bin;E:\More Software Setups\Educational Software\Game Programming\Tortoise SVN for Ogre AL\bin;D:\Installed Softwares\DirectX SDK\Lib\x64;D:\Installed Softwares\DirectX SDK;D:\Installed Softwares\JDK\jdk\bin;C:\Program Files (x86)\Calibre2\;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\MinGW\bin;C:\tomcat\lib
    Thanking you,
    sidk47

    This is not a common problem and probably not related to the JRE directly. You have something installed on your system that is doing this. I hope for you it is some sort of trigger happy protection software which you can control yourself, but I would consider doing a full spyware, malware and virusscan sweep using a respectable piece of scanning software.
    If you want to believe it is related to Java, then completely uninstall your JRE/JDK, do a ccleaner registry cleanup and then reinstall the JRE/JDK. If the problem persists, it really is not the JRE.

  • Directory structure for  ABAP+JAVA Dialog Instance

    Hello,
    Can any one clarify how will be the directory structure in a case where we have ABAP+Java System?
    For Central Instance,DVEBMGS<instance no>
    Central Services,SCS<instance no+1>
    Ex:DVEBMGS20
    SCS21
    If I have another dialog instance,can I have only ABAP or only Java in that?What will be the directory structure?But I read that they will be in 1:1 ratio
    Will it be D22(Only ABAP) or J22(Java only).
    As a dialog instance,can ABAP exist with out JAVA.
    or can JAVA exist without ABAP
    Please explain the directory structure with an example.
    Thanks,
    Sudheer.

    Sudheer,
    http://www.redbooks.ibm.com/redpapers/pdfs/redp4200.pdf page No 24 should help you...

  • How to get the closing event (not closed) of Dialog control

    Hi All,
    I have one requirement, that I have to close the Dialog box in an animated way like on clicking of the Dialog close button the popup has to close from top to bottom in a slide effect.
    sap.ui.commons.Dialog
    When I tried closed method of Dialog, it is calling only after dialog box closed but, I need the closing event rather closed event.
    I am putting a UI5 view in Dialog as I need some custom/dynamic content in the dialog.
    Please suggest the solution for this.
    Thanks & Regards,
    Pavan Thirunamala,
    [Moderator Message - Please do not provide contact information like Phone Number etc in the discussion message. It has been removed.]
    Message was edited by: Chandrashekhar Mahajan

    JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
                sap.ui.getCore().getEventBus().subscribe("sap.ui","__beforePopupClose",
    function(channel, event, params)
      debugger;   
    $(params.domNode).animate({
                      opacity : 1,
                  height : 0

  • How to add a java dialog instance to Java central instance of SAP CRM

    Hi Gys,
    I have installed a new dialog instance for the CRM Java landscape for the version 7.01 .
    CRM Abap instance is seperate and its data accessed by Jco connection by central instance but not dialog instance . Could you please let me know if any configuration steps to be followed.
    Thanks in advance
    Sudhakar

    Could you describe your problem a little bit more.
    I have installed a new dialog instance for the CRM Java landscape for the version 7.01 .
    CRM Abap instance is seperate
    Ok, sounds like 2 Java instances and one ABAP instance.
    and its data accessed by Jco connection by central instance but not dialog instance.
    This is where I get confused.
    Do you have one or more ABAP instances?
    What is your actual problem (what do you want to do)?

  • Kernel Change on ABAP+JAVA Dialog instances

    Hi guys (& girls).
    Another question from me.
    I installed two Dialog instances for an ABAP+JAVA System (BI 7). The Central instance is on AIX, the DIs are running on SLES / x86_64.
    Now i want to change the kernel.
    It's fully automated for the Centeral Instance - i do it with the JSPM. Is there also an automated possibiltiy for changing the kernel on the DI? Or do i have to do it manually?
    There is no extra JSPM on the DIs. How do you do that????
    Thanks for your help,
    Martin

    Hi,
    the above link does only describe Java only systems
    For my distributed environments, I have setup a global NFS share which looks like:
    kernel
    \_ 640_EX2_UC
    |  \_ linuxx86_64
    |   |   \_ current -> ./PL145
    |   |   \_ PL111
    |   |   |   \_ disp+work
    |   |   |   \_ ... [all other files]
    |   |   \_ PL145
    |   |      \_ ...
    |   \_ aix
    |      \_ current -> ./PL145
    |      \_ PL111
    |         \_ ...
    |     ...
    \_ 700_NUC
    The instances are linked against the current link, which points to the right kernel folder. I setup a script with copies my latest downloads to these folder structure by creating a new PLXXX folder. Then, when it is time, the "current" link is set to the new "PLXXX" folder. Thats all
    Thanks,
      Hannes

Maybe you are looking for

  • How do I find original music library?

    Okay so we have a few macs in the house and we can't seem to find the original itunes library for my husband on any device? We are upgrading computer and we don't want to lose any of his music, however whenever we go to itunes on all of our other dev

  • My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?

    My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?  Do I have to go to Settings>General>reset>Erase all conte

  • Installed new Ram = 3 Beeps

    Hello! I wanted to max out my iMac (7,1) with RAM so I bought a couple new chips from Other World Computing. It came yesterday and I went home all excited to install it. I did, and on startup all I get is three beeps repeating endlessly. I opened the

  • Permanent timeouts for 10 set of documents

    I've been experimenting with DocumentDB and have added a couple of documents. Document Explorer won't load anymore (I'm assuming it times out, but it simply just loads for a while then display nothing but "Load more") and Query Explorer just times ou

  • Mac OS X 10.4.10

    Hi, Only converted to a Mac user just over a week ago, everything was going unbelievably well until Monday night when I was prompted to download and update to 10.4.10 along with Security update 2007-006-universal, as instructed, I rebooted the system