Jwindow behaves differently in jdk1.5

Hi,
I created a splash screen using jwindow. In the earlier versions of jdk the splash screen (Jwindow component) can be moved back and i was able to switch to other applications. But when i used jdk 1.5 the Jwindow stays on top and even if i switch to other applications it remains on top. how can i resolve this ??? Is there any change in the behavior of the JWindow in jdk 1.5. This is urgent can any one help???
Regards,
Jonny

if having the app show up in the task bar is not a problem, you could use a
JFrame, then setUndecorated(true); so it will look like a JWindow.
Otherwise, this is just a stab in the dark, but worth a try
(uses a JFrame parent, but doesn't show in the task bar)
import javax.swing.*;
class Testing
  public static void main(String[] args)
    JWindow window = new JWindow(new JFrame(){
      public boolean isShowing(){return true;}});
    window.getContentPane().add(new javax.swing.JLabel("Hello World"));
    window.setLocation(400,300);
    window.setSize(200,200);
    window.setVisible(true);
}

Similar Messages

  • The same code behaving different in two files.

    The same code behaving different in two files.
    in pro*c file it is returning rows
    in sql file it is not returning any rows.
    please suggest me.
    regards,
    prasad.

    please find the code.
    sql_stmt := 'SELECT rNum, dpcCode, sID, hDate, fBlock, '||
    'lBlock, recQty, fID, fName, ' ||
    'tSeqNo, sType, tDate, fStatCode, pDate, recCount, r ' ||
    'FROM (SELECT rownum rNum, DPC_CODE_ORIG dpcCode, ' ||
    'SENSOR_ID sID, ' ||
    'to_char(HEADER_DATE, ''YYYYMMDDHH24MISS'') hDate, ' ||
    'FIRST_BLOCK_NUMBER fBlock, ' ||
    'LAST_BLOCK_NUMBER lBlock, ' ||
    'RECORD_QUANTITY recQty, ' ||
    'FILE_ID fID, ' ||
    'substr(FILE_NAME,1,30) fName, ' ||
    'TRACE_SEQUENCE_NO tSeqNo, ' ||
    'SENSOR_TYPE sType, ' ||
    'to_char(TRAILER_DATE, ''YYYYMMDDHH24MISS'') tdate, ' ||
    'NVL(FILE_STATUS_CODE, ''NL'') fStatCode, ' ||
    'to_char(PROCESSED_DATE, ''YYYYMMDDHH24MISS'') pDate, '||
    'NVL(RECIRCULATE_COUNT,0) recCount, ' ||
    'ROW_NUMBER() ' ||
    'OVER(ORDER BY TRAILER_DATE DESC, LAST_BLOCK_NUMBER DESC) r ' ||
    'FROM logfc10t ' ||
    'WHERE DPC_CODE_ORIG = :IN_DPC_CODE ' ||
    'AND SENSOR_ID = :IN_SENSOR_ID ' ||
    'AND (((TRAILER_DATE <= TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS''))' ||
    ' AND (LAST_BLOCK_NUMBER < :IN_BLOCK_NUMBER)) ' ||
    ' OR (TRAILER_DATE < TO_DATE(:IN_TRAILER_DATE, ''YYYYMMDDHH24MISS'')))) ' ||
    'WHERE r = 1 ';

  • Pdf duplication in Preview for Mac behaving differently

    When duplicating a PDF in Preview for Mac, a new image window would open that I could click on to select, then rename and save elsewhere. Just recently, seems like in the last few days, Preview now behaves differently. Now when I select duplicate, a duplicate document is created in the same window but shows as a thumbnail in the sidebar. This is confusing as it appears that Preview is trying to create a duplicate of the document at the end of the original. I don't appear to have received any updates from Apple that would account for this sudden change in behaviour (shows Preview last modified 18th November). I don't appear to be able to change this in Preview's Preferences. Can I revert Preview to the previous behaviour? (I'm using latest version of Preview in Yosemite on a 24" iMac).

    I always find that Preview can garble certain graphic elements or even slightly alter the over-all color of the PDF. However, I also find it is a lot quicker to deal with PDFs, especially when it comes to printing. Sometimes I get a PDF that I send to print on our Canon copier and I end up canceling the print job after 10-15 minutes because it's still processing. I open that same PDF in Preview and it prints in less than a minute. The same can be said of InDesign so on certain jobs I end up exporting as a PDF and printing from Preview. This might say a lot about Adobe's Printing Engine... (sorry, off-topic)

  • Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?

    1-Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?
    2-I made three queries Q1,Q2 & Q3 and linked them with proper field links but suppose Q3 returns no records for some Q1&Q2 records & when the report runs for delimited options it reflects only those records as output for which all the queries return records(if Q3 returns no record then the related records from queries Q1,Q2 don't reflect) while the output in desformat=html or pdf is ok..
    can you please resolve my problems
    ( I have installed patch 5a in my report server machine)
    Thanks & Regds.
    Suneel
    null

    What do you mean by "different"? (In our
    experience, Oracle html output has too many
    columns, which are not visible in the
    browser but are obvious in Excel.)
    We build our own html programmatically, so
    that Excel matches the browser more closely.
    -- Allan Plumb

  • Insert Stmt behaving differently within a PL/SQL block than independently

    I have an INSERT INTO statement that is behaving different within a PL/SQL block than it does if ran as an independent SQL query. When executed within a PL/SQL block the INSERT statement does insert rows, but only less than 50% of the rows returned by the SELECT statement used by the INSERT. There are no constraints and the only check on the destination table is a NOT NULL for supplier_id column.
    BEGIN
        INSERT INTO suppliers (supplier_id, supplier_name)
        SELECT account_no, name FROM customers WHERE city = 'Newark';
    END;Can anyone help me with this?
    Thanks

    Thought this sounded familiar:
    INSERT INTO statement that is behaving different within a PL/SQL block

  • PS1 String behaving differently - how to get only "/"?

    Hi there, let me first start with the 4 lines of code I use for my PS1 string (in bash)
    boBlack="\[\033[1;30m\]"
    boGreen="\[\033[1;32m\]"
    boCyanOnBlack="\[\033[1;36;40m\]"
    export PS1="$boCyanOnBlack"'${PWD%*/}'"$boBlack/$boGreen"
    Now what does this do?
    It will make a coloured string as part of my current working dir. (Prompt)
    Example:
    If i go to
    cd /home/shevegen
    then my prompt will look like:
    /home/shevegen/
    (I like the trailing / because I can copy/paste easier with it. )
    Now, the problem is when i am doing this:
    cd /
    then I am in /
    and while in konsole it works, in VTE this does not work.
    Does anyone know why this string behaves differently in
    VTE and Konsole? VTE for example does not show any
    / when you are in
    the / root dir
    PS: Anyone has a hint or knows why in VTE and in gnome-terminal this does
    not work?
    Last edited by shevegen (2007-03-19 12:10:39)

    Hi Dennis,
    thanks for your suggestion, unfortunately I already tried that and it didn't work. I have created several unique styles. Problem is, I need two diferent styles in *one paragraph* - one style for the "heading", which is consistent to the APA manual not an own paragraph (sorry, not my idea...), and another style for the following text. As my example above shows, the heading is followed by usual text and I may not press return after the heading and switch to a new paragraph..
    It has to look exactly like this:
    +heading in italics.+ Now heading is followed by usual text without changing the paragraph or starting a new line. Blurb blurb blurb whatsoever blurb blurb. The text goes on an on and an on you see.
    I can't format the heading differently than the text (because if I try, the whole paragraph is formatted this way) and so I can't add just the heading to the TOC. Do you see what my problem is? Got any other suggestion?

  • NavigateToURL behave differently in adove air

    Hi All,
    I have used navigateToURL in flash to navigate to a dirrerent URL and this works fine in the browser but when I used it with my adobe air application it behave differently. I have used "_SELF" as the target but in AIR, the new URL still open up as a new window. Is anyone has this same problem? How can i open the new URL in the same window? Please find below my flash code. Im using flash CS3 professional.
    var url:String = "http://localhost/Flash/login/welcome.php";
    var request:URLRequest = new URLRequest(url);
    try {               
           navigateToURL(request, '_SELF'); // second argument is target
    } catch (e:Error) {
      trace("Error occurred!");
    Thanks In advanced,
    best regards,
    Niroshan

    Hi All,
    found the answer. "_SELF" should be "_self" (simple letter).
    Thanks,
    best regards,
    niroshan

  • Multiple idocs in Single Job behaves differently (RBDAPP01)

    Hi,
    How to debug the background Job for Program RBDAPP01 which already posted the Idocs in 53 status from 64.
    I wanted to analyze why multiple idocs in same job behave differently than the single idoc in a job. In case of multiple idocs in a single job i put packet size 1, but no help.
    Thanks,
    Asit Purbey.

    I found the solution, so closing this Post.

  • Why does "Link Media" behave differently when used as a keyboard shortcut vs when right clicked???

    Not sure whether anyone else is encountering this, but the "Link Media" command behaves differently when right clicked as opposed to when used as a keyboard shortcut.
    When you right click to select that option for an offline file, you get only the corresponding disconnected source media. But when you execute "Link Media" via a keyboard shortcut, PP brings up a huge list of all other offline media. Why does it only do that when you use the keyboard shortcut for "Link Media" but not when you right click "Link Media".
    I'd like to get the Link Media command to behave via the keyboard shortcut the same way it behaves when right clicked. I don't want to have to deal with relinking a hundred other files, but just the single offline file I'm working on.

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • Upgrading pacman behaves differently on different systems

    This isn't a problem, since I haven't noticed any issues. I'm only curious to why two systems behave differently.
    System 1 (x86_64 locale sv_SE):
         Interrupts upgrade of system to specifically upgrade pacman first.
    System 2 (x86 locale ru_RU):
         Doesn't interrupt, instead it upgrades pacman along with other packages.
    Is there a logic answer to why? I'm only asking, since I don't know whether such differences could create problem for some users.

    Look into your /etc/pacman.conf for the SyncFirst variable. It defaults to having pacman there, and it is the list of which packages to upgrade first like on your first system. See man pacman.conf for more details.
    Last edited by jac (2011-01-03 20:25:59)

  • Fonts behave different in Photoshop in comparison with Illustrator

    I have a problem: it seems that some fonts behave different in Photoshop CS than in Illustrator CS on my Windows XP. Where Illustrator opens a vector (Ill) EPS file correct Photoshop shows me wrong characters sometimes: for example: an é becomes a wrong character: Capital O with a stroke through it. Frutiger was used.
    My question is: where does Photoshop behave different reading fonts in comparison with Illustrator?

    Perhaps you forgot to embed the font?
    Here comes an example, using characters  with accents.
    The font is GillSans-Schoolbook. The font or subset is embedded.
    The file extension TXT should be replaced by EPS after downloading.
    The EPS doesn't contain a preview image.
    The file is correctly handled by
    Photoshop CS2 (opened)
    InDesign CS2 (placed)
    Illustrator CS2 (opened)
    PSAlter (PostScript interpreter by Quite)
    All characters with accents are missing in
    Word 2007 (insert graphic)
    http://www.fho-emden.de/~hoffmann/buffel-7-sRGB-Dokument.txt
    Best regards --Gernot Hoffmann

  • VIM behaves differently after visual selection. (if locale="eo.UTF-8")

    This seems to be a bug in my VIM editor, because never had this problem before.
    But I want to be sure first, by asking here if someone else can reproduce this problem.
    The steps to reproduce are...
    Set your system locale to Esperanto language. Mine → “eo.UTF-8”
    Edit any text file from the CMD, like “$ vim file.txt”.
    Start Visual-line selection mode.
    ...and then, in less than 1 second the selection should be lost, the selected block should “deselect”.
    Once this happens, VIM starts behaving differently. Needing to press ESC more than one time to enter command-mode, becoming unpredictably unresponsive many times while I am editing and entering insert mode, and forgetting the undo history... so I do a “:u” command and the file changes back to its first version, ignoring all the changes history in between.
    The only solution in this case, is closing the file and opening again.
    But once I try to visual-select for first time, it happens again.
    Thanks in advance for your time.
    Last edited by Alexmar (2011-03-22 18:41:36)

    bernarcher wrote:Mostly confirmed (using LANG=eo.utf8 in an urxvt terminal).
    First visual line selection is deselected almost immediately. But visual selections of any kind do work afterwards.
    Necessity of multiple ESCs is confirmed.
    Thanks a lot for your time, so it seems there is definitely a bug here.
    bernarcher wrote:The history seems to remain intact, however. (But I did not try hard.)
    Correct VIM’s behavior, by doing this:
    Enter insert mode.
    Insert random text.
    Exit insert mode.
    ↑ Repeat some times.
    Perform some Undo actions.
    Should be, one insertion Undo per :u.
    But if I do this after triggering this bug, one undo would ignore all changes made since the “buggy mode” was triggered.

  • Code behaves differently when run in debugger

    var he:Array = handControl.getHumanInfo(ha, handNumber);
    while (he.length != 0)
    humanInfo.push(he.shift());
    This snippet is part of a large flash project I am working
    on. The program works fine by itself, but when I try to step
    through it in the debugger, it sometimes crashes, depending on
    where I put a breakpoint. If I put the breakpoint on the first line
    of code above, I can step into the function getHumanInfo(), trace
    it, and step back out, and everything is fine. But if I only put a
    breakpoint somewhere inside the getHumanInfo() function, all of a
    sudden when I step out of that function, the variable 'he' is
    undefined, and so the while loop never ends.
    This makes no sense to me. The code is either good or bad, it
    shouldn't behave differently based on where I put the breakpoint.
    The getHumanInfo() function always creates a new array and
    passes it back, so there is no reason 'he' should be undefined.
    This has happened many times when I've tried to use the flash
    CS3 debugger -- is there a known issue that this sounds like? I'm
    so fed up I'm ready to stop using the debugger altogether.

    I ran the program without the debugger and put some trace()
    statements in, just to make sure. Everything works fine without the
    debugger. So it seems to me it has to be a debugger issue. Has
    anyone heard of a similar issue?

  • Executable behaving different when called f/Java

    I have an executable that is run from the command line which behaves differently when I run it from my application. The executable takes MP3s files as arguments and merges them together. When I use large files from within my app, it doesn't respond, but using the same files from the command line works fine. I was thinking it might be a memory thing, but the executable should get its own space seperate from the VM. Does anyone have any suggestions? Thanks!

    I do not have the source for the executable, so I wouldn't be able to pull lines out of there. It works from my Java app when I pass in smaller files, so I know I have the syntax correct, but with larger files it hangs. When I run the same thing from the command line with the larger files it runs like a champ. I was trying to use my task manager (I'm on Win NT) to look at memory usage since the only variable seems to be file size, but nothing seems to indicate it is a memory issue.

  • Hashtable behaves differently in 32 bit vs 64 bit application

    Hi,
    I have an application that I am porting from 32-bit to 64-bit deployment. Its a three-tier application with its business logic residing on 2003 servers (currently), and we are moving this logic to 2008 servers. We are going to leverage the 64-bit deployment
    of this business logic, which will be called by clients via IIS 7.5. But when I am executing same code in 2003 env. vs 2008 env., the Hashtables are behaving differently. The issue here is very weird. Let's consider an arbitrary scenario:
    I create a new hashtable, and add three keys to it as below:
    Key1 - Val1
    Key2 - Val2
    Key3 - Val3
    Now when I traverse this Hashtable, I see different behaviors on 2003 and 2008 servers (i.e. 32-bit vs 64-bit processor architecture). When pointing to 2003 servers, the Hashtable traversal gives me keys as
    Key1
    Key2
    Key3.
    However, when I traverse this same Hashtable by pointing to 2008 servers, the traversal happens as 
    Key3
    Key1
    Key2
    This difference in ordering is causing multiple issues in the application. The values for these keys are lists of a custom object, and the order in which the Hashtable gets traversed results in different behavior across two environments. Any help on this
    issue ASAP will be highly appreciated.

    How do the keys compare?  If the hashcodes come from the object, does the calculated hash differ between environments?
    Why code the app so that it cares about the order of the hashtable?  If you care about order, then a hashtable is the wrong thing to be using.
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

Maybe you are looking for

  • Secondary Display image quality is poor (at 1:1) in Library module

    I'm not a frequent user of the Secondary Display feature, so I can't say state whether this particular issue is new in 2.3RC or if it also was seen in a previous version. I submitted a bug report since I searched but did not find any previous mention

  • Missing start boundary exception, caused by an empty Part, how to handle?

    Hello, i wrote an application that automatically handles mails from laboratories. The only essential part of the mail is the attachment, where chemical analyses are submitted (from permitted addresses, recognized by whitelist and fileheader of the at

  • Inserting a record in qualified looup table

    Hi All, I am using MDM 5.5 SP6.  I have table structure like this. Table name: Representative (main table) Fields:      Name          Text      Age          Integer      Voter ID     Text      Gender          Lookup[flat]      PostandLocation Lookup[

  • Content of the subreport is lost when applying a custom dataset

    <p>Subreport displays correct data when I make a preview in Report Designer.</p><p> </p><p>When I substitute subreport's dataset by a custom one (exactly the same query, though) in runtime, the subreport becomes empty. </p><p> </p><p>What's the probl

  • Not saving registry settings in POSReady2009

    I have a number of registry settings that are required to restrict the use of the system in POSReady 2009, for example remove the 'Run' option from the start button. When I add the registry entries such as NoRun in HKEY_CURRENT_USER\Software\Windows\