Problem closing a DisplayJAI

Hello
I have a simple program which display images from a ZIP archive in a DisplayJAI component.
This component is inside a ScrollPaneImage.
Now, when i close the file, i want to reset the ScrollPaneImage and to display nothing inside.
I tried to remove the DisplayJAI panel from the ScrollPane,
i tried to setVisible(false) to the DisplayJAI,
all these methods didn't work : when i scroll down the ScrollPane, the previous displayed image is displayed again
here are images to explain better :
the first image is when i start the program :
[image 1|http://img6.imageshack.us/img6/6475/16338278.jpg]
the second image is when i just closed the file:
[image 2|http://img403.imageshack.us/img403/7778/21537073.jpg]
the third image is, with file closed, when i scroll the ScrollPane down :
[image 3|http://img80.imageshack.us/img80/7420/62851579.jpg]
on image 3 you can see the previously closed image reappearing ...

adding the DisplayJAI to the ScrollPane :
DisplayJAI dj = new DisplayJAI();
ScrollPane s = new JScrollPane(dj);removing is simply :
s.remove(dj);

Similar Messages

  • HT1338 i have a problem closing power point. what to do?

    Hi,
    I have problems closing powerpoint. It started by itself when i turnd the mac on? What to do? and now it wont close..

    Command - option - escape keys open the Force Quit dialog.

  • Problems closing several loops in a state machine with an event structure

    I am having some problems closing three loops running in parallel in a state machine.  I have one loop for an event structure to monitor user controls to change the state.  The other loop is the state machine which will control an actuator, and the third loop is for data aquisition/analysis.  I want to be able to hit the stop button and go to a "shutdown" state where I can home the actuator then close the loops and finally go to the last "shutdown" subdiagriam in the flat sequence structure.  Currently when hitting the stop button it goes into the shutdown state and will end the state machine loop but it appears the other loops are not closing until I hit the stop button again.  Could this be due to using a local variable for the boolean to control the loop conditions? I attached a screenshot of the block diagram.  Any advice would be great!
    Attachments:
    example.png ‏108 KB

    You have a classic race condition due to overuse of local variables. If the stop event fires in the upper loop, the local variable connected to the loop termination condition has already been read (it is false!). This means that the upper loop will iterate once more and again wait at the event structure for the next event. At this time, the local variable connected to the loop termination is TRUE, but the loop cannot complete until the event fires again, for example if you press the stop button once more.
    The correct way is to connect the terminal of the stop button across the right event frame directly to the loop termination terminal. Now it will get the TRUE value correctly once the stop event fires for the first time.
    LabVIEW does not execute left to right, execution order is determined by the wiring.
    I also agree with the above message that you should rethink and re-architect your code using established coding guidelines. 
    LabVIEW Champion . Do more with less code and in less time .

  • MSI P6N SLI 4gb problem closed??

    Hi, All.
    MSI P6N SLI 4gb LOW Performance problem closed??
    Thanks

    There´s a large thread about the 4GB problem, don´t know why you didn´t found it.
    And YES the problems are gone.
    From bios version 2.13 for sli and version 1.22new for sli platinum everything works well.
    There are 4x1GB Crucials in my system and they are running without any problems now.

  • Problem closing iTunes - iTunes.exe hanging.

    I have been having a problem restarting iTunes EXCEPT on a reboot or by manually ending the iTunes.exe process. iTunes.exe is hanging.....it is not using any CPU, but memory usage reduces to about 95,000k, and, of course, I have to end the process before I can restart iTunes.
    I finally figured out that this problem occurs only when I have been streaming music through Apple Express. In other words, Apple Express is preventing iTunes from closing.

    I experimented around and reformated, and began reinstalling programs one by one as a test, starting first with iTunes. It worked just fine. Low and behold, the next program I installed was my antivirus/spyware program. It recreated the problem I had been having for the last year or so. I tried putting exceptions in the application configuration, but that didn't make any difference. Surprisingly, even stopping/disabling the program didn't work either. Completely uninstalling the program did - meaning there were conflicts between the installed components of the Antivirus/spyware program and the iTunes/Airport Express. Now I've got to go find another spyware/antivirus program. But, the question remains, why should a antivirus/spyware program, disabled at that, ie, stopped, cause iTunes to hang after streaming music through Airport Express??? Strange.

  • Weblogic JTA timeout and PreparedStatement cache problem (Closed Statement)

    Hello,
    I am facing up a problem using a Weblogic connection pool with a PreparedStatement.
    Here is the environement :
    - Weblogic application server 10.3
    - JDBC connection pool with Oracle Thin driver (from server library) - all parameters by default i.e. StatementCache size = 10
    - JTA transaction timeout = 30s
    The problem is : if a prepared statement ends because of a JTA timeout, I receive the following stack exception/ stack trace
    java.sql.SQLException: The transaction is no longer active - status: 'Rolling Back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 33 seconds
    BEA1-000D8AE7230EFAA3EDC9]'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:178)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:188)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:92)
    at weblogic.jdbc.wrapper.Connection.clearCachedStatement(Connection.java:814)
    at weblogic.jdbc.wrapper.PreparedStatement.clearCachedStatement(PreparedStatement.java:1357)
    and then, if we try to re-execute immediately the same operation (*same statement* but new request, new thread, new JTA transaction ...) we receive without delay the following exception :
    java.sql.SQLException: Closed Statement
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    It seems like a bug in the caching mechanism of Weblogic, the 1st stack trace shows method from the statement cache implementation, I presume weblogic is trying the clear the statement from the cache after the iniitial TimedOutException (SQLException), but as the JDBC connection is unusable at this point, the clearing fails and the statement remains in the cache but is physically closed by JDBC.
    1st question, why weblogic does need to call JTSConnection.checkConnection() for clearing a statement from its internal cache, it is a pure java memory operation isnt'it ?
    2nd question : How to solve the problem without setting the StatementCache size to 0 (I tried, it solves the problem)? I don't want to disable completely the Weblogic statement caching, I have a small PreparedStatement called very frequently.
    Thanks for any help

    The main issue is that the transactional context that is supposed to underlay the JDBC code being executed,
    has gone away. Indeed, any DBMS changes that may have been made by your code so far, have been rolled
    back and are gone. Your code should not be trying to continue JDBC as normal, and WebLogic is trying to stop
    you. The control flow should go back up to the location where the transaction was initiated, so as to restart from
    the beginning if that is what is desired, including getting a new JDBC connection and remaking all the statements
    etc.
    HTH,
    Joe
    Edited by: Joe Weinstein on Dec 3, 2010 9:12 AM

  • Problem closing popup window in flash player 10.0.32.18

    Hello,
    I'm new to the forum so please bear with me. I posted this in the actual "Flash" forum yesterday but I realized afterward that the ActionScript forum would be a better place to post the question (sorry about that). I'm a web designer but I don't use a lot of Flash. I'm sure this will change as time goes on. For now, I'm still using an old version of Flash MX on my Mac - Flash MX version 6. But I don't think this has anything to do with the problem I'm experiencing. I designed a flash animation for my wife's website back in 2004 and it has always worked perfectly up until installing the most recent Flash Player 10.0.32.18 just a few days ago. Here's the problem:
    On the main page of my wife's website, we have a special link called "view presentation". When you click on that link, a smaller, new browser window pops up in front of the main page (the window sits "over top" of the main page - a typical pop up window). Inside of this new pop up window is the flash animation (the actual swf file). Inside of the HTML code for the pop up window, I have coded the following javascript:
    function closeWin() {
       if (document.images) {
         self.close();
    The above script, closeWin() is called from a button called "Quit" that the user clicks on in the actual swf file inside of the pop up window. Here is the code from the swf ActionScript:
    on (release) {
        stopAllSounds();
        getURL("javascript:closeWin();", "_self");
    This has always worked perfectly right up to Flash Player version 10.0.22.87 - the window closed as soon as the user clicked on the button. But now, with the most recent Flash Player 10.0.32.18 installed, it no longer works. The pop up window no longer closes.
    Obviously, something has changed in this latest version of Flash Player 10.0.32.18 which is preventing this from working. Does anyone have any ideas on how I can fix this?
    Any help would be greatly appreciated. Thank you so much,
    Mike

    Well, thanks to your help - I got it solved. It's not the Security Update, it's not javascript, it's not the difference in flash versions, it's nothing in the ActionScript itself or any of the other things I/we thought it might have been. I looked really closely at your HTML code and compared it to mine and changed it so that it was almost exactly the same as what you had coded - here's what made the difference (I've bolded the changes so you can see the differences):
    old code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="tour" width="600" height="450" align="top">
    <param name="movie" value ="tour.swf">
    <param name="quality" value ="high">
    <param name="bgcolor" value ="#ffffff">
    <embed name="tour" src="tour.swf" quality ="high" bgcolor ="#ffffff" width ="600" height ="450" align ="top" type ="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveconnect="true"></embed >
    </object >
    new code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="450" id="tour" align="top">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="movie" value="tour.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#ffffff">
    <embed src="tour.swf" quality="high" bgcolor="#ffffff" width="600" height="450" name="tour" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
    </object>
    Now works perfectly - the pop up window closes every time (I also took out swLiveconnect="true" - not sure where that ever came from).
    I'm not exactly sure how the above changes could make it work but they did so I am thrilled that you were kind enough to help out. If you have any ideas as to what actually did make the difference, please let me know as I am very curious. Maybe is was the "codebase" line? Seems like adding in the "allowScriptAccess" also had some sort of effect.
    Thanks again,
    Mike

  • I am having problems closing Photoshop Editor?

    I cannot close this program on my iMac. Anyone else have this problem/ I can't even open it to view. It is open in the background somehow and cannot be accessed. I can't even uninstall because it tells me to close it and I can't? I can'y even put it in the trash. Anyone els have this problem. I am stuck I have tried everything.

    NEVER try to put PSE in the trash unless you really like doing meticulous bit by bit manual cleanup.
    Are you a new mac user? Any program that is running will appear in the dock. On a mac closing a program window doesn't usually quit the program; it just closes the window. Go to the dock and click hold on the PSE icon (it will have a little mark next to the icon showing that it's running, like all active programs). Choose quit from the contextual menu or just click the icon to bring it back to the fore and press cmd+Q to quit it.
    You MUST use the uninstaller in the PSE folder in applications to uninstall PSE or you will make a big mess. PSE is not a tidy package like most mac apps and the installer strews stuff all over your hard drive. You need the uninstaller or many pieces will be left behind.

  • Problem closing JInternalFrame without first activating it

    Hi all,
    In my app when user clicks a button in JInternalFrame A, JInternalFrame B pops up, so I want to close JInternalFrame B when user close JInternalFrame A.
    I put the routine in JInternalFrame A's closing event. Everything works fine if the user click anywhere in the JInternalFrame A first then clicking the close button. But the problem shows up when the user directly clicking the close button without activating the frame first, this time the closing event is not called. Is this the default behaviour or is this a bug ?
    Any help would be greatly appreciated.
    Setya

    OK....you can do that.  I would recommend the GSM version (AT&T), but you can buy it here and activate there.  Lot's of people do.......

  • At log-in Firefox stated that it was having a problem closing tabs and directed me to click a tab to continue, which I did, and sexually explicit images appeared on the screen and when I tried to close the screen, another screen popped up with additional

    At log-in Firefox the screen opened up with the message "Oops, We're embarrassed, we are having trouble closing tabs" or similar wording directing me to click on a tab to continue, which I did. At which time a screen full of rows of thumbnail pictures of a young girl in appeared on the screen. Some of the pictures had the girl imitating a sexual act. When I tried to close out of the screen by clicking on the 'X' at the top right of the screen, another screen opened with another larger picture of this little girl. I finally got out of Firefox. When I open it up again the message wasn't on the screen. As these pictures were disturbing I cleared them out of my history.
    My questions are - 1. Since these pictures appeared to be of a minor, can you backtrack to the source to find out where they originated and have something done about the individual who posted them? And,
    2. - Did my clicking on the link as directed - by Firefox, I thought - open my computer up to the personal information on my computer being compromised?
    == This happened ==
    Just once or twice
    == Around 11:30 on Sat June 19th

    It looks like you have some malware.
    Have you tried running an antivirus scan?
    Some free antivirus options:
    [http://www.avast.com/eng/programs.html]
    [http://www.avira.com/en/download/index.html]
    Malware program recommendations:
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php]
    SuperAntispyware - [http://www.superantispyware.com/]
    AdAware - [http://www.lavasoftusa.com/software/adaware/]
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html]
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help:
    [http://www.spywarewarrior.com/index.php]
    [http://forum.aumha.org/]
    [http://www.spywareinfoforum.com/]

  • Problem closing an ActiveX created with the bridge and used in a scada.

    Hi all,
    I cretaed an ActiveX (using the bridge) to be used in a scada software. I inserted the activex in a panel and it opens and work properly when the panel is open. The problem is that when I close the panel, the scada doesnt free the memory. Is it supposed to do free it or is it my bussines? Should or can I do it by calling any method, function? Any suggestion?
    Thanks!
    Bobby

    I guess that on exit scada does not release resources. Try the tool at
    http://www.simtel.net/product.php[id]60701[sekid]0[SiteID]simtel.net

  • Problems Closing Raptor EA4 After Report

    After viewing a report, and closing the windows I cannot close raptor. This happens all the time with me.
    I am running the EA4 of Raptor on Windows. I connect to my XE beta 3 database.
    Steps to reproduce:
    I click on reports, Data dictionary reports, Tables, Constraints, Foreign Key constraints
    I pick the HR user to run against.
    Keep default filter on popup for binds (null should be checked)
    Click run report in SQL worksheet
    Right click and format SQL
    Close all open windows by clicking on the x on the tab
    Try to close raptor and nothing happens. You have to use the task manager to kill it. The file-exit does not work; neither does ALT-F4.
    I don't know if the formatting is a red herring or not. It seems to be whenever you close the tab containing the report SQL that causes the crash. Working within Raptor seems to be unaffected.

    yup - known issue - need to close with Task Manager. We will be releasing EA4.1 to fix this.
    -- Sharon

  • I have a problem closing tabs in Firefox v3.6.13. The first tab on the left hand side (ie the page that opens when I launch Firefox) won't close when I click on the red x.

    I can't close the left hand tab except by exiting firefox. When i launch firefox the original tab stays open when I click on the red x, even if I have other tabs open.
    i can alter the website displayed on the left hand tab but it still won't close and leave other more recent tabs open.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Problem closing iTunes

    Since upgrading to itunes 7.5 it always reopens when i close it. It always happens one time, not when i close it again. any ideas´?

    I am having the very same problem. I am searching the forums for an answer.

  • Problem closing sockets when using OCI8 JDBC connections

    Hi,
    We have a java thread that maintains a socket connection with a Telnet client. We are finding that this thread is unable to successfully close this connection with Socket.close(). The reason that close() fails appears to be that the same thread is creating an (OCI8 driver) JDBC connection via another Java object. If we don't create the JDBC connection within this thread the socket closes correctly.
    Has anybody else experienced such problems?
    We believe that this problem might be related to a BugRat report #391.
    Cheers.
    Max
    null

    Sounds like a mis-match between the JDBC Drivers and the installed Oracle Client.
    The JDBC Drivers with JDeveloper 9.0.3 should be the 9.0.1.3 versions (included with the iAS Admin Client and iAS 9.0.2)
    Also note, the JDBC driver used by OC4J is "classes12dms.jar", not "classes12.jar"
    Hope this helps,
    Rob

Maybe you are looking for

  • Webservice concepts . Pls help

    Hi All, In PI 7.0 in Integration Configuration: we create the WSDL for Sender/Outbound Interface using --- Select Tools --- Define Web Service -- fill all information and send that wsdl to consumer and use soap sender adapter similarly In PI 7.0 in I

  • Weblogic 10.0 MP1 Deployment sometimes hangs

    I have noticed that if the weblogic server has not been restarted for a while, deploying/redeploying applications from the console or from a command line hangs with no errors in either the admin log or the managed server log. Once I restart both serv

  • Update/change packing info VL02

    We are running on a 4.0B system. We want to use the packing functinality to pack materials onto pallet and pack the pallets onto trailers. I have found IDoc DELVRY01 and function module WS_DELIVERY_UPDATE. The problem is that they can only be use to

  • Error: Specify secure port in the property Using ports 7001/7002

              Hi,           I have two node cluster using WL6.1, and Solaris.           Then, I also setup NSAPI plug in, and specify 2 nodes           in obj.conf file. But I tried to browse the URL.           I have "Secure port in property..." error m

  • Arrow of a selected JMenu with a submenu doesnt work

    Hello, I've a problem with a menubar with some JMenu's and some submenu's. The color of the arrow of a JMenu is always black when it is selected. Even when I changed the DefaultUI settings for this component. Sow when I change the follow parameters t