Change the focus between two windows

I have a program that uses a console window, and an appletviewer window. I want to know the code required to change the focus between each of the windows. By focus I mean which window is on top of the screen.

These are java.awt.Frame or javax.swing.JFrame objects, right? Use their show() method. Some OS's may not allow you to steal focus. You could try:
frame1.hide();
frame2.hide();
if(wantframe1ontop)
frame2.show();
frame1.show();
else
frame1.show();
frame2.show();
}

Similar Messages

  • I want to sync the data between two windows device, but I can't find my security key.

    Please send me a guide about how to setup the sync data with windows device.
    I can't find account management in sync tab.

    See these Sync KB articles: <br />
    https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync<br />
    https://support.mozilla.org/en-US/kb/add-a-device-to-firefox-sync<br />
    https://support.mozilla.org/en-US/kb/find-code-to-add-device-to-firefox-sync<br />
    https://support.mozilla.org/en-US/kb/how-do-i-choose-what-types-information-sync-firefo

  • Searching access database then minimizing and reopening (or, more generally, changing the focus window then going back) causes the database field to become active

    So I'm having this problem in Access 2010 & 2013 (I tested it in both) where if I search for something on the bottom of a table (next to where it says the record number), then pull down access and subsequently reopen it, if I were to start typing it
    would start typing in the record that the search had found. This has caused me to have some errors in my database which have been proving troublesome and difficult to fix.
    If you could tell me how I could resolve this problem, I would greatly appreciate it!
    EDIT: I tested some other cases and am having the same issue. If I, instead of minimizing, change the focus away from Access to another program and then move my focus back to Access, the problem appears there as well. In fact, even if I change to another
    window in the same instance of Access (say another table) then change back the focus, the problem still appears

    Hi George,
    Thanks for the response. I'm going to include some images and share a sample database with you. This is all being done in 2010 on Windows 7 currently, but is reproducible on 2013. I don't have access to Windows 8 to try it myself.
    Step 1: Open up table by double clicking on it
    Step 2: Search for something in the table
    https://onedrive.live.com/redir?resid=E84A21BD127C022!2874&authkey=!APzefrtzmpvylGw&v=3&ithint=photo%2c.png
    Note that where I'm searching is different than where you're searching. I think that's why you couldn't reproduce it. Search for something (in what I'm sharing, something like alpha or 11 or ga or something)
    Step 3: Minimize the Access and pull it back up (or change focus away and back in some way or another)
    Step 4: Type into what should be the search box. Instead, it types into the field that the search found.
    The database with the table I used can be found at https://onedrive.live.com/redir?resid=E84A21BD127C022!2873&authkey=!ABtDlZEyDzT8Jf8&ithint=file%2c.accdb
    It is the only table in the database
    Thanks again,
    Shlomo Miller
    I'm having verification problems so I cannot insert a picture. I will update this post when I can.

  • Need to find the Difference between two table

    Hello ,
    I have stucked in program as below scenario:-
    I have two tables of huge data of same structure in a same schema.I need to find the difference exact values in tables.
    By using MINUS we can find the difference between two table ,i need to find the what exact difference in the there values with colunm and value at that column.
    Example TableA
    Col1 col2 col3 col4 col5.... col50
    10 ABC 2001 EE 444 TT
    40 XYZ 3002 RR 445 TT3
    80 DEF 6005 YY 446 YY8
    TableB
    Col1 col2 col3 col4 col5.... col50
    10 ABC 2001 EE 444 TT
    40 XYZ 3002 RR 445 TT3
    81 DEF 6005 Yu 447 YY8
    I need to the out put like this :-
    The Diffence between two table is
    TableA.COL1=80 TableB.Col1=81, Different
    TableA.Col4=YY TableB.col4=Yu,Different
    TableA.Col5=446TableB.col5=447,Different
    Please suggest me to write the pl/sql program for the same
    thanx in advance
    KK

    Thanx friends for all your efforts
    I have a sample code for the same,this will compare the two tables for single row in each table .
    what r the modification needed for the multiple rows of values in the two tables??
    Please suggest!!
    CREATE OR REPLACE PROCEDURE test_compare
    IS
    TYPE t_col
    IS
    TABLE OF VARCHAR2 (30)
    INDEX BY PLS_INTEGER;
    l_col t_col;
    j NUMBER := 0;
    l_sql VARCHAR2 (2000);
    col1 VARCHAR2 (30);
    col2 VARCHAR2 (30);
    val1 NUMBER;
    val2 NUMBER;
    status VARCHAR2 (30);
    CURSOR c1
    IS
    SELECT column_id, column_name
    FROM all_tab_columns
    WHERE table_name = 'TEST1';
    BEGIN
    FOR i IN c1
    LOOP
    j := j + 1;
    l_col (j) := i.column_name;
    END LOOP;
    FOR k IN 1 .. j
    LOOP
    l_sql :=
    'SELECT '
    || ''''
    || l_col (k)
    || ''''
    || ', '
    || 'TEST2.'
    || l_col (k)
    || ', '
    || ''''
    || l_col (k)
    || ''''
    || ', '
    || 'TEST1.'
    || l_col (k )
    || ', '
    || 'DECODE(TEST2.'
    || l_col (k)
    || ' -TEST1.'
    || l_col (k)
    || ', 0, ''NO CHANGE'', ''CHANGED'') FROM TEST2, TEST1';
    EXECUTE IMMEDIATE l_sql INTO col1, val1,col2, val2, status;
    IF status = 'CHANGED'
    THEN
    DBMS_OUTPUT.put_line( 'TEST2.'
    || col1
    || '='
    || val1
    || ', TEST1.'
    || col2
    || '='
    || val2
    || ', '
    || status);
    END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Error:- ' || SQLERRM);
    END;
    /

  • How can we navigate between two windows of same component in webdynpro ABAP

    Hi
    how can we navigate between two windows( not views ) of same component in webdynpro ABAP. its an urgent requirement
    Thanks in advance.
    Regards
    Laeeq

    Hi Laeeq,
    You cannot navigate between windows of one component. You can only call a dialog box showing the contents of a second window, or you can embed the contents of a window of a different component.
    Just add all the views you need to the one and only main window of the component.
    Ciao, Regina

  • Drag and Drop between two windows

    I would like to implement Drag and Drop between two windows for example in Windows I can take URL Address form browser and drag it and drop it in to any control that excepts String like TextField.
    I would like to have the same behavior with my Java Text Controls.
    What can I do to achieve this?

    There is no configuration for it. It should work.
    Can you try it in a different user account. If it works in a different account, then it is likely something in your current user account that is messed up. If it doesn't work in another user account, then it is likely something with Mail, itself. 
    You could try downloading and installing the 10.6.7 combo update. That may repair what is wrong.

  • Extract Time from date and Time and Need XLMOD Funtion to find the Difference between Two Time.

    X6 = "1/5/15 5:16 AM" & NOW ....................difference by Only Time
    not date
    X6 date and Time will be changing, Its not Constant
                Dim myDateTime As DateTime = X6
                Dim myDate As String = myDateTime.ToString("dd/MM/yy")
                Dim myTime As String = myDateTime.ToString("hh:mm tt")
                Dim myDateTime1 As DateTime = Now
                Dim myDate1 As String = myDateTime1.ToString("dd/MM/yy")
                Dim myTime1 As String = myDateTime1.ToString("hh:mm tt")
    Need to use this function to find the Difference between Two Time. due to 12:00 AM isuue
    Function XLMod(a, b)
        ' This replicates the Excel MOD function
        XLMod = a - b * Int(a / b)
    End Function
    Output Required
     dim dd  = XLMod(myTime - myTime1)
    Problem is myTime & myTime1 is String Need to convert them into Time, Later use XLMOD Funtion.

    Induhar,
    As an addendum to this, I thought I'd add this in also: If you have two valid DateTime objects you might consider using a class which I put together a few years ago
    shown on a page of my website here.
    To use it, just instantiate with two DateTime objects (order doesn't matter, it'll figure it out) and you'll then have access to the public properties. For this example, I'm just showing the .ToString method:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim date1 As DateTime = Now
    Dim date2 As DateTime = #1/1/1970 2:35:00 PM#
    Dim howOld As New Age(date1, date2)
    MessageBox.Show(howOld.ToString, "Age")
    Stop
    End Sub
    End Class
    I hope that helps, if not now then maybe at some point in the future. :)
    Still lost in code, just at a little higher level.
      Thanx frank, can use this in Future....

  • Drag&Drop between two windows

    Hi
    I am interested to know if in the latest version of abap webdynpro it is possible to do drag&drop between two windows?
    And if it is possible to have a floating part of a window ( that I can move it around the screen )?
    Thanks
    Nitsan

    Hi
    Thank u Thomas and Chris for your helpful answers!
    Still there is something I want to be sure about, the interaction that can be done between this floating window
    and the opening window.
    Can both window stay active and communicate between them?
    Ill give an example of what I mean:
    Lets say that I have window with few tables from this window I open another window with a list. now I want to dynamically
    move an item from this list to one of the tables in the parent window or move an item from one of the tables to this list.
    Can this scenario be implemented in abap webdynpro?
    Thanks,
    Nitsan

  • How can i set the space between two button?

    Hello,
    I have
    <mx:HBox>
    <mx:Button label="one" />
    <mx:Button label="two" />
    </mx:HBox>
    how can i set the distance between this two compotents?
    Thanks

    quote:
    Originally posted by:
    robinbouc77
    Hi,
    you can use horizontalGap property on HBox to change the
    space between your buttons. I think the default value is 6. You can
    also use <mx:Spacer/>, but changing the gap on HBox is
    probably the cleanest way ;)
    C U
    perfect!!! works fine

  • What is the real ip address to the apple server? Someone changed the host file in windows/system32/drivers/ect, and now I can't do a restore on my iPhone 3gs.

    What is the real ip address to the apple server? Someone changed the host file in windows/system32/drivers/ect, and now I can't do a restore on my iPhone 3gs

    "You have to change your router's IP address to be able to access it. It will not give you the internet."
    I'm not sure what that means Richard, but I did change the router's IP address from 192.168.1.1 to 192.168.5.1- isn't that what you meant in your first post. I know that isn't reflected in my screen capture that I took last night, but I did do that this morning after I read your post.
    "Log on to your router and change two settings.
    Change the setting in Setup from PPPoE to Automatic Configuration-DHCP and click on save.
    Click on Advance Routing and change the setting from Gateway to Router then click on save."
    I did this and still same results as far as I can tell. Can't get online through the router.
    "Click on MAC address clone under setup tab ... click enable & click clone ...click save settings ... Check the IPaddress under WAN page ....
    If getting IP in public range .... try going online ...."
    I tried this- at least to the part about checking the IP address under WAN. I assume you mean the WAN page in the modem setup- nothing looked any different after trying what you suggested, and I'm not really sure where I would be "getting IP in public range" or what that means.
    I'm about to give up and just buy a new router to see if I can get the same lack of results with a different one. My ISP maintains that everything is set up correctly on their end and really can't do anything more for me. The Modem works and is set up correctly and they can give tech support for a router.
    Here's what my basic setup looks like now:
    http://i490.photobucket.com/albums/rr270/SukarUDL/BasicSetup.png
    Here's what the advanced tab looks like now:
    http://i490.photobucket.com/albums/rr270/SukarUDL/AdvancedRouting.png
    Modem setup looks the same
    Message Edited by Writersbloc on 09-25-2008 07:05 PM

  • Signalling between two Windows

    I am not sure how to signal between two Windows created in the same Thread.
    Suppose I have two Windows, WindowA and WindowB (either is a descendent from the Window hierarchy - ie. JFrame, JDialog, etc.).
    WindowB can be instantiated with different parameters that cause it to look different.
    I want to do something like this in a method in my WindowA class: (pseudo-code)
    for int 1 to n
    hide this window; (i.e. WindowA)
    instantiate and display a new WindowB object (with xxxxx parameters)
    wait for WindowB to signal this WindowA object that it should
    now create a new WindowB object and display that new object
    somewhere in Class code for WindowB
    signal WindowA;
    How do I set up a "wait and signal" between the two Windows? Without it, WindowA will keep going through the for loop creating new Windows immediately -> I would like it to wait until WindowB signals that it is ok to do so.
    Thanks for any help.
    -TJW

    Here's an example:
    class CreateWindows {
         int count = 0;
         int limit = 5;
         public CreateWindows(int limit) {
              this.limit = limit;
              create();
         void create() {
              if (++count < limit) {
                   new WindowA(new SignalListener() {
                        public void signal() {
                             create();
    interface SignalListener {
         void signal();
    class WindowA {
         public WindowA(SignalListener listener) {
              // do things
              listener.signal();

  • Function Module to get the difference between two times.

    Hi All,
    I want to know if there is any function module that gives me the difference between two specified times.
    For Ex: Time 1: 12/01/2007 00:01 A.M
                Time 2: Time 1 - 180 Seconds. This changes the time, also may even change the Date. (As in above situation, the Time 2 will be 11/30/2007 11:58 P.M)
    Could some one please suggest if there is any function module for this case.
    Thanks in Advance.

    Hi, You can use the following function module to calculate the diffrence between to dates in the unit that you want.
    COPF_DETERMINE_DURATION calculates the difference between two dates and time in minutes and hours.
    Parameters:
    EXPORTING
         I_START_DATE "The start date of the time interval
         I_START_TIME "The start time of the time interval
         I_END_DATE   "The end date of the time interval
         I_END_TIME   "The end time of the time interval
         I_UNIT_OF_DURATION "Time unit of the duration if not to be calculated in days.
         Value     =====     Meaning
         ' '     =====     Day (default)
         D     =====     Days
         H     =====     Hours
         MIN     =====     Minutes
         MON     =====     Months
         S     =====     Seconds
         WK     =====     Weeks
         YR     =====     Years
         I_FACTORY_CALENDER     "A factory calender if not using the Gregorian calender
    IMPORTING
         E_DURATION      "Time difference in unit specified.
    Message was edited by:
            Rajesh Soman

  • How to Break the cluster between Two servers

    Hi Experts,
    Since Iu2019m new to BOBJ XI R2.I would like to know how to break the cluster between two servers.
    Description :
    So far we took the copy of QAS Server1 to the new QAS server2 (Through Mirroring Tool ). Now those two servers are cluster together, I can see QAS server1 CMS Name, Cluster Name, cluster member name in QAS Server2 (CMC-> Setting -> Cluster).
    Besides in QAS Server1 CMS Name and Cluster name are pointing to the QAS Server1, except Cluster Member (This is still have two members Server1 and Server2).(CMC-> Setting -> Cluster).
    In QAS Server1 and QAS Server2 (CMS-> Servers), I can able see both server name under Machine Name tab.
    I would like to make those two servers as independent servers. There are two different data source for those two servers. I want to remove the cluster in both servers.
    Right now QAS Server1 is running and QAS Server2 is stopped.
    If i create/modify a group under new Mapped NT Member Groups in QAS server2 ,it is getting reflecting in QAS server 1.
    Could you please tell me the steps to resolve this problem.
    BO Version: BO XI R2
    Regards,
    Sridharan

    Hi,
    Maybe the external CMS is still 'attached' to your SIA node. Please go to the CCM (Central Configuration Manager) and stop the SIA (Server Intelligent Agent). On one of the tabs you can see if there is an external CMS part of your environment. Delete it and restart the SIA. Retry if you can delete the services now from within your CMS. It may well be that you have to stop both environments and delete each others CMS via the CCM to get it working. If you have not changed any permissions for your Administrator account the security model will not be the one causing this.
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken

  • Calculate the difference between two dates

    I would like to calculate the difference between two dates in PL/SQL and return the result as a number of days expressed as an integer value.

    Denes,
    A fair point, I should really have posted this on the SQL forum (I'm new to the forum as well as PL/SQL) but thanks for responding anyway. It does raise a question as to how to implement this in ApEx though.
    I have created the function and am calling it as shown below from the source window of a form. The source type is 'PL/SQL expression or function' and the expression in the source window of the form is:
    calc_date_difference (:p26_c_payment, :p26_c_rec)
    The two parameters being passed are of type date but I'm not sure how to handle the ruturned number and populate the form in ApEx with this value.
    Is it possible to do it this way or am I taking completely the wrong approach?
    Regards
    Sandy
    This is not ApEx related but SQL related:
    CREATE OR REPLACE FUNCTION calc_date_difference (
    p_date_1   VARCHAR2,
    p_date_2   VARCHAR2
    RETURN NUMBER
    v_difference   NUMBER;
    v_sql_err      VARCHAR2 (4000);
    BEGIN
    v_difference := TRUNC (TO_DATE (p_date_1)) - TRUNC
    (TO_DATE (p_date_2));
    RETURN v_difference;
    CEPTION
    WHEN OTHERS
    THEN
    v_sql_err := SQLERRM || CHR (10) || CHR (10) ||
    SQLCODE;
    ND calc_date_difference;and
    SQL> SELECT calc_date_difference ('23.01.2007',
    '20.01.2007') diff
    2    FROM DUAL;
    DIFF
    3
    Denes Kubicek                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do you sync the calendars between two ipads?

    How do you sync the calendars between two ipads?

    You can enable iCloud syncing on both devices, making sure hte calendar is part of the 'on' part and then what you change on one should change on the other too.

Maybe you are looking for