How to clear memory in java on the fly?

i want to clear memory that use by Jpanel,how do i clear that memory? it's becouse i use that panel for add many images, and i want use the same panel to add others images.
i has use panel.removeAll(), but it is not remove the memory that use by the panel.
so how can i remove the memory that use by the panel?

remove the references to the objects that you removed from the JPannel... when it needs it, then Garbage Collector will allow them to be disposed, but it will dispose of them when it needs to, so you may not see the memory ever returned to your system while your app is running.

Similar Messages

  • IPAD 16 GB HOW TO CLEAR MEMORY

    IPAD 16 GB HOW TO CLEAR MEMORY ios7

    What do you mean by 'clear memory' ?
    You can close apps via the iPad's taskbar (a lot of the apps that show on the taskbar will just be 'recently used', they won't be using resources) : from the home screen (if you have an app 'open' on-screen then it won't show on the taskbar for closing) double-click the home button to bring up the taskbar at the bottom of the iPad's screen, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the iTunes app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If you want to delete content from your iPad to free up storage then you can see how much space each app is taking up via Settings > General > Usage. To delete an app (and therefore its content) press and hold any of the apps on your iPad’s homescreen and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded (you can't delete built-in apps) then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'.
    To do a soft-reset (i.e. a reboot) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear.

  • I downloads the latest iTunes software update and it properly installed.  But,  I cannot close the window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the

    I downloaded the latest iTunes software update and it properly installed.  But,  I cannot close the update window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the window.  Tried to quit on both the big window and the software update title in the menu bar.  No luck.

    Tried that by shutting down via the power button only as the normal shutdown was nixed by the open window issue.  It did not help.  Found a very similar question in the discussions and it recommended "Force Quit".  That worked and the update works normal and the window is gone.  Thanks!

  • Oracle Trigger - How can I capture and correct on the fly  ORA-01847

    Oracle Trigger - How can I capture and correct on the fly ORA-01847 day of month must be between 1.
    I have a table that has a date column. Sometimes an invalid date is passed and I'd like to capture and initilize the incoming value to null and have it inserted without error. Currently I get ORA-01847 day of month must be between 1.
    Example:
    create table ep1
    col_1 number,
    col_2 date
    Now if a user does the following, I want no error to occure but rather for the date value to be set to null and inserted.
    insert into ep1 values('1', '41-JAN-13')
    The insert may come from any client and I can't change the calling code hence can't used a precedure to replace the insert. I'm guessing there is some way to catch system level exceptions on the DB level. This doesn't need to be nice, it just needs to work.
    Here is the question on experts exchange. I'm told there is no way, but there must be. After all the exception is on a DB system level and I would think one could extend or override these, or disable them.
    http://www.experts-exchange.com/Database/Oracle/PL_SQL/Q_23045306.html

    SQL> declare
      2     wrong_month      exception;
      3     pragma exception_init (wrong_month, -1843);
      4  begin
      5    begin
      6      insert into emp (empno, hiredate)
      7      values (2345,to_date('13/25/81','MM/DD/YY'));
      8    exception
      9      when wrong_month then
    10      dbms_output.put_line('I caught the bad month');
    11      insert into emp (empno, hiredate)
    12      values (2345,null);
    13    end;
    14  end;
    15  /
    I caught the bad month
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from emp
      2  where empno = 2345;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          2345Note the 1843 error vice 1847. It can be done outside of a trigger.

  • How to clear all open GRIRs in the year end and maintained as provision  ?

    Hi Friends,
    I would like to clear all open GRIRs in the year end and maintained as provision.
    in the next year next day i would like to show as open items.
    How can do it ?
    I have tried to clear it. I have maintained OBYP settings also. But i am unable see as clear item.
    Could you explain me how it actuallly works ?

    Hi REddy,
    In most of the cases, the GR/IR account will have a credit balance and would be taken as provision for liability during year end activites. So as a standard practise you need to clear them on year end.
    but if you want to clear them, first you need to deselect check box Post automatically only for GR/IR clearing GL's master data.
    Then pass a adjustment entry like
    GR/IR GL Dr
                To Provision for Liabilites GL: Cr
    Above sample entry is true when your GR/IR account has a CR balance at the year end. if not post it in a reversed manner.
    Now with tcode F-03, for GR/IR GL, choose all items and clear them. Now you will get the clearing doc number.
    Now on start of new FY, reverse the above accounting entry with FB08.
    This will meet your requirement.
    Thanks,
    Srinu

  • ODI - How to clear a slice before executing the data load interface

    Hi everyone,
    I am using ODI 10.1.3.6 to load data daily into an ASO cube (version:11.1.2.1). Before loading data for a particular date, I want the region to be cleared in the ASO cube defined by "that date".
    I suppose I need to run a PRE_LOAD_MAXL_SCRIPT that clears the area defined by an MDX function. But I don't know how I can automatically define the region by looking at several coloums in the data source.
    Thanks a lot.

    Hi, thank you for the response.
    I know how to clear a region in ASO database. I wrote a MaxL like the following:
    alter database App.Db clear data in region '{([DAY].[Day_01],[MONTH].[Month_01],[YEAR].[2011])}'
    physical;
    I have 3 seperate dimensions such as DAY, MONTH and YEAR. My question was, I don't know how I can automize the clearing process before each data load for a particular date.
    Can I somehow automatically set the Day, Month, Year information in the MDX function by looking at the day,month,year coloumns in the relational data source. For example if I am loading data for 03.01.2011, I want my MDX function to become {([DAY].[Day_01],[MONTH].[Month_03],[YEAR].[2011])}'. In the data source table I also have seperate coloumns for Day, Month , Year which should make it easier I guess.
    I also thought of using Substitution variables to define the region, but then again the variables need to be set according to the day,month, year coloums in the data source table. I also would like to mention that the data source table is truncated and loaded daily, so there can't be more than one day or one month etc in the table.
    I don't know if I could clearly stated my problem, please let me know if there are any confusing bits.
    Thanks a lot.

  • How to allocate memory and to get the start address

    im just trying to allocate a memory of 8MB and to get the start address of that mem,  by getting the address i will access that memory by dll function..  so i want to know how to allocate the memory and to get the address.. any one knows then pls tell me

    duplicate post
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How to clear memory in MVC when exiting from application using BACK ?

    Hi Friends ,
                I am using the JavaScript back function to exit from my application to the calling page . My BSP application is stateful and MVC based . I am calling my application using the SYSTEM application sample pages for session management - session_single_frame.htm & session_default_frame.htm .
    I am observing that if i run my application in Portal whenever i hit back ..i do return to the calling page but again if i come to my BSP application the old data is seen . If i do the testing outside portal environs it is cleared ..i believe as the session close popup is seen and executes completely .But within portal as the popups are not enabled may be the session clean up is not happening .
    How can I overcome the situation . i dont want to exit as i want the user a way to go back to the calling page directly .
    Appreciate your help in advance.

    it could be because of the caching property of the BSP iview.
    set "Allow Client-Side Caching" of BSP iview to "NO" and try.
    Regards
    Raja

  • How to clear open item (Cr) with the same GL code?

    Dear all,
    Can we clear open item (Cr) with the corresponding debit with the same G

    Hello,
    For few items use F-03.
    If there are number of items, do automatic clearing through F.13
    For automatic clearing, check your settings in OB74.
    Regards,
    Ravi

  • How do I create an object on the fly

    Hello there,
         I was wondering if it is possible to create an object on-the-fly. For example:- I have a class called Customer which holds the name, address and phone number of a customer. While the program is running I get a new customer, Mr Brown. How can I create a new Customer object which will hold the details of Mr Brown.
    yours in anticipation
    seaview

    If I understood you right, you are thinking far too complicated.
    So, when you click a button, a new object shall be created and stored. So basically you write a listener to your button that contains a method like this:
    public void actionPerformed(ActionEvent e){
       Customer newCustomer = new Customer(textfield.getText());
       listOfCustomers.add(newCustomer);
    }Maybe what got you confused is the object's name. Remember this: variables and field names DON'T exist anymore at runtime! They are just meant to help you when programming. If you want Mr. Brown as a customer, you have to provide a field in the customer class for the name. If a field is required for the existence of an object, you usually write a custom constructor for it, which accepts an according parameter.

  • How to adjust a function generator on-the-fly in Labview 7.0

    I'm using the 'Simulate Signal' vi in LabView 7.0 (with BNC-2090 board) to generate a triangle wave for output to a potentiostat. If the value of either the high or low potential is changed, however, the signal incorporates discontinuities as it recalculates the amplitude and offset. Does anyone know of a way to recalculate the phase shift on-the-fly so that those discontinuities and sudden jumps in signal no longer appear? I think there should be a way to do it using an array, but the 'simulate signal' vi seems like it would be much easier to use.

    I agree with Evan that this is not an easy task.
    A PID loop could help with the discontinuity but hurt other things. Here are my thoughts.
    PID at output of "Simulate Signal"
    This would smooth the transition but would also round-off the max and mins. Probably not good.
    PID to control Amplitude and offset
    Once you have this tuned, it may do what you want if you can tolerate the delay.
    Filtering
    Here you have to tolerate some phase shift as in the above. You are also caught in a catch 22 because you do not want the dicntinuity when the settings change but meanwhile the triagle wave is an endless series of cusps.
    Let us know what ends up working for you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to clear sessions in java while closing the window

    Dear all,
    When I am closing the window if I click 'x' on window how to handle that event in java script , or any other way for this event handling.
    Sudheendra.

    Thank you very much ,
    In my application for each login i am using different sessions.
    In one login if a user navigating then there is no chance of opening different windows.
    So when the user without clicking logout button , if he closes the window by clicking 'x' , then the session allocated for this login is retaining until the session time out.
    so i want to invalidate the session for this particular login .
    Thank you,
    Sudheendra.

  • How to increase Memory and Java Heap Size for Content Server

    Hi,
    My content server is processing requests very slowly. Over performance is not good. I have 2 GB of RAM any idea what files I can modify to increase the Java Heap Size for the Content Server. If I increase the RAM to 4 or 6 GB where do I need to make changes for the Java Heap Size and what are the recommended values. I just have Content Server Running on the linux box. Or how do I assign more memory to the user that owns the content server install.
    Thanks

    You might find these interesting:
    http://blogs.oracle.com/fusionecm/2008/10/how_to_-javatuning.html
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/performance_tuning_10en.pdf
    Do you have access to metalink? This has about everything you could want:
    https://metalink2.oracle.com/metalink/plsql/f?p=130:14:9940589543422282072::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,788210.1,1,1,1,helvetica
    Or search for "788210.1" in metalink knowledgebase if that link doesn't work and look for the FAQ on configuring Java for Content Servers

  • How to clear Vendor Open item throgh the FBCJ T. Code

    Hello Dear All,
                         I am doing a Cash Payment to the Vendor, through the FBCJ but at the time of making payment i want to clear the Vendor open item. it is possible in Cash Journal.
                         And also I want to know that, Can we post the Vendor / Customer Advance payment [using special g/l indicatior] through the cash journal?
    Please Suggest.
    Regards
    Abhijeet

    Hi
    In FBCJ after payment you have clear manually vendor balance in F-44.
    If you want SPL GL in FBCJ then write a Substitution .
    1. step 001 - Special G/L Substitution
    2. Prerequisite - Transaction code = 'FBCJ'
    3. Substitution posting key -- Exit (need help from abap) exit name
                                              G/L Exit (need help from abap) exit name
                                              Special G/L Ind Exit (need help from abap) exit name
    you can't do this without ABAP help
    Best Of Luck
    Tanmoy

  • How to create logs in java if the application stops abruptly,

    Hi,
    I wrote a java code for handling one of my applications in built commands. Right now iam handling the logs using an arrayList and at the end of my java progem iam writing them to a file.
    If the program runs completely then my logs are generated, but my application takes almost 6hours to fully complete.. if ther is anyproblem like service of application stops or any other problem then i have to stop my java code forcefully.. in that case my code is not working ...like iam not able to see that part of my logs.
    Help me in writing the logs even if the java code stops in between. or iam stopping it.
    Thanks in adcance

    You may want to use the "Shotdown hooks" API -- http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#addShutdownHook(java.lang.Thread).

Maybe you are looking for